Center controls added to audio.
This commit is contained in:
parent
27f980db61
commit
04317e36be
@ -103,7 +103,9 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) {
|
|||||||
/* party hats */
|
/* party hats */
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.center > audio {
|
|
||||||
|
/* Anti-autoplay */
|
||||||
|
audio.controls-added {
|
||||||
display: block;
|
display: block;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,4 +7,6 @@ AntiAutoplay =
|
|||||||
for audio in $$ 'audio[autoplay]'
|
for audio in $$ 'audio[autoplay]'
|
||||||
audio.pause()
|
audio.pause()
|
||||||
audio.autoplay = false
|
audio.autoplay = false
|
||||||
|
unless audio.controls
|
||||||
audio.controls = true
|
audio.controls = true
|
||||||
|
$.addClass audio, 'controls-added'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user