From 7b97fa879dab12331ee19a20aab53cdc25a463c3 Mon Sep 17 00:00:00 2001 From: George Deac Date: Sun, 26 Jan 2020 01:18:15 +0200 Subject: [PATCH] Update FloofChat.html --- scripts/communityModules/chat/FloofChat.html | 48 +------------------- 1 file changed, 1 insertion(+), 47 deletions(-) diff --git a/scripts/communityModules/chat/FloofChat.html b/scripts/communityModules/chat/FloofChat.html index 3a0e9e17f4..a1e84e132f 100644 --- a/scripts/communityModules/chat/FloofChat.html +++ b/scripts/communityModules/chat/FloofChat.html @@ -70,40 +70,6 @@ //Start George Function //Function provided by George Deac - - // Note soundcloud and vimeo integration is disabled since we cannot support mp4/mp3 encoding at this time - // Soundcloud oembed jQuery api script modified for embdeding by class name - /* - document.addEventListener("DOMContentLoaded", function(event) { - (function ($) { - $.fn.scembed = function(){ - var datasource = 'https://soundcloud.com/oembed'; - return this.each(function () { - var container = $(this); - var mediasource = $(container).attr("sc_url"); - var params = 'url=' + mediasource + '&format=json&iframe=true&maxwidth=480&maxheight=120&auto_play=false&show_comments=false'; - $.ajaxopts = $.extend($.ajaxopts, { - url: datasource, - data: params, - dataType: 'json', - success: function (data, status, raw) { - $(container).html(data.html); - }, - error: function (data, e1, e2) { - $(container).html("Can't retrieve player for " + mediasource); - }, - }); - $.ajax($.ajaxopts); - }); - }; - })(jQuery); - - $(function(){ - $("div.sc-embed").scembed(); - }); - }); -*/ - //linky function (function ($) { @@ -223,18 +189,6 @@ elContent = "

" + this + ""; break; } - //case !!this.match(/(https?:\/\/)?(www\.)?(vimeo\.com)/): - // var vimeoMatch = this.match(/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/); - // if(vimeoMatch && vimeoMatch[5]){ - // elContent = "

" + this + ""; - // break; - // } - //case !!this.match(/(https?:\/\/)?(www\.)?(snd\.sc|soundcloud\.com)/): - // sndscMatch = matches.match(/^.*(https?:\/\/)?(www\.)?(snd\.sc|soundcloud\.com)([^#\&\?]*).*/); - // if(sndscMatch && sndscMatch[4]){ - // elContent = "

" + this + ""; - // break; - // } // else fall through to default default: elContent = elContent.replace(this, "
" + this + ""); @@ -514,4 +468,4 @@ - \ No newline at end of file +