5 and 5 A hair link from Amr Adib in the authorities after the regularity of electrical energy
The journalist Amr Adeeb praised the steadfastness of the national electrical energy community all the plot via the most modern summer and the dearth of energy outages, noting that the Egyptian authorities achieved gargantuan success, and we didn’t be conscious any gash price of loads regardless of the high and phenomenal consumption.
Amr Adib, the presenter of the narrative program, broadcast on the MBC Egypt channel, on Friday evening, added that the temperatures were in their worst circumstances in the summertime of 2025, and what took web order is an exact administration to generate electrical energy this summer.
The journalist Amr Adeeb defined that the authorities dealt with this in a truly precise manner, and we didn’t be conscious the seizures of electrical energy, following that the most modern year crossed the national electrical energy community, and our Lord blessed it, “5 and 5”.
Amr Adib persisted, that: “I thank the officials who own efficiently labored all the pieces, and we spent a bag summer in Egypt, and the Egyptian authorities succeeded this summer in offering energy and electrical energy.”
characteristic replaceOembedWithHtml(deliver, sourceData) {
if (sourceData.source.toLowerCase() === “youtube”) {
var html=”
‘;
replaceElementWithHtml(deliver, html);
} else if (sourceData.source.toLowerCase() === “instagram”) {
var html=”
‘;
replaceElementWithHtml(deliver, html);
} else if (sourceData.source.toLowerCase() === “twitter”) {
var html=”
‘;
replaceElementWithHtml(deliver, html);
} else if (sourceData.source.toLowerCase() === “fb”) {
var html=”
‘
replaceElementWithHtml(deliver, html);
} else {
replaceElementWithHtml(deliver, “”);
}
}
characteristic extractLinkFromOembed(deliver) {
return getUrlSource(deliver.getAttribute(“url”));
}
characteristic getUrlSource(url) {
var ytRegex = /http(?:s?)://(?:www.)?youtu(?:be.com/be taught about?v=|.be/)((w-_)*)(&(amp;)?(w?=)*)?/;
var instaRegex = /(https?://www.)?instagram.com(/p/(w+)/?)/;
var twitterRegex = /twitter.com/.*/field(?:es)?/((^/?)+)/;
var fbRegex = /^https?://www.fb.com.*/(video(s)?|be taught about|narrative|posts)(.php?|/).+$/;
if (ytRegex.test(url)) {
return {
source: “Youtube”,
url: url,
identification: ytRegex.exec(url)(1)
};
}
if (instaRegex.test(url)) {
return {
source: “Instagram”,
url: url,
identification: instaRegex.exec(url)(3)
};
}
if (twitterRegex.test(url)) {
return {
source: “Twitter”,
url: url,
identification: twitterRegex.exec(url)(1)
};
}
if (fbRegex.test(url)) {
return {
source: “Fb”,
url: url,
identification: fbRegex.exec(url)(1)
};
}
return {
source: “Unknown”,
url: url,
identification: “”
};
}
characteristic replaceElementWithHtml(deliver, html) {
var str = html;
var Obj = deliver; //any deliver to be totally replaced
if (Obj.outerHTML) { //if outerHTML is supported
Obj.outerHTML = str; ///it is uncomplicated replacement of entire deliver with contents of str var
} else { //if outerHTML isn’t very any longer supported, there is a novel nonetheless crossbrowsered trick
var tmpObj = doc.createElement(“div”);
tmpObj.innerHTML = ‘‘;
ObjParent = Obj.parentNode; //Okey, deliver must accrued be parented
ObjParent.replaceChild(tmpObj, Obj); //right here we placing our non permanent data in decide to our purpose, so we are in a position to procure it then and change it into regardless of we decide to interchange to
ObjParent.innerHTML = ObjParent.innerHTML.change(‘
‘, str);
}
}
characteristic loadfbApi() {
var js = doc.createElement(‘script’);
js.src=”
doc.body.appendChild(js);
}
characteristic runYoutubeLazyLoad() {
/// youtube lazyload
var youtube = doc.querySelectorAll(“.youtube”);
for (var i = 0; i < youtube.measurement; i++) { var source = "https://img.youtube.com/vi/" + youtube(i).dataset.embed + "http://192.168.2.55/0.jpg"; var image = contemporary Image(); image.src = "https://www.elbalad.news/topics/elbalad/sources/photos/no.jpg"; image.classList.add('lazyload'); image.setAttribute("data-src", source); image.setAttribute("alt", "youtube"); image.addEventListener("load", characteristic () { youtube(i).appendChild(image); }(i)); youtube(i).addEventListener("click", characteristic () { 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) Amr Adib (T) Electrical energy (T) Petroleum (T) Cutting again Load
Supply link