forked from CylonicRaider/dasca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (75 loc) · 2.87 KB
/
index.html
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
<!DOCTYPE html>
<!-- Dasca, an idle game by @CylonicRaider (github.com/CylonicRaider/dasca)
This file contains the initial UI. -->
<html>
<head>
<meta charset="utf-8"/>
<title>Dasca</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script type="application/javascript" src="idlegame.js"
defer="defer"></script>
<script type="application/javascript" src="assets.js"
defer="defer"></script>
<script type="application/javascript" src="main.js"
defer="defer"></script>
<style type="text/css">
/* Avoid FOUC */
body { background: black; color: white; }
.layer { visibility: hidden; }
</style>
</head>
<body>
<div class="pane" id="game">
<div id="titlescreen" class="selectable layer text-popup">
<h1>Dasca</h1>
<hr/>
<p class="subtitle">In early development! :)</p>
<hr/>
<button id="startgame" class="btn btn-wide"
data-newgame="new">Start game</button>
<div class="btnrow">
<button id="loadgame" class="btn btn-wide"
data-newgame="load">Load saved game</button>
<button id="export" class="btn btn-wide"
data-switch="exportscreen">Import / Export</button>
</div>
<button id="credits-title" class="btn btn-wide"
data-switch="creditscreen">Credits</button>
</div>
<div id="exportscreen" class="selectable layer text-popup">
<h2>Import / Export game</h2>
<hr/>
<textarea class="area area-small area-nowrap" id="text-export"
autocomplete="off"></textarea>
<input type="file" id="file-upload" class="no-display"/>
<a href="#" download="dasca-save.txt" id="file-download"
class="no-display"></a>
<div class="btnrow">
<button id="exportsave" class="btn btn-wide">Export save</button>
<button id="importsave" class="btn btn-wide">Import save</button>
</div>
<div class="btnrow">
<button id="downloadsave" class="btn btn-wide">Download
save</button>
<button id="uploadsave" class="btn btn-wide">Upload save</button>
</div>
<div class="btnrow">
<button id="back-export" class="btn btn-wide"
data-switch="titlescreen">Back</button>
<button id="loadgame-export" class="btn btn-wide"
data-newgame="load">Start saved game</button>
</div>
</div>
<div id="mainscreen" class="selectable layer"></div>
<div id="creditscreen" class="selectable layer text-popup">
<h2>Credits</h2>
<hr/>
<p>Made by <em>@CylonicRaider</em></p>
<p>Inspired by <em>Crank</em></p>
<p><a class="btn btn-link"
href="https://github.com/CylonicRaider/Dasca/">Source code</a></p>
<button id="back-credits" class="btn btn-wide">Back</button>
</div>
</div>
</body>
</html>