-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (60 loc) · 3.33 KB
/
index.html
File metadata and controls
71 lines (60 loc) · 3.33 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
<!DOCTYPE html>
<html>
<!-- Dear programmer,
When I wrote this code, only God and I knew how it worked.
Now, only God knows. -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PseudoRandom</title>
<!-- p5
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js"></script>
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/addons/p5.dom.min.js"></script>-->
<!-- Local p5 -->
<script language="javascript" type="text/javascript" src="local dependencies/p5.min.js"></script>
<script language="javascript" type="text/javascript" src="local dependencies/p5.dom.min.js"></script>
<!-- Fonts, irrelevant in local -->
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"rel="stylesheet">
<!-- Pure CSS
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous"> -->
<!-- Local Pure CSS -->
<link rel="stylesheet" href="local dependencies/purecss.css">
<link href="./style/main.css" rel="stylesheet" />
<link href="./style/index.css" rel="stylesheet" />
</head>
<body>
<header>
<h4 class="headerItem" onclick="window.location.href = `${SERVER}index.html`" >PseudoRandom</h4>
<p class="headerItem" onclick="window.location.href = `${SERVER}editorEncounter.html`">Encounter Editor</p>
<p class="headerItem" onclick="window.location.href = `${SERVER}editorTroop.html`">Troop Editor</p>
<p class="headerItem" onclick="window.location.href = `${SERVER}game.html`">Game</p>
<p class="headerItem" onclick="window.location.href = `${SERVER}campaignStart.html`">Campaign</p>
</header>
<!-- Page Content -->
<div id="page_content">
<!--Input File contains a File Input for custom content-->
<div id='contentFileInput' >
<h2> Content Import </h2>
<input type="file" name="file" onchange="LocalData.storeToLocal(this.files);" style="background-color : rgba(0,0,0,0.5); height : 2rem; margin:1rem;" />
</div>
<!--Content list is the holder for DOM elements created by <scripts> -->
<div id='contentList'>
<h2 style="text-align:center;"> Content List </h2>
<input type="submit" value="Export Active" style="background-color: rgba(0,0,0,0.7);" onclick="LocalData.exportActiveToJSON();" />
<input type="submit" value="Export All" style="background-color: rgba(200,200,200,0.7);color: rgb(0,0,0);" onclick="LocalData.exportToJSON();" />
<p></p>
<div class="sources fullRow">
</div>
</div>
</div>
<!-- SCRIPTS -->
<div id="scripts">
<!-- UTIL contains the LocalData static class and other functions and objects. -->
<script src="scripts/util.js"> </script>
<script src="scripts/Troop.js"> </script>
<!-- Content Load and Display -->
<script src="scripts/DOM/indexDOM.js"> </script>
</div>
</body>
</html>