-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmobile.html
executable file
·78 lines (67 loc) · 2.09 KB
/
mobile.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
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Music</title>
<style>
iframe {
position: absolute;
margin: 0;
padding: 0;
border: none;
top: 0;
left: 0;
right: 0;
width: 100vw;
height: calc(100vh - 50px);
}
#tab-foot {
position: fixed;
margin: 0;
padding: 0;
bottom: 0;
left: 0;
right: 0;
width: 100vw;
height: 50px;
background: rgba(255,255,255,0.9);
}
button {
position: fixed;
background: none;
border: none;
width: 33vw;
height: 50px;
bottom: 0;
font-family: Verdana;
font-size: 12px;
}
</style>
</head>
<body>
<iframe src="audio.html" id="player" name="player" style="display:block"></iframe>
<iframe src="browser.html" id="browser" name="browser" style="display:none"></iframe>
<div id="tab-foot">
<button onclick="show_audio()" style="left:0">Now Playing</button>
<button onclick="show_browser()" style="left:33vw">Browser</button>
<button onclick="show_search()" style="left:66vw">Search</button>
</div>
<script>
function show_audio() {
document.getElementById("player").style.display = "block";
document.getElementById("browser").style.display = "none";
}
function show_browser() {
document.getElementById("browser").style.display = "block";
document.getElementById("player").style.display = "none";
}
function show_search() {
s = document.getElementById("browser").contentWindow.document.getElementById("search");
if (s.style.display == "none") {
s.style.display = "block";
} else {
s.style.display = "none";
}
}
</script>
</body>
</html>