-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
115 lines (103 loc) · 3.66 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
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
<!doctype html>
<html lang='en-US'>
<head>
<meta charset='UTF-8' />
<title> Backstories</title>
<meta name='author' content='Sarah Rosanna Busch' />
<meta name='description' content='D&D Backstories: A Text Adventure' />
<meta name='date' content='4 Oct 2021' />
<meta name='keywords' content='text adventure, game, d&d, dungeons and dragons, backstories, character creation, campaign, basic rules, game, browser' />
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<link rel='icon shortcut' href='img/icon.png' />
<link rel='stylesheet' href='css/styles.css' />
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
</head>
<body onload='main.init()'>
<div class='viewContainer'>
<login>
<form method="post">
<label for="username">User:</label><br>
<input type="text" id="username" name="username"><br>
<label for="password">Password:</label><br>
<input type="password" id="password" name="password"><br>
<br>
<button onclick="main.login(event, username.value, password.value)">Login</button>
<br><br>
<p id="loginError" style="display:none">
Sorry, the username or password that you have entered is invalid.
</p>
</form>
</login>
<main id='game'>
<header>
<!-- time, date, weather, light conditions, etc-->
</header>
<section id='dmTable' >
<div id='storyText' onscroll="main.scroll()">
<div id='storyHeading'>
<fieldset>
<legend>A TEXT ADVENTURE</legend>
<h1>Backstories</h1>
</fieldset>
<h3>by Sarah Rosanna Busch</h3>
</div>
<div id='storyBody'>
<!-- text added dynamically here -->
</div>
</div>
<!-- fade to show you can scroll up and/or down-->
<div id='dmTop' style='display:none'></div>
<div id='dmBtm' style='display:none'></div>
<div id="diceBox"></div>
</section>
<section id='playerMat'>
<div id="sentencePreview" style="display:none">
<p id="playerSentence"></p>
<button id='undoBtn' class="undo">⎌</button>
</div>
<div id='buttonContainer'></div>
<div id='playerMatCover'></div>
</section>
<footer>
<!-- error messages -->
</footer>
</main>
<!-- *********** Dialogs ************ -->
<dialogs>
<dialog id='notebook'>
<section id='characterSheet'>
</section>
<section id='backstory'>
</section>
<section id='notes'>
</section>
</dialog>
<dialog id='bags'>
</dialog>
<dialog id='spells'>
</dialog>
</dialogs>
</div> <!-- viewContainer -->
<!-- *********** Scripts ************ -->
<!-- dom helpers -->
<script src='https://cdn.jsdelivr.net/gh/sarahRosannaBusch/f.js/f.js'></script>
<!-- dice roller -->
<script src="libs/dice/libs/three.min.js"></script>
<script src="libs/dice/libs/cannon.min.js"></script>
<script src="libs/dice/libs/teal.js"></script>
<script src="libs/dice/dice.js"></script>
<!-- game -->
<script src='main.js'></script>
<script src='Player.js'></script>
<script src='refs/backgrounds/Acolyte.js'></script>
<script src='refs/classes/Cleric.js'></script>
<script src='refs/races/Dwarf.js'></script>
<script src='pcs/PlayerWords.js'></script>
<script src='util/CHAR.js'></script>
<script src='encounters/Intro.js'></script>
<script src='encounters/TravoksRoom.js'></script>
<script src='pcs/Travok.js'></script>
</body>
</html>