-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.html
221 lines (198 loc) · 10.2 KB
/
output.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<link rel="stylesheet" href="./map_files/remodal.css">
<link rel="stylesheet" href="./map_files/remodal-default-theme.css">
<script src="./map_files/remodal.js"></script>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<style type="text/css">
body {font: 14px GillSansRegular, "Gill Sans MT", "Gill Sans", "Trebuchet MS", sans-serif; width: 1200px;
background: white; /* For browsers that do not support gradients */
background: -webkit-radial-gradient(#333333, #999999); /* For Safari 5.1 to 6.0 */
background: -o-radial-gradient(#333333, #999999); /* For Opera 11.1 to 12.0 */
background: -moz-radial-gradient(#333333, #999999); /* For Firefox 3.6 to 15 */
background: #212121; /* radial-gradient(#333333, #999999); /* Standard syntax */}
.canvas {position: relative}
.genre {padding: 0px 2px; position: absolute; white-space: nowrap; cursor: pointer; overflow: hidden; font-size:55%; font-weight:800 }
.genre:hover { font-size:200%}
.genre[played]:before {content: "\266B" !important; color: black !important}
#mirror .genre:hover {color: white !important}
#mirror .genre[played]:before {content: "\266B" !important; color: white !important}
#mirror .current.genre[played]:before {color: gray !important}
.genrelink {padding: 0px 2px; position: absolute; white-space: nowrap;}
#mirror .genre[played] {color: #E6ADB7 !important}
.title {float: center; font-weight: bold; font-size: 200%; margin-right: 32px}
.title a {color: white; float: center}
form {display: inline; white-space: nowrap;}
a, .related a {text-decoration: none; color: teal}
a:hover, .fakelink:hover {color: FireBrick !important}
.fakelink {cursor: pointer; color: teal}
.genre.current {font-weight: bold; padding: 1px 2px; background: whitesmoke; border-color: black; border-style: solid;
border-width: 1px 1px 1px 8px; z-index: 1000}
.genre.current .navlink {background: whitesmoke}
.navlink {display: none; color: FireBrick; background: white; padding: 0px 2px}
#mirror .navlink {background: inherit}
.navlink:hover {color: white !important; background: black !important}
.genre.current .navlink, .genre:hover .navlink, .genrelink:hover .navlink {display: inline; z-index: 10000}
.genrelink:hover .navlink {color: black}
.related {color: gray; margin-top: 32px; width: 1500px;}
.related a {white-space: nowrap}
.volcontrol {display: none; color: silver; cursor: pointer;font-weight: normal; font-size: 16px;}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: inline-block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover, .dropdown:hover .dropbtn {
background-color: red;
}
#bottombar {
top: 5;
left: 5;
position: fixed;
color: white;
right: 0;
text-align: left;
}
#dimbar {
top: 0;
right: 5;
color: white;
position: fixed;
right: 0;
text-align: left;
}
.embossed{
font-family: Raleway;
}
.ylabel { -ms-transform: rotate(-90deg); -webkit-transform: rotate(-90deg); transform: rotate(-90deg); transform-origin: top left;}
</style>
<script type="text/javascript">
function getExtension(filename) {
var parts = filename.split('.');
return parts[parts.length - 1];
}
function isImage(filename) {
var ext = getExtension(filename);
switch (ext.toLowerCase()) {
case 'jpg':
case 'gif':
case 'bmp':
case 'png':
return true;
}
return false;
}
function isVideo(filename) {
var ext = getExtension(filename);
switch (ext.toLowerCase()) {
case 'm4v':
case 'avi':
case 'mpg':
case 'mp4':
case 'webm':
return true;
}
return false;
}
function isAudio(filename) {
var ext = getExtension(filename);
switch (ext.toLowerCase()) {
case 'mp3':
case 'wav':
return true;
}
return false;
}
var currentZ = 1;
function playx(key, item, dims, me) {
var img = document.getElementById("currentimg");
if (img){
if (img.parentNode != me){
$(img).parent().children().filter("video").each(function(){
this.pause(); // can't hurt
this.muted = true; // another attempt
delete this; // another attempt
$(this).remove(); // this is probably what actually does the trick
});
if (img.parentNode != null) { // if it's still there
img.parentNode.removeChild(img);
}
} else {
return
}
}
if (isAudio(key)) {
var audioplayer = document.createElement("audio");
audioplayer.controls = "controls";
audioplayer.src = key;
audioplayer.play();
} else if (isImage(key)){
var img = document.createElement("img");
img.id = "currentimg"
img.src = key;
img.height = 130;
img.alt = "Unable to find image";
me.appendChild(img);
me.style.zIndex = currentZ + 1;
currentZ = currentZ + 1;
} else if (isVideo(key)){
var gif = document.createElement("video");
var source = document.createElement("source");
gif.id = "currentimg"
gif.src = key;
source.src = key;
source.type = "video/mp4";
gif.height = 320;
gif.autoplay = "autoplay";
gif.loop = "loop";
gif.alt = "Unable to find image";
me.appendChild(gif);
me.style.zIndex = currentZ + 1;
currentZ = currentZ + 1;
}
}
$(window).load(function() {
var options = { };
$('[data-remodal-id=modal]').remodal(options).open();
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
</head>
<body>
<div class=title><i class="far fa-hand-pointer"></i><a>MY TITLE</a>
<!--<span class="far fa-hand-pointer fa-2x" style="color:#FFFFFF;"></span>-->
<audio id=audioplayer style="display: none; vertical-align: bottom" controls="controls"></audio>
<span class=volcontrol id=volcontrol><input type=range min=0 max=1 step=.05 value=1 onchange="document.getElementById('audioplayer').volume=this.value">?</span>
</div>
<div class=canvas style="width: 1250px; height: 800px; top: 20px; float:left">
<div id=item0 class="genre" scan=true style="color: #ffcccc; top: 10.0px; left: 62.5px;" onmouseover="playx("mixed_plot/0123.mp4", "0",[], this);" title="bed"><b>▪</b></div>
<div id=item1 class="genre" scan=true style="color: #ffcccc; top: 710.0px; left: 179.8478362204163px;" onmouseover="playx("mixed_plot/img427.jpg", "1",[], this);" title="bed"><b>▪</b></div>
<div id=item2 class="genre" scan=true style="color: #ffcccc; top: 315.3353738572086px; left: 937.5px;" onmouseover="playx("https://sail.usc.edu/~somandep/maps/speech_commands_data/bed_35d1b6ee_nohash_0.wav", "2",[], this);" title="bed"><b>▪</b></div>
<div class="embossed" style="position: absolute; color: #ffcccc; top: 345.1117912857362px; left: 393.28261207347214px; font-size: 150%"><b>▪-bed</b></div>
<div id="bottombar"></div>
<div id="dimbar" class="radarChart"></div>
<div class="remodal-overlay remodal-is-closed" style="display: none;"></div><div class="remodal-wrapper remodal-is-closed" style="display: none;"><div class="remodal remodal-is-initialized remodal-is-closed" id="modal" data-remodal-id="modal" role="dialog" aria-labelledby="modal1Title" aria-describedby="modal1Desc" tabindex="-1">
<button data-remodal-action="close" class="remodal-close" aria-label="Close"></button>
<div>
<h2 id="modal1Title">MY TITLE</h2>
<p id="modal1Desc">
MY DESCRIPTION <b>Click anywhere to begin audio</b>
</p>
</div>
<br>
<button data-remodal-action="confirm" class="remodal-confirm">Continue</button>
</div></div></body></html>