-
Notifications
You must be signed in to change notification settings - Fork 5
/
widget-test.html
112 lines (110 loc) · 3.07 KB
/
widget-test.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
<!doctype html>
<html manifest="cache.manifest">
<head>
<title>Acoustics IFrame Widget Sample</title>
<style>
.acoustics-box {
padding: 4px;
border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px;
background-color: #222;
width: 250px;
height: 100px;
margin-bottom: 10px;
}
.acoustics-queue {
margin-left: 10px;
padding: 4px;
border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px;
background-color: #222;
width: 400px;
height: 400px;
}
.room-title {
font-family: sans-serif;
font-size: 14px;
color: #FFF;
text-shadow: 1px 1px 1px rgba(0,0,0,0.25);
padding-bottom: 3px;
font-weight: bold;
}
.acoustics-controls {
padding: 4px;
border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px;
background-color: #222;
width: 250px;
height: 100px;
overflow: hidden;
}
.floater {
float: left;
}
.clearer {
clear: both;
}
.player {
margin: 10px;
border-radius: 12px; -webkit-border-radius: 12px; -moz-border-radius: 12px;
background-color: #45C;
padding: 8px;
width: 684px;
}
</style>
<script>
function setRoom(what, which) {
what.contentWindow.setPlayer(which);
}
function force() {
setRoom(document.getElementById("rooma"),"default");
setRoom(document.getElementById("rooma_queue"),"default");
setRoom(document.getElementById("rooma_controls"),"default");
setRoom(document.getElementById("roomb"),"extra");
setRoom(document.getElementById("roomb_queue"),"extra");
setRoom(document.getElementById("roomb_controls"),"extra");
}
setTimeout('force()', 3000);
</script>
</head>
<body>
<div>
<a href="javascript:force()">[Fix Broken Players]</a>
</div>
<div class="player">
<div class="room-title">
Room 'default':
</div>
<div class="floater">
<div class="acoustics-box">
<iframe width="100%" height="100%" src="widget.html" frameBorder="0" id="rooma" onload="setRoom(this,'default')"></iframe>
</div>
<div class="acoustics-controls">
<iframe width="100%" height="100%" src="controls.html" frameBorder="0" id="rooma_controls" onload="setRoom(this,'default')"></iframe>
</div>
</div>
<div class="floater">
<div class="acoustics-queue">
<iframe width="100%" height="100%" src="queue.html" frameBorder="0" id="rooma_queue" onload="setRoom(this,'default')"></iframe>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="player">
<div class="room-title">
Room 'extra':
</div>
<div class="floater">
<div class="acoustics-box">
<iframe width="100%" height="100%" src="widget.html" frameBorder="0" id="roomb" onload="setRoom(this,'extra')"></iframe>
</div>
<div class="acoustics-controls">
<iframe width="100%" height="100%" src="controls.html" frameBorder="0" id="roomb_controls" onload="setRoom(this,'extra')"></iframe>
</div>
</div>
<div class="floater">
<div class="acoustics-queue">
<iframe width="100%" height="100%" src="queue.html" frameBorder="0" id="roomb_queue" onload="setRoom(this,'extra')"></iframe>
</div>
</div>
<div class="clearer"></div>
</div>
</body>
</html>