diff options
Diffstat (limited to 'static/js/pichat.js')
| -rw-r--r-- | static/js/pichat.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index c897d91..488aa88 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -2213,8 +2213,10 @@ function linkReplace(url) { return "<a target='_blank' class='youtube' href='" + linkUrl + "'>" + "<img class='youtube-thumb' width='130' height='97' src='"+Youtube.nextThumbUrl(uri.queryKey.v)+"'>" + "<img class='youtube-controls' src='/static/img/youtube.controls.png'></a>" - } else if (type == 'midi' || type == 'wav') { - return '<embed src="'+linkUrl+'" loop="false" autostart="false" volume="80" width="150" height="20" style="vertical-align:bottom"> <a href="'+linkUrl+'">'+uri.file+'</a>' + } else if (type == 'midi') { + return '<embed src="'+linkUrl+'" autostart="false" loop="false" volume="80" width="150" height="20" style="vertical-align:bottom"> <a href="'+linkUrl+'">'+uri.file+'</a>' + } else if (type == 'wav') { + return '<audio src="'+linkUrl+'" controls volume="80" width="150" height="20" style="vertical-align:bottom"></audio> <a href="'+linkUrl+'">'+uri.file+'</a>' } else return "<a target='_blank' href='" + linkUrl + "'>" + url + "</a>"; @@ -2433,9 +2435,3 @@ Youtube = { }, } - - -try { -if (Nick == "aids_enoch" && Room != "elephants") window.location.href ="http://elephants.dump.fm/" -} -catch(e){} |
