-
Notifications
You must be signed in to change notification settings - Fork 6
/
test.html
65 lines (53 loc) · 2.2 KB
/
test.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
<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 - TEST</title>
</head>
<body onload="onl()" style="background-color:#900">
<!--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">
We're testing the <span class=mark>Mix Mode</span>: quest events may mix & match together! Please, share any feedback on <a class=mark href='https://discord.gg/EDYP2N4RMn'>Discord</a>! Thank you!
</div>
</div>
<div id="credits"></div>
</body><script>
function onl() {
setTimeout(function(){
var core=new Core();
core.initialize(()=>{
var dungen=core.generateAdventureDaily(0,{
// heroId:"rogue",
setMixMode:true,
footer:"T"
});
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 target=_blank class=mark href='testplay.html'>No printer or tokens?</a>"+
" ‐ <a class=mark href='index.html'>Go back to the project page</a>";
var downloads=document.getElementsByClassName("download");
for (var i=0;i<downloads.length;i++)
dungen.createDownloadPDFAnchor(downloads[i],dungen.coreMetadata.filename+"-test.pdf");
setTimeout(()=>{
//document.getElementById("waitbox").style.display="none";
document.getElementById("box").className="show";
},200);
});
},500);
}
</script>