-
Notifications
You must be signed in to change notification settings - Fork 6
/
index2.html
71 lines (71 loc) · 3.88 KB
/
index2.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
<html>
<body>
<script>
function resetTitle() {
let title = document.getElementById('simtitle');
title.textContent = 'Frequently Asked Questions';
}
function setTitle(str) {
let title = document.getElementById('simtitle');
title.textContent = str;
}
(async () => {
const response = await fetch('https://api.github.com/repos/balance-simc/Balance-SimC/contents/');
const data = await response.json();
let htmlString = '<ul style=\"font-family:monospace; column-count:2;\">';
for (let file of data) {
let ext = file.name.split('.').pop();
if (ext == 'txt' || ext == 'rar') {
htmlString += `<li><a href="${file.name}" target="simframe" onclick="setTitle('${file.name}')">${file.name}</a></li>`;
}
}
htmlString += '</ul>';
document.getElementById('dir').innerHTML = htmlString;
})()
function changeTarget(sel) {
idx2 = sel.selectedIndex;
if (sel.options[idx2].value != 'none') {
document.getElementById('frame2').src = sel.options[idx2].value;
}
}
function changeFrame(child) {
try {
let ifdoc = child.contentWindow.document;
let iftype = ifdoc.contentType || ifdoc.mimeType;
if (iftype != 'text/html') {
ifdoc.body.style.color = '#FF7D0A';
}
}
catch(e) {
return;
}
}
</script>
<style>body {background-color:#242424; color:#FF7D0A;} a {text-decoration:none; color:#FF7D0A;} ul {margin:0;} option, select {color:#FF7D0A; background-color:#242424; font-family:monospace; font-size:large;}</style>
<div style="display:flex">
<div stype="display:flex; flex-direction:column;">
<div><b>Legendary x Covenant </b>
<select id="targets" onchange="changeTarget(this)">
<option value="by_combo_1.html">1 Target</option>
<option value="by_combo_2.html">2 Targets</option>
<option value="by_combo_3.html">3 Targets</option>
<option value="by_combo_4.html">4 Targets</option>
<option value="by_combo_5.html">5 Targets</option>
<option value="by_combo_-1.html">1T Move</option>
<option value="by_combo_0.html">Dungeon</option>
</select>
</div>
<div><iframe id="frame2" src="by_combo_1.html" style="border:none; font-family:monospace; font-size:large; width:44ch; height:88ex;"></iframe></div>
<div style="text-align:center; font-size:larger; margin-top:0; margin-bottom:0.25em;"><a style="text-decoration:underline;" href="md.html?file=faq.txt" target="simframe" onclick="setTitle('Frequently Asked Questions')"><b>Frequently Asked Questions</b></a></div>
<div style="text-align:center; font-size:larger; margin-top:0; margin-bottom:0.25em;"><a style="text-decoration:underline;" href="md.html?file=balance.txt" target="simframe" onclick="setTitle('Balance APL')"><b>Shadowlands BETA Balance APL</b></a></div>
<div style="text-align:center; font-size:larger; margin-top:0; margin-bottom:0.25em;"><a style="text-decoration:underline;" href="https://github.com/balance-simc/Balance-SimC/issues/new/choose"><b>Bugs/Improvements/Questions</b></a></div>
<div style="text-align:center; font-size:larger; margin-top:0; margin-bottom:0.25em;"><a style="text-decoration:underline;" href="by_talent.html" target="simframe" onclick="setTitle('Detailed Sims by Talents')"><b>Detailed Sims by Talents</b></a></div>
<div id="dir"></div>
</div>
<div style="display:flex; flex-direction:column; height:97vh">
<div><b><span id="simtitle">Frequently Asked Questions</span></b></div>
<iframe name="simframe" src="md.html?file=faq.txt" style="border:none; height:98%; width:1260px; margin-top:5px" onload="changeFrame(this)"></iframe>
</div>
</div>
<body>
</html>