From c5733e47bc4251fdf3abca5daf8fc28ddc1de159 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 13 Apr 2014 00:29:37 -0700 Subject: [PATCH] change vocaroo embed to HTML5 --- src/Linkification/Linkify.coffee | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index b33b8ee85..b01696321 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -222,8 +222,8 @@ Linkify = el = (type = Linkify.types[a.dataset.key]).el a # Set style values. - el.style.cssText = if style = type.style - style + el.style.cssText = if type.style? + type.style else "border: 0; width: 640px; height: 390px" @@ -403,10 +403,12 @@ Linkify = , key: 'Vocaroo' regExp: /.*(?:vocaroo.com\/)([^#\&\?]*).*/ - style: 'border: 0; width: 150px; height: 45px;' + style: '' el: (a) -> - $.el 'object', - innerHTML: "" + $.el 'audio', + controls: true + preload: 'auto' + src: "http://vocaroo.com/media_command.php?media=#{a.dataset.uid.replace /^i\//, ''}&command=download_ogg" , key: 'Vimeo' regExp: /.*(?:vimeo.com\/)([^#\&\?]*).*/