-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
90 lines (76 loc) · 2.42 KB
/
Copy pathindex.html
File metadata and controls
90 lines (76 loc) · 2.42 KB
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
</html><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bitmap array tools</title>
<style>
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; font-family: sans-serif; }
nav {
height: 60px;
background: #31455a;
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
position: relative;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
button {
padding: 10px 20px;
margin: 0 10px;
cursor: pointer;
border: none;
border-radius: 5px;
background-color: #3498db;
color: white;
}
button:hover {
background-color: #2980b9;
}
button:active {
transform: scale(0.98);
background-color: #1f6391;
}
button.active {
background-color: #1f6391;
box-shadow: 0 0 0 2px #ecf0f1;
}
.frame-container {
position: relative;
height: calc(100vh - 60px);
width: 100%;
}
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
visibility: hidden;
}
iframe.show {
visibility: visible;
}
</style>
</head>
<body>
<nav>
<button id="btn-play" class="active" onclick="switchTab('player')">Player</button>
<button id="btn-conv" onclick="switchTab('converter')">Converter</button>
</nav>
<div class="frame-container">
<iframe id="frame-converter" src="BitmapArrayTools/converter.html"></iframe>
<iframe id="frame-player" src="BitmapArrayTools/player.html" class="show"></iframe>
</div>
<script>
function switchTab(type) {
document.getElementById('frame-converter').classList.toggle('show', type === 'converter');
document.getElementById('frame-player').classList.toggle('show', type === 'player');
document.getElementById('btn-conv').classList.toggle('active', type === 'converter');
document.getElementById('btn-play').classList.toggle('active', type === 'player');
}
</script>
</body>
</html>