forked from kesiev/stampadia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (51 loc) · 2.4 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
<html><head>
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css" href="style/Seshat/stylesheet.css">
<link rel="stylesheet" type="text/css" href="style/style.css">
<script src="js/jspdf.umd.min.js"></script>
<script src="js/svg2pdf.umd.min.js"></script>
<script src="js/svg.js"></script>
<script src="js/Seshat-normal.js"></script>
<script src="js/generator.js"></script>
<script src="js/core.js"></script>
<script src="js/player.js"></script>
<title>Chronicles of Stampadia</title>
</head>
<body onload="onl()">
<!--div id="waitbox">Please wait...</div-->
<div id="box">
<div class="header" id="adventureHeader"></div>
<a class="title download" id="adventureTitle"></a>
<div class="ruler"></div>
<div class="tips">
All you need to play is <span class=mark>2 dice</span>, <span class=mark>a pencil</span>, <span class=mark>an eraser</span>, <span class=mark>a small button</span>, <a class=mark target=_blank href='manuals/manual.pdf'>this manual</a>, and print <a class=download id=downloadquest>today's page of the Chronicles of Stampadia</a>. Good luck!
</div>
</div>
<div id="credits"></div>
</body><script>
function onl() {
setTimeout(function(){
var core=new Core();
core.initialize(()=>{
var dungen=core.generateAdventureDaily();
dungen.prepare();
document.getElementById("adventureHeader").innerHTML=dungen.metadata.header.replace(/_+/,"<span class='you'>You</span>");
document.getElementById("adventureTitle").innerHTML=dungen.metadata.title;
document.getElementById("credits").innerHTML=
core.getWebFooter()+
" ‐ <a class=mark href='learn.html'>Learn how to play</a>"+
" ‐ <a class=mark href='https://discord.gg/EDYP2N4RMn'>Discord</a>"+
" ‐ <a class=mark href='https://boardgamegeek.com/boardgame/345607/chronicles-stampadia'>BGG</a>"+
" ‐ <a target=_blank class=mark href='play.html'>No printer or tokens?</a>";
var downloads=document.getElementsByClassName("download");
for (var i=0;i<downloads.length;i++)
dungen.createDownloadPDFAnchor(downloads[i],dungen.coreMetadata.filename+".pdf");
setTimeout(()=>{
//document.getElementById("waitbox").style.display="none";
document.getElementById("box").className="show";
},200);
});
},500);
}
</script>