-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
73 lines (66 loc) · 2.91 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
<html>
<head>
<title>Planechase</title>
<link rel="stylesheet" href="planechase.css">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<script src="planechase.js"></script>
<script type="text/javascript">
/* Copyright 2014-2023 James Hsiao */
function get_help() {
return `An implementation of Magic The Gathering's Planescape<br />For more information, questions, bug reports, <a href="https://github.com/thepeopleseason/planechase/">reach out here</a>.`;
}
$(document).ready(function () {
eternity.urlParams = new URLSearchParams(window.location.search);
eternity.custom = eternity.urlParams.get('custom');
$(document).keydown(pc_keybindings);
if (eternity.urlParams.get('bigpreview')) {
$('#preview>img').width(925);
$('#chooser')[0].style.marginLeft = 950;
}
if (eternity.urlParams.get('chroma')) {
document.bgColor = '#00b140';
}
generate_chooser("pcPlanes");
write_footer();
preloader();
});
</script>
</head>
<body style="text-align: center;">
<div id="toolbar" style="display: none;">
<div style="float: left;">
<input type="button" value="Roll Planar Die" id="dice_button"
onclick="roll();" class="myButton">
<div style="float: right; padding: 0 5px 0 5px;">Mana Cost:
<input type="button" id="cost_button" value="0" class="infobutton myButton" onclick="reset_cost()">
</div>
</div>
<div style="float: left; padding: 0 5px 0 5px;">Planar Counters:
<input id="count_button" type="button" value="---" class="infoButton myButton" style="float: right;" onclick="show_counters()">
</div>
<div style="float: left; padding: 0 5px 0 45px; display: none;" id="toggle_chaos">
<a href='#' onclick="div_toggle('#chaos')">Toggle Chaos View</a></div>
<div id="help_link">
<a onclick="help();">What's This?</a></div>
</div>
<div id="help"></div>
<div id="options" style="top: 25; position: fixed;"></div>
<div id="start" style="top: 25; position: fixed; text-align: left;">
<input type="button" value="Start Planechase!" id="start_button"
onclick="start();" class="myButton">
<form id="options">
<input id="custom" type="checkbox" onchange="generate_chooser('pcPlanes')"><label for="custom">Enable Custom Planes</label><br />
<input id="chroma" type="checkbox" onchange="toggle_chroma()"><label for="chroma">Enable Chromakey</label>
</form>
</div>
<div id="preview" style="top: 100; position: fixed; "><img src="images/back.jpg" width="480"></div>
<div id="chooser" style="margin-left: 500; text-align: left;"></div>
<div id="plane_div" style="display: none;"></div>
<div id="chaos" style="display: none;"></div>
<div id="footer" class="footer"></div>
</body>
</html>