forked from panzi/Browser-Ponies
-
Notifications
You must be signed in to change notification settings - Fork 3
/
everywhere.html
274 lines (238 loc) · 11.7 KB
/
everywhere.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf8"/>
<meta name="theme-color" content="#adb7d2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="mobile-web-app-capable" content="yes"/>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>
<link rel="icon" href="favicon.ico" type="image/gif" sizes="16x16">
<title>Browser Ponies Everywhere</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css" integrity="sha512-P5MgMn1jBN01asBgU0z60Qk4QxiXo86+wlFahKrsQf37c9cro517WzVSPPV1tDKzhku2iJ2FVgL67wG03SGnNA==" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="./css/bootstrap_pc.css"/>
<link rel="stylesheet" type="text/css" href="./css/gui.css"/>
<style type="text/css">
body,
html {
overflow: hidden;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
iframe {
width: 100%;
height: 100%;
border-style: none;
}
#iframe {
overflow: auto !important;
}
#main {
position: fixed;
top: 10px;
bottom: 10px;
left: 10px;
right: 10px;
z-index: 100000000;
}
#main-inner {
position: absolute;
top: 10px;
bottom: 10px;
left: 10px;
right: 10px;
overflow: auto;
padding: 10px;
}
#buttons a {
padding: 7px !important;
}
#buttons {
position: fixed;
right: 20px;
bottom: 10px;
opacity: 0.3;
}
#buttons:hover {
opacity: 1.0;
z-index: 100000000;
}
#buttons .button,
#buttons button {
margin: 1px;
padding: 2px 6px;
-moz-border-radius: 10px;
border-radius: 10px;
}
form {
display: table;
margin: auto;
}
#url {
width: 400px;
}
.clickgo {
margin-left: 10px;
}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/js/bootstrap.bundle.min.js" integrity="sha512-wV7Yj1alIZDqZFCUQJy85VN+qvEIly93fIQAN7iqDFCPEucLCeNFz4r35FCo9s6WrpdDQPi80xbljXB8Bjtvcg==" crossorigin="anonymous"></script>
<script type="text/javascript" src="./js/ponybase.js"></script>
<script type="text/javascript" src="./js/basecfg.js" id="browser-ponies-config"></script>
<script>
startBaseCfgJS();
</script>
<script type="text/javascript" src="./js/browserponies.js" id="browser-ponies-script"></script>
<script type="text/javascript" src="./js/gui-common.js"></script>
<script type="text/javascript" src="./js/everywhere.js"></script>
</head>
<body>
<iframe id="iframe" border="0"></iframe>
<div id="buttons">
<a class="button fas fa-play" data-toggle="tooltip" title="Start" id="start" style="display:none;"></a>
<a class="button fas fa-stop" data-toggle="tooltip" title="Stop" id="stop"></a>
<a class="button fas fa-cog" data-toggle="tooltip" id="settings" title="Settings"></a>
</div>
<div id="main" class="container" style="display:none;">
<div id="main-inner">
<form id="editurl">
<input type="text" id="url" name="url" placeholder="http://example.com/"/>
<button class="clickgo">Go</button>
</form>
<h2>Change settings and choose your ponies</h2>
<table>
<tbody>
<tr>
<td><input type="checkbox" id="enableaudio"/></td>
<td>
<label for="enableaudio">Enable Audio</label>
<span id="noaudio">(Your Browser does not support HTML5 Audio. Get a
<a href="http://www.google.com/chrome" data-toggle="tooltip" title="Goolge Chrome or…">better</a>
<a href="http://www.mozilla.org/firefox/" data-toggle="tooltip" title="…Mozilla Firefox">browser</a>.)</span>
<span id="hasaudio" style="display:none;">(Your browser supports HTML 5 Audio.)</span>
</td>
</tr>
<tr>
<td><input type="checkbox" id="showfps"/></td>
<td>
<label for="showfps">Show Frames per Second</label>
</td>
</tr>
<tr>
<td><input type="checkbox" id="progressbar" checked/></td>
<td>
<label for="progressbar">Show Progress Bar</label>
</td>
</tr>
<tr>
<td><input type="checkbox" id="dontspeak"/></td>
<td>
<label for="dontspeak">Never Speak</label>
</td>
</tr>
</tbody>
</table>
<table class="config_ponies">
<tbody>
<tr>
<td>
<label for="speed">Speed Multiplier:</label>
</td>
<td>
<input type="text" class="number" id="speed" value="3.0" data-value="3.0" data-min="0.1" data-decimals="1" data-step="0.1" size="3"/>
</td>
<td></td>
<td>
<button id="speedi">+</button>
<button id="speedd">–</button>
</td>
</tr>
<tr data-toggle="tooltip" title="Even if this is 0% ponies will speak if an animation requires it.">
<td>
<label for="speak">Random Speak Probability:</label>
</td>
<td>
<input type="text" class="number" id="speak" value="15" data-value="15" data-min="0" data-max="100" data-decimals="0" size="3"/>
</td>
<td>%</td>
<td>
<button id="speaki">+</button>
<button id="speakd">–</button>
</td>
</tr>
<tr>
<td>
<label for="volume">Volume:</label>
</td>
<td>
<input type="text" class="number" id="volume" value="100" data-value="100" data-min="0" data-max="100" data-decimals="0" data-step="10" size="3"/>
</td>
<td>%</td>
<td>
<button id="volumei">+</button>
<button id="volumed">–</button>
</td>
</tr>
<tr>
<td>
<label for="fps">Frames per Second:</label>
</td>
<td>
<input type="text" class="number" id="fps" value="25" data-value="25" data-min="1" data-decimals="0" size="3"/>
</td>
<td></td>
<td>
<button id="fpsi">+</button>
<button id="fpsd">–</button>
</td>
</tr>
<tr>
<td>
<label for="fade">Fade Duration:</label>
</td>
<td>
<input type="text" class="number" id="fade" value="0.5" data-value="0.5" data-min="0" data-decimals="1" data-step="0.1" size="3"/>
</td>
<td>sec</td>
<td>
<button id="fadei">+</button>
<button id="faded">–</button>
</td>
</tr>
</tbody>
</table>
<div id="filterwrapper">
<label for="addcat">Filter Categories:</label>
<button id="addcat">+</button>
<ul id="catselect" style="display:none;">
<li id="allcatsadded">All Added</li>
</ul>
<ul id="catlist"></ul>
<span id="nocatadded" style="display:none;">No Category Selected</span>
<button id="removeall" data-toggle="tooltip" title="Remove All">⌫</button>
</div>
<ul id="ponylist"></ul>
<p id="zero">
<button id="setallzero">Set all Ponies to 0</button>
</p>
<h2>About</h2>
<p>
This is a version of <a href="ponies.html">Browser Ponies</a> that lets you put ponies on a website by simply putting <tt>"https://tinyurl.com/ponyfy2#"</tt> in front of the URL of the website. So e.g. <tt>"<a href="http://example.com/">example.com</a>"</tt> becomes
<tt>"<a href="https://tinyurl.com/ponyfy2#example.com">https://tinyurl.com/ponyfy2#example.com</a>"</tt>.
</p>
<p>
Note that not all websites allow embedding in an iframe (which is used here). E.g.
<a href="https://tinyurl.com/ponyfy2#google.com">Google does not work</a>.
</p>
<p>
See <a href="ponies.html">this</a> for more information and a way to embed ponies to your website permanently.
</p>
<div id="footer">© 2011-2013 <a href="https://github.com/panzi/Browser-Ponies" target="_blank">Mathias Panzenböck</a> | 2017-2018 Updated by <a href="https://github.com/JasminDreasond/Browser-Ponies" target="_blank">Jasmin Dreasond</a>
</div>
</div>
</div>
<script type="text/javascript" src="./js/everywhere_b.js"></script>
</body>
</html>