j1-template 2024.3.12 → 2024.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/README.md +560 -577
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/modules/navigator_menu.yml +803 -831
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/tools/previewer/_includes/attributes.asciidoc +16 -0
- data/lib/starter_web/pages/public/tour/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/pages/public/tour/playback_audio.adoc +188 -197
- data/lib/starter_web/pages/public/tour/present_images.adoc +2 -1
- metadata +2 -8
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/amplitudejs.large.css.asciidoc +0 -505
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.hover.html +0 -69
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.nested.html +0 -75
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.textarea.html +0 -57
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/my.content.html +0 -112
- data/lib/starter_web/pages/public/tools/previewer/preview_amplitudejs.adoc +0 -172
data/lib/starter_web/pages/public/tools/previewer/_includes/documents/amplitudejs.large.css.asciidoc
DELETED
@@ -1,505 +0,0 @@
|
|
1
|
-
++++
|
2
|
-
<style>
|
3
|
-
|
4
|
-
/* LARGE Player
|
5
|
-
# --------------------------------------------------------- */
|
6
|
-
|
7
|
-
div#amplitude-player {
|
8
|
-
display: flex;
|
9
|
-
max-width: fit-content;
|
10
|
-
background: var(--ajs-theme-uno--white);
|
11
|
-
}
|
12
|
-
|
13
|
-
div#playlist-header.player-expanded {
|
14
|
-
position: sticky;
|
15
|
-
cursor: default;
|
16
|
-
top: 0;
|
17
|
-
width: 100%;
|
18
|
-
padding: 15px;
|
19
|
-
font-family: "Lato", sans-serif;
|
20
|
-
text-align: center;
|
21
|
-
color: var(--ajs-theme-uno--white);
|
22
|
-
background-color: var(--ajs-theme-uno--dark-silver);
|
23
|
-
}
|
24
|
-
|
25
|
-
/* Bootstrap media query breakpoints
|
26
|
-
--------------------------------------------------- */
|
27
|
-
/* Small only */
|
28
|
-
@media screen and (max-width: 39.9375em) {
|
29
|
-
div#amplitude-player {
|
30
|
-
flex-direction: column;
|
31
|
-
}
|
32
|
-
div#amplitude-player {
|
33
|
-
::-webkit-scrollbar {
|
34
|
-
display: none;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
div#amplitude-player div#amplitude-right {
|
38
|
-
width: 100%;
|
39
|
-
}
|
40
|
-
div#amplitude-player div#amplitude-left {
|
41
|
-
width: 100%;
|
42
|
-
}
|
43
|
-
div#amplitude-player div#amplitude-left img[amplitude-song-info="cover_art_url"] {
|
44
|
-
width: auto;
|
45
|
-
height: auto;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
/* Medium only */
|
50
|
-
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
|
51
|
-
div#amplitude-player {
|
52
|
-
/* jadams */
|
53
|
-
}
|
54
|
-
}
|
55
|
-
|
56
|
-
/* Large and up */
|
57
|
-
@media screen and (min-width: 64em) {
|
58
|
-
div#amplitude-player {
|
59
|
-
/* ::-webkit-scrollbar {
|
60
|
-
display: none;
|
61
|
-
} */
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
div#amplitude-left img.album-art {
|
66
|
-
width: 100%;
|
67
|
-
}
|
68
|
-
|
69
|
-
div#amplitude-left div#player-left-bottom {
|
70
|
-
flex: 1;
|
71
|
-
background-color: var(--ajs-theme-uno--blue-gray-900);
|
72
|
-
}
|
73
|
-
|
74
|
-
div#amplitude-left div#player-left-bottom div#volume-container:after {
|
75
|
-
content: "";
|
76
|
-
display: table;
|
77
|
-
clear: both;
|
78
|
-
}
|
79
|
-
|
80
|
-
div#amplitude-right div.song.amplitude-active-song-container:hover div.play-button-container {
|
81
|
-
display: none;
|
82
|
-
}
|
83
|
-
|
84
|
-
div#amplitude-right div.song div.audio-meta-data {
|
85
|
-
float: left;
|
86
|
-
width: calc(100% - 145px);
|
87
|
-
}
|
88
|
-
|
89
|
-
div#amplitude-right div.song div.audio-meta-data span.audio-artist {
|
90
|
-
display: block;
|
91
|
-
font-size: 16px;
|
92
|
-
white-space: nowrap;
|
93
|
-
overflow: hidden;
|
94
|
-
text-overflow: ellipsis;
|
95
|
-
color: var(--ajs-theme-uno--gray-300);
|
96
|
-
}
|
97
|
-
|
98
|
-
div#amplitude-right div.song img.audio-info-blue {
|
99
|
-
float: right;
|
100
|
-
display: block;
|
101
|
-
margin-top: 10px;
|
102
|
-
margin-right: 10px;
|
103
|
-
}
|
104
|
-
|
105
|
-
div#amplitude-right div.song img.audio-info-white {
|
106
|
-
float: right;
|
107
|
-
display: none;
|
108
|
-
margin-top: 10px;
|
109
|
-
margin-right: 10px;
|
110
|
-
}
|
111
|
-
|
112
|
-
div#amplitude-right div.song:after {
|
113
|
-
content: "";
|
114
|
-
display: table;
|
115
|
-
clear: both;
|
116
|
-
}
|
117
|
-
|
118
|
-
div#control-container {
|
119
|
-
margin-top: 40px;
|
120
|
-
margin-bottom: 20px;
|
121
|
-
}
|
122
|
-
|
123
|
-
div#control-container div#repeat-container {
|
124
|
-
width: 25%;
|
125
|
-
float: left;
|
126
|
-
padding-top: 20px;
|
127
|
-
}
|
128
|
-
|
129
|
-
div#control-container div#volume-container {
|
130
|
-
width: 88%;
|
131
|
-
float: left;
|
132
|
-
margin-top: 20px;
|
133
|
-
margin-left: 12px;
|
134
|
-
}
|
135
|
-
|
136
|
-
div#control-container div.amplitude-mute {
|
137
|
-
cursor: pointer;
|
138
|
-
width: 25px;
|
139
|
-
height: 19px;
|
140
|
-
float: left;
|
141
|
-
}
|
142
|
-
|
143
|
-
div#control-container div.amplitude-mute.amplitude-not-muted {
|
144
|
-
background: url("/assets/theme/j1/modules/amplitudejs/icons/black-player/volume.svg") no-repeat;
|
145
|
-
}
|
146
|
-
|
147
|
-
div#control-container div.amplitude-mute.amplitude-muted {
|
148
|
-
background: url("/assets/theme/j1/modules/amplitudejs/icons/black-player/mute.svg") no-repeat;
|
149
|
-
}
|
150
|
-
|
151
|
-
/* clearfix control container */
|
152
|
-
div#control-container:after {
|
153
|
-
content: "";
|
154
|
-
display: table;
|
155
|
-
clear: both;
|
156
|
-
}
|
157
|
-
|
158
|
-
div#time-container {
|
159
|
-
margin-top: 30px;
|
160
|
-
}
|
161
|
-
|
162
|
-
div#time-container span.current-time {
|
163
|
-
color: var(--ajs-theme-uno--blue-gray);
|
164
|
-
font-size: 14px;
|
165
|
-
font-weight: bold;
|
166
|
-
float: left;
|
167
|
-
width: 15%;
|
168
|
-
text-align: center;
|
169
|
-
}
|
170
|
-
|
171
|
-
div#time-container span.duration {
|
172
|
-
color: var(--ajs-theme-uno--blue-gray);
|
173
|
-
font-size: 14px;
|
174
|
-
font-weight: bold;
|
175
|
-
float: left;
|
176
|
-
width: 15%;
|
177
|
-
text-align: center;
|
178
|
-
}
|
179
|
-
|
180
|
-
div#time-container:after {
|
181
|
-
content: "";
|
182
|
-
display: table;
|
183
|
-
clear: both;
|
184
|
-
}
|
185
|
-
|
186
|
-
div#meta-container {
|
187
|
-
text-align: center;
|
188
|
-
margin-top: 20px;
|
189
|
-
}
|
190
|
-
|
191
|
-
div#meta-container span.song-name {
|
192
|
-
display: block;
|
193
|
-
color: var(--ajs-theme-uno--gray-100);
|
194
|
-
font-size: 24px;
|
195
|
-
font-family: "Lato", sans-serif;
|
196
|
-
white-space: nowrap;
|
197
|
-
overflow: hidden;
|
198
|
-
text-overflow: ellipsis;
|
199
|
-
}
|
200
|
-
|
201
|
-
div#meta-container div.song-artist-album {
|
202
|
-
color: var(--ajs-theme-uno--blue-gray-300);
|
203
|
-
font-size: 18px;
|
204
|
-
font-weight: bold;
|
205
|
-
font-family: "Lato", sans-serif;
|
206
|
-
white-space: nowrap;
|
207
|
-
overflow: hidden;
|
208
|
-
text-overflow: ellipsis;
|
209
|
-
}
|
210
|
-
|
211
|
-
div#meta-container div.song-artist-album span {
|
212
|
-
display: block;
|
213
|
-
}
|
214
|
-
|
215
|
-
/* jadams: should rplaced by: song-artist-album */
|
216
|
-
div#meta-container div.audio-artist-album {
|
217
|
-
color: var(--ajs-theme-uno--blue-gray-300);
|
218
|
-
font-size: 18px;
|
219
|
-
font-weight: bold;
|
220
|
-
font-family: "Lato", sans-serif;
|
221
|
-
white-space: nowrap;
|
222
|
-
overflow: hidden;
|
223
|
-
text-overflow: ellipsis;
|
224
|
-
}
|
225
|
-
|
226
|
-
div#meta-container div.audio-artist-album span {
|
227
|
-
display: block;
|
228
|
-
}
|
229
|
-
|
230
|
-
div#amplitude-left {
|
231
|
-
display: flex;
|
232
|
-
flex-direction: column;
|
233
|
-
overflow-y: clip;
|
234
|
-
padding: 0px;
|
235
|
-
width: 50%;
|
236
|
-
background-color: var(--ajs-theme-uno--darker-silver) !important;
|
237
|
-
}
|
238
|
-
|
239
|
-
div#amplitude-right {
|
240
|
-
display: flex;
|
241
|
-
flex-direction: column;
|
242
|
-
padding: 0px;
|
243
|
-
overflow-y: scroll;
|
244
|
-
width: 50%;
|
245
|
-
background-color: var(--ajs-theme-uno--darker-silver) !important;
|
246
|
-
}
|
247
|
-
|
248
|
-
div#amplitude-right div.song {
|
249
|
-
cursor: pointer;
|
250
|
-
padding: 12px;
|
251
|
-
background-color: var(--ajs-theme-uno--darker-silver);
|
252
|
-
}
|
253
|
-
|
254
|
-
div#control-container div#volume-container div.volume-controls input[type=range] {
|
255
|
-
width: calc(100% - 45px);
|
256
|
-
}
|
257
|
-
|
258
|
-
/* jadams: playlist controls (prev|play-pause|next */
|
259
|
-
div#amplitude-right div#playlist-screen-controls div#playlist-screen-meta-container span.song-name {
|
260
|
-
font-family: "Lato", sans-serif;
|
261
|
-
font-size: 22px;
|
262
|
-
color: #fff;
|
263
|
-
letter-spacing: 0.5px;
|
264
|
-
line-height: 24px;
|
265
|
-
margin-left: 38px;
|
266
|
-
}
|
267
|
-
|
268
|
-
div#amplitude-right div#playlist-screen-controls div#playlist-screen-meta-container div.song-artist-album {
|
269
|
-
opacity: 0.5;
|
270
|
-
font-family: "Lato", sans-serif;
|
271
|
-
font-size: 16px;
|
272
|
-
color: #fff;
|
273
|
-
letter-spacing: 0.5px;
|
274
|
-
line-height: 16px;
|
275
|
-
margin-left: 38px;
|
276
|
-
}
|
277
|
-
|
278
|
-
div#amplitude-right div#playlist-screen-controls div.list-controls {
|
279
|
-
float: right;
|
280
|
-
width: 90px;
|
281
|
-
margin-top: -32px;
|
282
|
-
}
|
283
|
-
|
284
|
-
div#amplitude-right div#playlist-screen-controls div.list-controls div.list-previous {
|
285
|
-
float: left;
|
286
|
-
cursor: pointer;
|
287
|
-
width: 15px;
|
288
|
-
height: 17px;
|
289
|
-
margin-right: 15px;
|
290
|
-
margin-top: 4px;
|
291
|
-
background-repeat: no-repeat;
|
292
|
-
background-image: url(/assets/theme/j1/modules/amplitudejs/icons/black-player/small/previous.svg);
|
293
|
-
}
|
294
|
-
|
295
|
-
div#amplitude-right div#playlist-screen-controls div.list-controls div.list-previous:hover {
|
296
|
-
opacity: .5;
|
297
|
-
}
|
298
|
-
|
299
|
-
div#amplitude-right div#playlist-screen-controls div.list-controls div.list-play-pause.amplitude-paused {
|
300
|
-
background-repeat: no-repeat;
|
301
|
-
background-image: url(/assets/theme/j1/modules/amplitudejs/icons/black-player/small/play.svg);
|
302
|
-
}
|
303
|
-
|
304
|
-
div#amplitude-right div#playlist-screen-controls div.list-controls div.list-play-pause {
|
305
|
-
float: left;
|
306
|
-
cursor: pointer;
|
307
|
-
width: 17px;
|
308
|
-
height: 24px;
|
309
|
-
}
|
310
|
-
|
311
|
-
div#amplitude-right div#playlist-screen-controls div.list-controls div.list-play-pause:hover {
|
312
|
-
opacity: .5;
|
313
|
-
}
|
314
|
-
|
315
|
-
div#amplitude-right div#playlist-screen-controls div.list-controls div.list-play-pause.amplitude-playing {
|
316
|
-
background-repeat: no-repeat;
|
317
|
-
background-image: url(/assets/theme/j1/modules/amplitudejs/icons/black-player/small/pause.svg);
|
318
|
-
}
|
319
|
-
|
320
|
-
div#amplitude-right div#playlist-screen-controls div.list-controls div.list-next {
|
321
|
-
float: left;
|
322
|
-
cursor: pointer;
|
323
|
-
width: 15px;
|
324
|
-
height: 17px;
|
325
|
-
margin-left: 15px;
|
326
|
-
margin-top: 4px;
|
327
|
-
background-repeat: no-repeat;
|
328
|
-
background-image: url(/assets/theme/j1/modules/amplitudejs/icons/black-player/small/next.svg);
|
329
|
-
}
|
330
|
-
|
331
|
-
div#amplitude-right div#playlist-screen-controls div.list-controls div.list-next:hover {
|
332
|
-
opacity: .5;
|
333
|
-
}
|
334
|
-
|
335
|
-
div#amplitude-right div.song div.audio-meta-data span.audio-title {
|
336
|
-
font-family: "Lato", sans-serif;
|
337
|
-
font-size: 20px;
|
338
|
-
line-height: 20px;
|
339
|
-
letter-spacing: 0.47px;
|
340
|
-
white-space: nowrap;
|
341
|
-
color: var(--ajs-theme-uno--blue);
|
342
|
-
}
|
343
|
-
|
344
|
-
div#amplitude-right div.song.amplitude-song-container.amplitude-play-pause.amplitude-active-song-container {
|
345
|
-
background-color: var(--ajs-theme-uno--medium-silver) !important;
|
346
|
-
}
|
347
|
-
|
348
|
-
div#amplitude-right div.song.amplitude-active-song-container div.song-now-playing-icon-container span.number {
|
349
|
-
display: inline-flex;
|
350
|
-
opacity: 0.5;
|
351
|
-
font-family: "Lato", sans-serif;
|
352
|
-
font-size: 16px;
|
353
|
-
color: var(--ajs-theme-uno--gray-200);
|
354
|
-
letter-spacing: 0.5px;
|
355
|
-
}
|
356
|
-
|
357
|
-
span.title-number {
|
358
|
-
display: inline-flex;
|
359
|
-
opacity: 0.5;
|
360
|
-
font-family: "Lato", sans-serif;
|
361
|
-
font-size: 16px;
|
362
|
-
color: var(--ajs-theme-uno--gray-200);
|
363
|
-
letter-spacing: 0.5px;
|
364
|
-
}
|
365
|
-
|
366
|
-
div#amplitude-right div.song div.song-now-playing-icon-container img.now-playing {
|
367
|
-
display: none;
|
368
|
-
}
|
369
|
-
|
370
|
-
div#amplitude-right div.song.amplitude-active-song-container div.song-now-playing-icon-container img.now-playing {
|
371
|
-
display: block;
|
372
|
-
margin-top: 5px;
|
373
|
-
margin-left: 8px;
|
374
|
-
height: 16px;
|
375
|
-
width: 16px;
|
376
|
-
}
|
377
|
-
|
378
|
-
div#amplitude-right div.song div.song-now-playing-icon-container {
|
379
|
-
float: left;
|
380
|
-
width: 26px;
|
381
|
-
height: 20px;
|
382
|
-
margin-top: 12px;
|
383
|
-
margin-right: 20px;
|
384
|
-
}
|
385
|
-
|
386
|
-
div#large-player-controls {
|
387
|
-
height: 65px;
|
388
|
-
}
|
389
|
-
|
390
|
-
/* jadams: player controls (shuffle|prev|play-pause|next|repeat) */
|
391
|
-
div#large-player-controls div.large-player-controls-container {
|
392
|
-
text-align: center;
|
393
|
-
}
|
394
|
-
|
395
|
-
div#large-player-controls div.large-player-controls-container div#shuffle-black {
|
396
|
-
display: inline-block;
|
397
|
-
width: 24px;
|
398
|
-
height: 24px;
|
399
|
-
cursor: pointer;
|
400
|
-
vertical-align: middle;
|
401
|
-
margin-right: 25px;
|
402
|
-
margin-left: -16px;
|
403
|
-
}
|
404
|
-
|
405
|
-
div#large-player-controls div.large-player-controls-container div#shuffle-black:hover {
|
406
|
-
opacity: .5;
|
407
|
-
}
|
408
|
-
|
409
|
-
div#large-player-controls div.large-player-controls-container div#shuffle-black.amplitude-shuffle-off {
|
410
|
-
background: url("/assets/theme/j1/modules/amplitudejs/icons/black-player/shuffle-disabled.svg") no-repeat;
|
411
|
-
}
|
412
|
-
|
413
|
-
div#large-player-controls div.large-player-controls-container div#shuffle-black.amplitude-shuffle-on {
|
414
|
-
background: url("/assets/theme/j1/modules/amplitudejs/icons/black-player/shuffle-enabled.svg") no-repeat;
|
415
|
-
}
|
416
|
-
|
417
|
-
div#large-player-controls div.large-player-controls-container div#previous-black {
|
418
|
-
display: inline-block;
|
419
|
-
height: 24px;
|
420
|
-
width: 24px;
|
421
|
-
cursor: pointer;
|
422
|
-
vertical-align: middle;
|
423
|
-
margin-right: 20px;
|
424
|
-
background: url("/assets/theme/j1/modules/amplitudejs/icons/black-player/previous-hover.svg") no-repeat;
|
425
|
-
}
|
426
|
-
|
427
|
-
div#large-player-controls div.large-player-controls-container div#previous-black:hover {
|
428
|
-
opacity: .5;
|
429
|
-
}
|
430
|
-
|
431
|
-
div#large-player-controls div.large-player-controls-container div#play-pause-black {
|
432
|
-
display: inline-block;
|
433
|
-
width: 60px;
|
434
|
-
height: 60px;
|
435
|
-
cursor: pointer;
|
436
|
-
vertical-align: middle;f
|
437
|
-
margin-right: 10px;
|
438
|
-
}
|
439
|
-
|
440
|
-
div#large-player-controls div.large-player-controls-container div#play-pause-black:hover {
|
441
|
-
opacity: .5;
|
442
|
-
}
|
443
|
-
|
444
|
-
div#large-player-controls div.large-player-controls-container div#play-pause-black.amplitude-paused {
|
445
|
-
background: url("/assets/theme/j1/modules/amplitudejs/icons/black-player/black-play.svg") no-repeat;
|
446
|
-
}
|
447
|
-
|
448
|
-
div#large-player-controls div.large-player-controls-container div#play-pause-black.amplitude-playing {
|
449
|
-
background: url("/assets/theme/j1/modules/amplitudejs/icons/black-player/black-pause.svg") no-repeat;
|
450
|
-
}
|
451
|
-
|
452
|
-
div#large-player-controls div.large-player-controls-container div#next-black {
|
453
|
-
display: inline-block;
|
454
|
-
height: 24px;
|
455
|
-
width: 25px;
|
456
|
-
cursor: pointer;
|
457
|
-
vertical-align: middle;
|
458
|
-
margin-right: 25px;
|
459
|
-
margin-left: 20px;
|
460
|
-
background: url("/assets/theme/j1/modules/amplitudejs/icons/black-player/next-hover.svg") no-repeat;
|
461
|
-
}
|
462
|
-
|
463
|
-
div#large-player-controls div.large-player-controls-container div#next-black:hover {
|
464
|
-
opacity: .5;
|
465
|
-
}
|
466
|
-
|
467
|
-
div#large-player-controls div.large-player-controls-container div#repeat-black {
|
468
|
-
display: inline-block;
|
469
|
-
width: 24px;
|
470
|
-
height: 24px;
|
471
|
-
cursor: pointer;
|
472
|
-
vertical-align: middle;
|
473
|
-
}
|
474
|
-
|
475
|
-
div#large-player-controls div.large-player-controls-container div#repeat-black:hover {
|
476
|
-
opacity: .5;
|
477
|
-
}
|
478
|
-
|
479
|
-
div#large-player-controls div.large-player-controls-container div#repeat-black.amplitude-repeat-off {
|
480
|
-
background: url("/assets/theme/j1/modules/amplitudejs/icons/black-player/repeat-disabled.svg") no-repeat;
|
481
|
-
}
|
482
|
-
|
483
|
-
div#large-player-controls div.large-player-controls-container div#repeat-black.amplitude-repeat-on {
|
484
|
-
background: url("/assets/theme/j1/modules/amplitudejs/icons/black-player/repeat-enabled.svg") no-repeat;
|
485
|
-
}
|
486
|
-
|
487
|
-
div#amplitude-right div.song span.audio-duration {
|
488
|
-
float: left;
|
489
|
-
margin-left: 5px;
|
490
|
-
width: 50px;
|
491
|
-
font-family: "Lato", sans-serif;
|
492
|
-
text-align: center;
|
493
|
-
line-height: 45px;
|
494
|
-
font-size: 16px;
|
495
|
-
font-weight: 500;
|
496
|
-
color: var(--ajs-theme-uno--gray-300);
|
497
|
-
}
|
498
|
-
|
499
|
-
/* jadams 2024-07-01: scale (both) columns to the same height */
|
500
|
-
div#amplitude-left, div#amplitude-right {
|
501
|
-
flex: 1;
|
502
|
-
}
|
503
|
-
|
504
|
-
</style>
|
505
|
-
++++
|
@@ -1,69 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<title>iFrame message passing test 3</title>
|
6
|
-
<meta name="description" content="iFrame message passing test 3">
|
7
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
8
|
-
<meta name="robots" content="noindex">
|
9
|
-
<meta name="robots" content="nofollow">
|
10
|
-
|
11
|
-
<link rel="stylesheet" href="/assets/theme/j1/core/css/themes/unolight/bootstrap.css">
|
12
|
-
<link rel="stylesheet" href="/assets/theme/j1/core/css/vendor.css">
|
13
|
-
|
14
|
-
<script src="/assets/theme/j1/modules/jquery/js/jquery.js"></script>
|
15
|
-
<script src="/assets/theme/j1/modules/popper/js/popper.js"></script>
|
16
|
-
|
17
|
-
<script src="/assets/theme/j1/modules/iframeResizer/js/resizer.js"></script>
|
18
|
-
<script src="/assets/theme/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.js"></script>
|
19
|
-
</head>
|
20
|
-
|
21
|
-
<body>
|
22
|
-
|
23
|
-
<a href="my.content.html">Back to page</a>
|
24
|
-
<h2>iFrame Hover Example</h2>
|
25
|
-
<p>
|
26
|
-
Mouse over the code example below.
|
27
|
-
</p>
|
28
|
-
|
29
|
-
<xmp>
|
30
|
-
<!-- #code -->
|
31
|
-
</xmp>
|
32
|
-
|
33
|
-
<script>
|
34
|
-
var iFrameResizer = {
|
35
|
-
heightCalculationMethod: 'lowestElement'
|
36
|
-
}
|
37
|
-
</script>
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<div id="code">
|
42
|
-
<style>
|
43
|
-
xmp {
|
44
|
-
background-color: #eee;
|
45
|
-
padding: 20px;
|
46
|
-
display: block;
|
47
|
-
}
|
48
|
-
|
49
|
-
xmp:hover {
|
50
|
-
border: #c33 solid 40px;
|
51
|
-
}
|
52
|
-
</style>
|
53
|
-
<script>
|
54
|
-
;(function() {
|
55
|
-
$('xmp').hover(function() {
|
56
|
-
if ('parentIFrame' in window) {
|
57
|
-
// Fix race condition in FireFox with setTimeout
|
58
|
-
setTimeout(parentIFrame.size.bind(parentIFrame), 0)
|
59
|
-
}
|
60
|
-
})
|
61
|
-
})()
|
62
|
-
</script>
|
63
|
-
</div>
|
64
|
-
|
65
|
-
<script>
|
66
|
-
$('xmp').text('<xmp>' + $('#code').html() + '<xmp>')
|
67
|
-
</script>
|
68
|
-
</body>
|
69
|
-
</html>
|
@@ -1,75 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
|
4
|
-
<head>
|
5
|
-
<meta name="robots" content="noindex">
|
6
|
-
<meta name="robots" content="nofollow">
|
7
|
-
|
8
|
-
<link rel="stylesheet" href="/assets/theme/j1/core/css/themes/unolight/bootstrap.css">
|
9
|
-
<link rel="stylesheet" href="/assets/theme/j1/core/css/vendor.css">
|
10
|
-
|
11
|
-
<script src="/assets/theme/j1/modules/jquery/js/jquery.js"></script>
|
12
|
-
<script src="/assets/theme/j1/modules/popper/js/popper.js"></script>
|
13
|
-
|
14
|
-
<script src="/assets/theme/j1/modules/iframeResizer/js/resizer.js"></script>
|
15
|
-
<script src="/assets/theme/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.js"></script>
|
16
|
-
</head>
|
17
|
-
|
18
|
-
<body>
|
19
|
-
<a href="my.content.html">Back to page</a>
|
20
|
-
<h2>Nested iFrame</h2>
|
21
|
-
<p>
|
22
|
-
Resize window or click one of the links in the nested iFrame to watch it
|
23
|
-
resize.
|
24
|
-
</p>
|
25
|
-
|
26
|
-
<p id="callback"></p>
|
27
|
-
|
28
|
-
<div class="mt-4">
|
29
|
-
<iframe
|
30
|
-
id="nestedIFrame"
|
31
|
-
src="frame.content.html"
|
32
|
-
width="100%"
|
33
|
-
scrolling="no"
|
34
|
-
></iframe>
|
35
|
-
</div>
|
36
|
-
|
37
|
-
<script>
|
38
|
-
|
39
|
-
var level = document.location.search.replace(/\?/, '') || 0
|
40
|
-
|
41
|
-
$('iframe')
|
42
|
-
.attr('id', 'nestedIFrame' + level)
|
43
|
-
.attr('src', 'frame.content.html?' + level)
|
44
|
-
|
45
|
-
// -----------------------------------------------------------------------
|
46
|
-
// If you do want to TEST the code below, use 'log: true' in
|
47
|
-
// the following call for exteded log messages.
|
48
|
-
//
|
49
|
-
// iFrameResize({log:true});
|
50
|
-
//
|
51
|
-
// Once you have finished yout tresting, set the log option to `false`.
|
52
|
-
// -----------------------------------------------------------------------
|
53
|
-
//
|
54
|
-
iFrameResize({
|
55
|
-
log: true, // Enable console logging
|
56
|
-
inPageLinks: true,
|
57
|
-
onResized: function(messageData) {
|
58
|
-
// Callback fn when message is received
|
59
|
-
$('p#callback').html (
|
60
|
-
'<b>Frame ID:</b> ' +
|
61
|
-
messageData.iframe.id +
|
62
|
-
' <b>Height:</b> ' +
|
63
|
-
messageData.height +
|
64
|
-
' <b>Width:</b> ' +
|
65
|
-
messageData.width +
|
66
|
-
' <b>Event type:</b> ' +
|
67
|
-
messageData.type
|
68
|
-
)
|
69
|
-
}
|
70
|
-
});
|
71
|
-
|
72
|
-
</script>
|
73
|
-
</body>
|
74
|
-
|
75
|
-
</html>
|
@@ -1,57 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<title>iFrame message passing test 5</title>
|
6
|
-
<meta name="description" content="iFrame message passing test 5">
|
7
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
8
|
-
<meta name="robots" content="noindex">
|
9
|
-
<meta name="robots" content="nofollow">
|
10
|
-
|
11
|
-
<link rel="stylesheet" href="/assets/theme/j1/core/css/themes/unolight/bootstrap.css">
|
12
|
-
<link rel="stylesheet" href="/assets/theme/j1/core/css/icon-fonts/mdib.css">
|
13
|
-
<link rel="stylesheet" href="/assets/theme/j1/core/css/vendor.css">
|
14
|
-
|
15
|
-
<script src="/assets/theme/j1/adapter/js/j1.js"></script>
|
16
|
-
<script src="/assets/theme/j1/modules/jquery/js/jquery.js"></script>
|
17
|
-
<script src="/assets/theme/j1/modules/popper/js/popper.js"></script>
|
18
|
-
|
19
|
-
</head>
|
20
|
-
|
21
|
-
<body>
|
22
|
-
|
23
|
-
|
24
|
-
<a href="my.content.html">Back to page</a>
|
25
|
-
<h2>iFrame TextArea Example</h2>
|
26
|
-
<p>
|
27
|
-
Resize the textarea element below.
|
28
|
-
</p>
|
29
|
-
|
30
|
-
<p id="callback"></p>
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
<textarea id="textArea">Resize me</textarea>
|
37
|
-
|
38
|
-
<!-- script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script -->
|
39
|
-
<script src="../js/client/iframeResizer.contentWindow.min.js"></script>
|
40
|
-
|
41
|
-
<script>
|
42
|
-
function store() {
|
43
|
-
this.x = this.offsetWidth
|
44
|
-
this.y = this.offsetHeight
|
45
|
-
}
|
46
|
-
|
47
|
-
$('textarea')
|
48
|
-
.each(store)
|
49
|
-
.on('mouseover mouseout', function() {
|
50
|
-
if (this.offsetWidth !== this.x || this.offsetHeight !== this.y) {
|
51
|
-
if ('parentIFrame' in window) parentIFrame.size()
|
52
|
-
store.call(this)
|
53
|
-
}
|
54
|
-
})
|
55
|
-
</script>
|
56
|
-
</body>
|
57
|
-
</html>
|