Five and five A hair link from Amr Adib within the authorities after the regularity of electricity
The journalist Amr Adeeb praised the steadfastness of the national electricity network for the interval of essentially the most up-to-date summer season and the inability of energy outages, noting that the Egyptian authorities completed huge success, and we failed to witness any good buy of masses despite the excessive and unheard of consumption.
Amr Adib, the presenter of the account program, broadcast on the MBC Egypt channel, on Friday night, added that the temperatures secure been in their worst prerequisites within the summer season of 2025, and what came about is a factual administration to generate electricity this summer season.
The journalist Amr Adeeb defined that the authorities handled this in a actually factual methodology, and we failed to witness the seizures of electricity, following that essentially the most up-to-date year crossed the national electricity network, and our Lord blessed it, “five and five”.
Amr Adib endured, that: “I thank the officials who secure successfully worked every thing, and we spent a accept summer season in Egypt, and the Egyptian authorities succeeded this summer season in providing vitality and electricity.”
characteristic replaceOembedWithHtml(element, sourceData) {
if (sourceData.supply.toLowerCase() === “youtube”) {
var html=”
‘;
replaceElementWithHtml(element, html);
} else if (sourceData.supply.toLowerCase() === “instagram”) {
var html=”
‘;
replaceElementWithHtml(element, html);
} else if (sourceData.supply.toLowerCase() === “twitter”) {
var html=”
‘;
replaceElementWithHtml(element, html);
} else if (sourceData.supply.toLowerCase() === “fb”) {
var html=”
‘
replaceElementWithHtml(element, html);
} else {
replaceElementWithHtml(element, “”);
}
}
characteristic extractLinkFromOembed(element) {
return getUrlSource(element.getAttribute(“url”));
}
characteristic getUrlSource(url) {
var ytRegex = /http(?:s?)://(?:www.)?youtu(?:be.com/look?v=|.be/)((w-_)*)(&(amp;)?(w?=)*)?/;
var instaRegex = /(https?://www.)?instagram.com(/p/(w+)/?)/;
var twitterRegex = /twitter.com/.*/situation(?:es)?/((^/?)+)/;
var fbRegex = /^https?://www.fb.com.*/(video(s)?|look|account|posts)(.php?|/).+$/;
if (ytRegex.take a look at(url)) {
return {
supply: “Youtube”,
url: url,
identification: ytRegex.exec(url)(1)
};
}
if (instaRegex.take a look at(url)) {
return {
supply: “Instagram”,
url: url,
identification: instaRegex.exec(url)(3)
};
}
if (twitterRegex.take a look at(url)) {
return {
supply: “Twitter”,
url: url,
identification: twitterRegex.exec(url)(1)
};
}
if (fbRegex.take a look at(url)) {
return {
supply: “Facebook”,
url: url,
identification: fbRegex.exec(url)(1)
};
}
return {
supply: “Unknown”,
url: url,
identification: “”
};
}
characteristic replaceElementWithHtml(element, html) {
var str = html;
var Obj = element; //any element to be entirely replaced
if (Obj.outerHTML) { //if outerHTML is supported
Obj.outerHTML = str; ///it’s straightforward replace of whole element with contents of str var
} else { //if outerHTML will not be supported, there is an odd but crossbrowsered trick
var tmpObj = doc.createElement(“div”);
tmpObj.innerHTML = ‘‘;
ObjParent = Obj.parentNode; //Okey, element ought to peaceful be parented
ObjParent.replaceChild(tmpObj, Obj); //right here we inserting our momentary data as an different of our target, so we can accept it then and replace it into whatever we desire to replace to
ObjParent.innerHTML = ObjParent.innerHTML.replace(‘
‘, 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.length; i++) { var supply = "https://img.youtube.com/vi/" + youtube(i).dataset.embed + "http://192.168.2.55/0.jpg"; var image = new Characterize(); image.src = "https://www.elbalad.news/topics/elbalad/sources/photos/no.jpg"; image.classList.add('lazyload'); image.setAttribute("data-src", supply); image.setAttribute("alt", "youtube"); image.addEventListener("load", characteristic () { youtube(i).appendChild(image); }(i)); youtube(i).addEventListener("click on", 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) Electricity (T) Petroleum (T) Lowering Load
Source link