حفل أحمد جمال في محكى القلعة
تابع أحدث الأخبار
عبر تطبيق
google news

رصدت عدسة “البوابة نيوز” فعاليات الحفل الذي أحياه الفنان أحمد جمال، على خشبة مسرح محكى القلعة للموسيقى والغناء في دورته التاسعة والعشرين، حيث قدم خلال الحفل مجموعة من أجمل أغانيه. 

IMG-20210817-WA0181
IMG-20210817-WA0181
IMG-20210817-WA0179
IMG-20210817-WA0179
IMG-20210817-WA0180
IMG-20210817-WA0180
IMG-20210817-WA0177
IMG-20210817-WA0177
IMG-20210817-WA0178
IMG-20210817-WA0178
IMG-20210817-WA0189
IMG-20210817-WA0189
IMG-20210817-WA0175
IMG-20210817-WA0175
IMG-20210817-WA0186
IMG-20210817-WA0186
IMG-20210817-WA0176
IMG-20210817-WA0176
IMG-20210817-WA0187
IMG-20210817-WA0187
IMG-20210817-WA0173
IMG-20210817-WA0173
IMG-20210817-WA0184
IMG-20210817-WA0184
IMG-20210817-WA0185
IMG-20210817-WA0185
IMG-20210817-WA0174
IMG-20210817-WA0174
IMG-20210817-WA0182
IMG-20210817-WA0182
IMG-20210817-WA0183
IMG-20210817-WA0183
IMG-20210817-WA0172
IMG-20210817-WA0172

while (allEmbeds.length != 0) { replaceOembedWithHtml(allEmbeds[0], extractLinkFromOembed(allEmbeds[0])); allEmbeds = document.getElementsByTagName("OEMBED"); }

runYoutubeLazyLoad(); loadfbApi(); }

function replaceOembedWithHtml(element, sourceData) { if (sourceData.source.toLowerCase() === "youtube") { var html="

" + '

' + '

' + '

' + '' + '

' + '

';

replaceElementWithHtml(element, html); } else if (sourceData.source.toLowerCase() === "instagram") { var html="

';

replaceElementWithHtml(element, html); } else if (sourceData.source.toLowerCase() === "twitter") { var html="

'; replaceElementWithHtml(element, html); } else if (sourceData.source.toLowerCase() === "facebook") { var html="

' replaceElementWithHtml(element, html); } else { replaceElementWithHtml(element, ""); }

}

function extractLinkFromOembed(element) { return getUrlSource(element.getAttribute("url")); }

function getUrlSource(url) { var ytRegex = /http(?:s?)://(?:www.)?youtu(?:be.com/watch?v=|.be/)([w-_]*)(&(amp;)?‌​[w?‌​=]*)?/; var instaRegex = /(https?://www.)?instagram.com(/p/(w+)/?)/; var twitterRegex = /twitter.com/.*/status(?:es)?/([^/?]+)/; var fbRegex = /^https?://www.facebook.com.*/(video(s)?|watch|story|posts)(.php?|/).+$/;

if (ytRegex.test(url)) { return { source: "Youtube", url: url, id: ytRegex.exec(url)[1] }; }

if (instaRegex.test(url)) { return { source: "Instagram", url: url, id: instaRegex.exec(url)[3] }; }

if (twitterRegex.test(url)) { return { source: "Twitter", url: url, id: twitterRegex.exec(url)[1] }; }

if (fbRegex.test(url)) { return { source: "Facebook", url: url, id: fbRegex.exec(url)[1] };

}

return { source: "Unknown", url: url, id: "" }; }

function replaceElementWithHtml(element, html) { var str = html; var Obj = element; //any element to be fully replaced if (Obj.outerHTML) { //if outerHTML is supported Obj.outerHTML = str; ///it's simple replacement of whole element with contents of str var } else { //if outerHTML is not supported, there is a weird but crossbrowsered trick var tmpObj = document.createElement("div"); tmpObj.innerHTML = ''; ObjParent = Obj.parentNode; //Okey, element should be parented ObjParent.replaceChild(tmpObj, Obj); //here we placing our temporary data instead of our target, so we can find it then and replace it into whatever we want to replace to ObjParent.innerHTML = ObjParent.innerHTML.replace('

', str); } } function loadfbApi() { var js = document.createElement('script'); js.src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2"; document.body.appendChild(js); } function runYoutubeLazyLoad() { /// youtube lazyload var youtube = document.querySelectorAll(".youtube");

for (var i = 0; i < youtube.length; i++) { var source = "https://img.youtube.com/vi/" + youtube[i].dataset.embed + "/0.jpg"; var image = new Image(); image.src = "https://www.albawabhnews.com/themes/bawaba/assets/images/no.jpg"; image.classList.add('lazyload'); image.setAttribute("data-src", source); image.setAttribute("alt", "youtube"); image.addEventListener("load", function () { youtube[i].appendChild(image); }(i)); youtube[i].addEventListener("click", function () { var iframe = document.createElement("iframe"); iframe.setAttribute("frameborder", "0"); iframe.setAttribute("allowfullscreen", ""); iframe.setAttribute("src", "https://www.youtube.com/embed/" + this.dataset .embed + "?rel=0&showinfo=0&autoplay=1"); this.innerHTML = ""; this.appendChild(iframe); }); }; }

التعليقات

اترك تعليقاً

لن يتم نشر عنوان بريدك الإلكتروني. الحقول الإلزامية مشار إليها بـ *