blob: eba0f43c2f287974a1c4b0deb15fe00ef801cbb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="css/bootstrap.min.css"?>
<?xml-stylesheet type="text/css" href="css/craftmine.css"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="author" content="Alexandre Renoux,Pierre-Emmanuel Novac"/>
<title>CraftMine</title>
<script type="text/javascript" charset="utf-8" src="js/craftmine.js"></script>
<script type="text/javascript" charset="utf-8" src="js/guild.js"></script>
<script type="text/javascript" charset="utf-8" src="js/shop.js"></script>
<script type="text/javascript" charset="utf-8" src="js/gui.js"></script>
<script type="text/javascript" charset="utf-8" src="js/dungeon.js"></script>
<script type="text/javascript" charset="utf-8" src="js/savegame.js"></script>
<script type="text/javascript" charset="utf-8" src="js/perso.js"></script>
</head>
<body onload="init()">
<div class="container-fluid">
<h1>CraftMine</h1>
<div class="col-md-3">
<div class="row">
<div class="col-md-12">
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Stats</h3>
</div>
<div class="panel-body">
<ul class="list-group">
<li class="list-group-item">HP<span class="label label-success">
<span id="hp">5</span> /
<span id="maxHP">5</span>
</span>
</li>
<li class="list-group-item">LV<span id="lv" class="label label-success">1</span></li>
<li class="list-group-item">Exp<span id="xp" class="label label-success">0</span></li>
<li class="list-group-item">Power<span class="label label-success">
<span id="power">1</span> +
<span id="bonusPower">0</span>
</span></li>
</ul>
<ul class="list-group">
<li class="list-group-item">Mine<span id="mine" class="label label-success">14</span></li>
<li class="list-group-item">Gold<span id="gold" class="label label-success">14</span></li>
<li class="list-group-item">Miners<span id="miners" class="label label-success">14</span></li>
</ul>
<div class="list-group">
<button class="list-group-item btn" type="button" name="withdraw" onclick="withdrawMine()">Withdraw</button>
<button class="list-group-item btn" type="button" name="HireMiner" onclick="hireMiner()">Hire one miner</button>
</div>
</div>
</div>
</div>
</div>
<div id="error-box" class="row" style="display:none">
<div class="alert alert-danger">
<ul>
</ul>
</div>
</div>
<div id="info-box" class="row" style="display:none">
<div class="alert alert-success">
<ul>
</ul>
</div>
</div>
</div>
<div class="col-md-9">
<div id="tabs-panel" class="tabbable">
<ul class="nav nav-tabs">
<li><a href="#tab1">Build</a></li>
<li><a href="#tab2">Shop</a></li>
<li><a href="#tab3">Inventory</a></li>
<li><a href="#tab4">Dungeon</a></li>
<li class="pull-right"><a href="#tab5" onclick="listSaves()">Save</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane" id="tab1">
<h3>Select a building to build:</h3>
<ul class="list-inline">
<li><button class="btn btn-success" type="button" onclick="createGuild()">Miner's guild</button></li>
<li><button class="btn btn-success" type="button" onclick="buildShop()">Shop</button></li>
<li><button class="btn btn-success" type="button" onclick="buildDungeon()">Dungeon</button></li>
</ul>
</div>
<div class="tab-pane" id="tab2">
<h3>There's no shop in this city.</h3>
</div>
<div class="tab-pane" id="tab3">
<h3>Your inventory is empty.</h3>
</div>
<div class="tab-pane" id="tab4">
<h3>Look at how poor you are! You can't access the dungeon, it is only for the elite.</h3>
</div>
<div class="tab-pane" id="tab5">
<h3>Saved games:</h3>
<form class="form-horizontal">
<div id="listsaves">
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="btn-group">
<button class="btn btn-success" type="button" onclick="loadSave()">Load</button>
<button class="btn btn-success" type="button" onclick="saveGame()">Save game</button>
<button class="btn btn-success" type="button" onclick="downGame()">Download current game</button>
<button class="btn btn-success" type="button" onclick="downloadSave()">Download</button>
<input type="file" id="selectedFile" style="display: none;" accept=".save.xml" onchange="uploadSave()" />
<button class="btn btn-success" type="button" onclick="document.getElementById('selectedFile').click()">Upload</button>
<button class="btn btn-success" type="button" onclick="deleteSave()">Delete</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|