From 7300414711a36398982b7ad3840e1b9bae2d0feb Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 24 Aug 2014 14:07:44 -0700 Subject: [PATCH] add Clyp embedding --- src/Linkification/Linkify.coffee | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index f4e7f9bd3..2dba77a68 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -422,6 +422,15 @@ Linkify = when 'nn' then "http://naenara.eu/loopvids/#{base}" $.add el, $.el 'source', src: url el + , + key: 'Clyp' + regExp: /^\w+:\/\/(?:www\.)?clyp\.it\/(\w+)/ + style: '' + el: (a) -> + $.el 'audio', + controls: true + preload: 'auto' + src: "http://clyp.it/#{a.dataset.uid}.ogg" , # dummy entries: not implemented but included to prevent them being wrongly embedded as a subsequent type key: 'Loopvid dummy'