The hyperlink and a immediate jokes from Ahmed Saad .. A stranger from Amr Adib on the air a note – ryan
غير مصنف

The hyperlink and a immediate jokes from Ahmed Saad .. A stranger from Amr Adib on the air a note

Singer Ahmed Saad entered loyal into a hyperlink of immediate jokes, in some unspecified time in the future of his assembly with the media Amr Adib on the “Al -Hakaya” program, in the presence of a different of artists, along side composer Nader Hamdi.

Amr Adeeb, from the singer Ahmed Saad, called for a different of like a flash jokes, and he came with humorous avaires, to answer Ahmed Saad jokingly: “I am a salvation, and I invalidate.”

The proprietor of like a flash jokes and the most

Amr Adeeb commented: This assembly will handiest steal space when we hear Ahmed Saad, even if the jokes will be made of jokes, and it’s some distance doable that there is a want, why did you relish for the origin. ”

The singer Ahmed Saad concluded by asserting: “I am your era with your pocket, Abu Bakh, a want available in the market.”

feature replaceOembedWithHtml(factor, sourceData) {
if (sourceData.provide.toLowerCase() === “youtube”) {
var html=”

” +

‘ +

‘ +

‘ +
‘ +

‘ +

‘;
replaceElementWithHtml(factor, html);
} else if (sourceData.provide.toLowerCase() === “instagram”) {
var html=”

‘;
replaceElementWithHtml(factor, html);
} else if (sourceData.provide.toLowerCase() === “twitter”) {
var html=”

‘;
replaceElementWithHtml(factor, html);
} else if (sourceData.provide.toLowerCase() === “fb”) {
var html=”


replaceElementWithHtml(factor, html);
} else {
replaceElementWithHtml(factor, “”);
}
}

feature extractLinkFromOembed(factor) {
return getUrlSource(factor.getAttribute(“url”));
}

feature getUrlSource(url) {
var ytRegex = /http(?:s?)://(?:www.)?youtu(?:be.com/note?v=|.be/)((w-_)*)(&(amp;)?‌​(w?‌​=)*)?/;
var instaRegex = /(https?://www.)?instagram.com(/p/(w+)/?)/;
var twitterRegex = /twitter.com/.*/put(?:es)?/((^/?)+)/;
var fbRegex = /^https?://www.fb.com.*/(video(s)?|note|yarn|posts)(.php?|/).+$/;

if (ytRegex.test(url)) {
return {
provide: “Youtube”,
url: url,
id: ytRegex.exec(url)(1)
};
}

if (instaRegex.test(url)) {
return {
provide: “Instagram”,
url: url,
id: instaRegex.exec(url)(3)
};
}

if (twitterRegex.test(url)) {
return {
provide: “Twitter”,
url: url,
id: twitterRegex.exec(url)(1)
};
}

if (fbRegex.test(url)) {
return {
provide: “Fb”,
url: url,
id: fbRegex.exec(url)(1)
};

}

return {
provide: “Unknown”,
url: url,
id: “”
};
}

feature replaceElementWithHtml(factor, html) {
var str = html;
var Obj = factor; //any factor to be entirely replaced
if (Obj.outerHTML) { //if outerHTML is supported
Obj.outerHTML = str; ///or now no longer it’s straightforward alternative of total factor with contents of str var
} else { //if outerHTML is now no longer supported, there could be a uncommon but crossbrowsered trick
var tmpObj = doc.createElement(“div”);
tmpObj.innerHTML = ‘‘;
ObjParent = Obj.parentNode; //Okey, factor ought to mild be parented
ObjParent.replaceChild(tmpObj, Obj); //right here we placing our temporary files in its put of our aim, so we can receive it then and replace it into whatever we desire to replace to
ObjParent.innerHTML = ObjParent.innerHTML.replace(‘

‘, str);
}
}
feature loadfbApi() {
var js = doc.createElement(‘script’);
js.src=”
doc.physique.appendChild(js);
}
feature runYoutubeLazyLoad() {
/// youtube lazyload
var youtube = doc.querySelectorAll(“.youtube”);

for (var i = 0; i < youtube.size; i++) { var provide = "https://img.youtube.com/vi/" + youtube(i).dataset.embed + "http://192.168.2.55/0.jpg"; var speak = contemporary Picture(); speak.src = "https://www.elbalad.files/topics/elbalad/sources/images/no.jpg"; speak.classList.add('lazyload'); speak.setAttribute("files-src", provide); speak.setAttribute("alt", "youtube"); speak.addEventListener("load", feature () { youtube(i).appendChild(speak); }(i)); youtube(i).addEventListener("click", feature () { var iframe = doc.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); }); }; } (Tagstotranslate) Ahmed Saad (T) Amr Adeeb (T) The Memoir (T) Mercurial Jokes (T) Jokes (T) Tok Demonstrate

Supply hyperlink

اظهر المزيد

مقالات ذات صلة

اترك تعليقاً

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

زر الذهاب إلى الأعلى