Center controls added to audio.

This commit is contained in:
ccd0 2014-12-07 16:42:19 -08:00
parent 27f980db61
commit 04317e36be
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}

View File

@ -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'