-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
142 lines (139 loc) · 5.39 KB
/
Copy pathindex.html
File metadata and controls
142 lines (139 loc) · 5.39 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!doctype html>
<html>
<head>
<title>Epoh</title>
<meta property="og:image" content="http://epoh.io/img/unit/rover.png" />
<script type="text/javascript">
'use strict';
var module = {};
var ScriptLoader = {};
var require = function(path) {
return window[path.replace('./', '')];
};
ScriptLoader.loadScripts = function(scripts, callback, position) {
var index = position ? position : 0;
if (!scripts[index]) {
callback();
return;
}
var fileref = document.createElement('script');
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", scripts[index]);
fileref.onload = function() {
index++;
ScriptLoader.loadScripts(scripts, callback, index);
};
document.getElementsByTagName("head")[0].appendChild(fileref)
}
</script>
<link rel="stylesheet" type="text/css" href="css/map.css" />
<link rel="stylesheet" type="text/css" href="css/hud.css" />
<link rel="stylesheet" type="text/css" href="css/login.css" />
</head>
<body>
<form id="login" onsubmit="return false">
<a href="https://github.com/tautvilas/epoh" target="_blank"><img style="position: fixed; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
<div id="description">
At the end of the 21st century Earth became too hot to sustain life. The wealthiest individuals
gathered all their money and set up a space mission to an earth-like planet
codenamed EPOH. The surface area of this planet was divided into sectors and
assigned to space mission members. After 135 years of interstellar journey the spaceship
has finally reached its destination.
</div>
<input id="username" placeholder="Enter your name"/>
<button id="start">Enter EPOH</button>
<div class="error">Username allready taken</div>
<div id="status">
Users online: <span data-bind="numusers"></span> -
Match time remaining: <span data-bind="matchtime"></span>
</div>
<div id="credits">
<div>Report bugs and suggestions: <a href="mailto:zvitruolis@gmail.com">zvitruolis@gmail.com</a></div>
<div class="small">
Version <span id="version"></span>
- <a target="_blank" href="/rules.html">Game Rules</a>
- <a href="http://mods.curse.com/assets/sc2/unit-icon-and-wireframe-pack">Unit Icons </a></div>
</div>
</form>
<div id="blocker"></div>
<div id="game">
<div id="map"></div>
<div id="left">
<div id="log"></div>
<div id="resources">
<div class="info">Power: <span data-bind="power"></span></div>
<div class="info">Iron: <span data-bind="iron"></span></div>
<div class="info">Copper: <span data-bind="copper"></span></div>
<div class="info">Gold: <span data-bind="gold"></span></div>
<div class="info">Oil: <span data-bind="oil"></span></div>
<div class="info">Gas: <span data-bind="gas"></span></div>
<div class="info">Coal: <span data-bind="coal"></span></div>
</div>
</div>
<div id="cursor"></div>
<div id="right">
<div id="statusbox">
<div class="info">Turn time left: <span data-bind="time"></span></div>
<div class="info">Match time left: <span data-bind="match"></span></div>
<div class="info">Score: <span data-bind="score"></span></div>
<div class="info">Tick: <span data-bind="tick"></span></div>
</div>
<div id="infobox">
<div class="info">Sector: <span data-bind="sector"></span></div>
<div class="info">Terrain: <span data-bind="terrain"></span></div>
<div class="info">Resource: <span data-bind="resource"></span></div>
<div class="info">Field: <span data-bind="field"></span></div>
</div>
<div id="unitbox">
<div class="info">Unit: <span data-bind="unit"></span></div>
<div class="info">Owner: <span data-bind="owner"></span></div>
<div class="info">Damage: <span data-bind="damage"></span></div>
<div class="info">Bombard: <span data-bind="bombard"></span></div>
</div>
<ul id="scores">
</ul>
</div>
<div id="actions-wrapper" class="hidden">
<div id="actions" class="clearfix"></div>
</div>
<button class="endturn"></button>
</div>
<script type="text/javascript" src="js/Config.js"></script>
<script type="text/javascript">
var scripts = [
'js/Function.js',
'js/Array.js',
'js/String.js',
'js/Stream.js',
'js/Coords.js',
'js/Cost.js',
'js/CubeCoords.js',
'js/Tile.js',
'js/Sector.js',
'js/Intent.js',
'js/Unit.js',
'js/Rules.js',
'js/WebComponent.js',
'js/Q.js',
'js/Renderer.js',
'js/Client.js']
if (window.location.port === "8080") {
scripts.push('js/NodeApi.js');
scripts.push('js/Http.js');
} else {
scripts.push(
'js/Api.js',
'js/PerlinGenerator.js',
'js/Map.js',
'js/Game.js'
);
};
if (Config.PRODUCTION) {
scripts = ['bundle.js'];
}
ScriptLoader.loadScripts(scripts, function() {
new Client();
});
</script>
</body>
</html>