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 */
|
||||
pointer-events: none;
|
||||
}
|
||||
.center > audio {
|
||||
|
||||
/* Anti-autoplay */
|
||||
audio.controls-added {
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
@ -7,4 +7,6 @@ AntiAutoplay =
|
||||
for audio in $$ 'audio[autoplay]'
|
||||
audio.pause()
|
||||
audio.autoplay = false
|
||||
audio.controls = true
|
||||
unless audio.controls
|
||||
audio.controls = true
|
||||
$.addClass audio, 'controls-added'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user