-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex.html
112 lines (98 loc) · 5.43 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
<html>
<head>
<title>Ocarina of Time 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;
}
}
});
}
</script>
<script src="script/main.js"></script>
<div id='layoutdiv'>
<div id='itemdiv' oncontextmenu="gridItemRClick()" class='itemdiv'>
</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>
</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' value='100' max='200' min='1' onchange="setZoom('itemdiv', this)">
<span id='itemdivsize'>100%</span><br>
<input type="checkbox" name="showprizes" checked='true' onchange="showPrizes(this)">Show Medallion Locations<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' 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>
<legend>Rainbow Bridge Logic</legend>
<input type='radio' name='ganonlogic' value='Open' checked='true' onclick="setGanonLogic(this)">Open
<input type='radio' name='ganonlogic' value='Vanilla' onclick="setGanonLogic(this)">Vanilla<br>
<input type='radio' name='ganonlogic' value='Stones' onclick="setGanonLogic(this)">Stones<br>
<input type='radio' name='ganonlogic' value='Medallions' onclick="setGanonLogic(this)">Medallions<br>
<input type='radio' name='ganonlogic' value='Dungeons' onclick="setGanonLogic(this)">Dungeons<br>
<input type='radio' name='ganonlogic' value='Tokens' onclick="setGanonLogic(this)">100 Gold Skulltula Tokens<br>
</fieldset>
<fieldset>
<legend> Custom Logic</legend>
<!--This should be where all the custom logic stuff goes -->
<input type="checkbox" name="chulogic" onchange="setChu(this)"> Bombchus in logic?<br>
<legend>Lens Logic</legend>
<input type="Radio" name="lens" value="All" checked='true' onchange="setLens(this)">Everywhere<br>
<input type="Radio" name="lens" value="Semi" onchange="setLens(this)">Wasteland + Tresure Minigame<br>
<input type="Radio" name="lens" value="Low" onchange="setLens(this)">Tresure Minigame Only<br>
</fieldset>
</fieldset>
</fieldset>
<table id='itemconfig' class='itemconfig' style='display:none'></table>
<script>
init();
</script>
<footer style='bottom:0; width:100%; text-align: center; position: relative; color:grey'>
Ocarina of Time Item Randomizer Tracker v1.2
</footer>
</body>
</html>