-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
114 lines (107 loc) · 5.24 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
<html>
<head>
<title>Twilight Princess Item Tracker</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<script src="script/items.js"></script>
<script src="script/chests.js"></script>
<script type="text/javascript">
if (document.addEventListener) { // IE >= 9; other browsers
document.addEventListener('contextmenu', function (e) {
//Runs when you right click to bring up context menu
if (mouseOverItem == true) {
//We might still want context menu while in edit mode.
if (!editmode) {
//Call the method that handles right clicking.
gridItemRClick(mouseLastOverR, mouseLastOverC, mouseLastOverCor);
e.preventDefault();
}
}
}, false);
} else { // IE < 9
document.attachEvent('oncontextmenu', function () {
if (mouseOverItem == true) {
if (!editmode) {
gridItemRClick(mouseLastOverR, mouseLastOverC, mouseLastOverCor);
//This is method used in old browsers
window.event.returnValue = false;
}
}
});
}
var dungeonChest = 0;
var dungeonChestOld = 0;
var c = 0;
</script>
<script src="script/main.js"></script>
<div id='layoutdiv'>
<div id='itemdiv' oncontextmenu="gridItemRClick()" class='itemdiv'>
</div>
<div id='twilighttest' class='twilighttest'>
</div>
<div id='mapdiv' class='mapdiv'>
<div id='submapdiv' class='submapdiv'>
<div align='center'><span id='submaparea' style="font-size:20px">Hyrule</span></div>
<hr style="margin-top: 4px; margin-bottom: 4px">
<ul onselectstart="return false" id='submaplist' style="margin-top: 4px; margin-bottom: 4px; overflow-y: auto; height: 232px;"></ul>
</div>
<div id='checkCounter' style="background-color: black; position:relative; margin-left: 70%; margin-top: 935px; margin-botton: 0px;">4</div>
</div>
</div>
<!-- Setting panel-->
<button id='settingsbutton' type='button' onclick='showSettings(this)'>🔧</button>
<fieldset id='settings' class='settings'>
<legend>Settings</legend>
<fieldset>
<legend>Item Tracker</legend>
<button type="button" onclick="EditMode()">Edit Mode</button>
<button type="button" onclick="ResetLayout()">Reset Layout</button>
<button type="button" onclick="ResetTracker()">Reset Tracker</button>
<br>
Size<input type="range" name='itemdivsize' id='itemrange' value='100' max='200' min='1' onchange="setZoom('itemdiv', this)">
<span id='itemdivsize'>100%</span><br>
<input type="checkbox" name="showprizes" onchange="showPrizes(this)">Show Dungeon Items (BETA)<br>
</fieldset>
<fieldset>
<legend>Map Tracker</legend>
<input type="checkbox" name="showmap" checked='true' onchange="showTracker('mapdiv', this)">Enabled<br>
Size<input type="range" name='mapdivsize' id='maprange' value='100' max='200' min='1' onchange="setZoom('mapdiv', this)">
<span id='mapdivsize'>100%</span><br>
Position:
<input type='radio' name='mapposition' value='Side' checked='true' onclick="setOrder(false)">Side
<input type='radio' name='mapposition' value='Below' onclick="setOrder(true)">Below<br>
</fieldset>
<fieldset>
<legend>Cosmetic Changes</legend>
Map Distance<input type="range" name='trackerDistance' id='trackerDistanceID' value='1' max='100' min='0' onchange="setDistance('twilighttest', this)">
<span id='twilighttestsize'>1%</span><br>
Tracker Opacity<input type="range" name='trackerOpacity' id='trackerOpacityID' value='100' max='100' min='0' onchange="setOpacity('tracker', this)">
<span id='trackersize'>100%</span><br>
Background Image:
<select>
<option id="none">None</option>
<option id="castle">Castle</option>
<option id="meadow">Meadow</option>
<option id="bridge">Bridge</option>
</select>
<button onclick="setBackground()">Set</button>
</fieldset>
</fieldset>
<table id='itemconfig' class='itemconfig' style='display:none'></table>
<script>
init();
</script>
<br/>
<br/>
<footer style='bottom:0; width:100%; text-align: center; position: relative; color:grey'>
<center>
<div id='credits' style="background-color:black; width:25%; text-align: center;">
Twilight Princess Randomizer Tracker v1.2 by Lunar Soap<br />
With help and inspiration from <a href="https://github.com/TreZc0">TreZc0</a> and <a href="https://github.com/TestRunnerSRL">TestRunner</a>
</div>
</center>
</footer>
</body>
</html>