-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwrapped.html
63 lines (54 loc) · 1.63 KB
/
wrapped.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
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MTR PIDS Simulator</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body style="overflow: hidden;">
<button class="opnSettings">顯示/隱藏設定 Toggle Settings Page</button>
<!-- <button class="cngLn lang-zh" value="TCL">TCL</button>
<button class="cngLn lang-zh" value="TML">TML</button>
<button class="cngLn lang-zh" value="TKL">TKL</button>
<button class="cngLn lang-zh" value="AEL">AEL</button>
<button class="cngLn lang-zh" value="EAL">EAL</button>
<button class="cngLn lang-zh" value="DRL">DRL</button>
<button class="cngLn lang-zh" value="LRT">LRT</button> -->
<iframe id="frame" src="index.html"></iframe>
</body>
<style>
body {
text-align: center;
}
iframe {
display: block;
margin: auto;
border: none;
width: 75%;
aspect-ratio: 16 / 9;
}
button {
background-color: #DDDDDD;
width: 75%;
border: 0;
font-size: 25px;
border-radius: 7px 7px 0 0;
}
@media (min-aspect-ratio: 1/1) {
iframe {
aspect-ratio: 16 / 9;
}
}
</style>
<script>
$(document).ready(function() {
$(".cngLn").click(function() {
$('.route', $("#frame")[0].contentWindow.document).val($(this).val());
})
$(".opnSettings").click(function() {
document.getElementById("frame").contentWindow.toggleConfigPage()
})
})
</script>
</html>