The Ministry of Interior celebrates Eid al -Adha with the aged and organizes entertainment activities and a Nile tour of the perform of care

The Ministry of Interior organized a crew of field and humanitarian activities with the unbiased of introducing pleasure and pleasure in the hearts of the inmates of the aged care homes, and to verify its constant eagerness to develop bridges of communique and care with this treasured crew.

Contained in the framework of the chronic consideration the Ministry of Interior in the first categories of care, critically the aged, and its keenness to toughen the bridges of human communique and deepen the bonds of belief between the police and electorate, the Ministry organized rather a lot of festive activities on the occasion of the blessed Eid Al -Adha.

Several missions were directed to the perform of the aged, because the police distributed symbolic gifts to the inmates, in a humanitarian gesture confirming the appreciation and appreciate for this treasured crew. Heaps of aged of us were also taken to the police membership in Manial, the attach a celebration used to be organized that integrated folklore shows and leisure paragraphs that witnessed a gargantuan interaction from the attendees, and contributed to the introduction of delight into their souls.

The activities also integrated awareness presents provided by the Overall Administration of Atmosphere and Floor Police, which embodied an component of the tasks they undertaken in maintaining the ambiance, critically preserving the Nile River from encroachments and pollution, reflecting the Ministry’s efforts in the areas of environmental and community security.

The entertainment day concluded by taking the guests of care homes in a Nile tour, at some level of which they enjoyed the picturesque nature of the Nile and the atmosphere of the feast, in an environment of pleasant and mutual appreciation.

This humanitarian initiative comes within the framework of the standard policy of the Ministry of Interior, which aims to beef up the spirit of community participation, and beef up in varied non secular and nationwide instances, in picture to promote the perform of the police as a pillar of security and community beef up.

The organizers of the perform of the aged expressed their deep thanks and appreciation to the Ministry of Interior and its males for this beneficiant gesture, stressing its determined impact on the hearts of inmates, and the actual curiosity in social and human aspects.

perform replaceOembeds() {
var allEmbeds = doc.getElementsByTagName(“OEMBED”);

while (allEmbeds.length != 0) {
replaceOembedWithHtml(allEmbeds(0), extractLinkFromOembed(allEmbeds(0)));
allEmbeds = doc.getElementsByTagName(“OEMBED”);
}

runYoutubeLazyLoad();
// loadfbApi();
}

perform replaceOembedWithHtml(part, sourceData) {
if (sourceData.source.toLowerCase() === “youtube”) {
var html=”

” +

‘ +

‘ +

‘ +
‘ +

‘ +

‘;

replaceElementWithHtml(part, html);
} else if (sourceData.source.toLowerCase() === “instagram”) {
var html=”

‘;

replaceElementWithHtml(part, html);
} else if (sourceData.source.toLowerCase() === “twitter”) {
var html=”

‘;
replaceElementWithHtml(part, html);
} else if (sourceData.source.toLowerCase() === “facebook”) {
var html=”


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

}

perform extractLinkFromOembed(part) {
return getUrlSource(part.getAttribute(“url”));
}

perform getUrlSource(url) {
var ytRegex = /http(?:s?)://(?:www.)?youtu(?:be.com/peep?v=|.be/)((w-_)*)(&(amp;)?‌​(w?‌​=)*)?/;
var instaRegex = /(https?://www.)?instagram.com(/p/(w+)/?)/;
var twitterRegex = /twitter.com/.*/space(?:es)?/((^/?)+)/;
var fbRegex = /^https?://www.facebook.com.*/(video(s)?|peep|tale|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: “Facebook”,
url: url,
identification: fbRegex.exec(url)(1)
};

}

return {
source: “Unknown”,
url: url,
identification: “”
};
}

perform replaceElementWithHtml(part, html) {
var str = html;
var Obj = part; //any part to be fully replaced
if (Obj.outerHTML) { //if outerHTML is supported
Obj.outerHTML = str; ///or no longer it’s straightforward change of total part with contents of str var
} else { //if outerHTML is rarely any longer supported, there is a new however crossbrowsered trick
var tmpObj = doc.createElement(“div”);
tmpObj.innerHTML = ‘‘;
ObjParent = Obj.parentNode; //Okey, part ought to be parented
ObjParent.replaceChild(tmpObj, Obj); //right here we inserting our brief records as a change of our target, so we are able to acquire it then and change it into without reference to we would like to change to
ObjParent.innerHTML = ObjParent.innerHTML.change(‘

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

for (var i = 0; i < youtube.length; i++) { var source = "https://img.youtube.com/vi/" + youtube(i).dataset.embed + "http://192.168.2.55/0.jpg"; var characterize = original Image(); characterize.src = "https://www.masrtimes.com/topics/masr/resources/images/no.jpg"; characterize.classList.add('lazyload'); characterize.setAttribute("records-src", source); characterize.setAttribute("alt", "youtube"); characterize.addEventListener("load", perform () { youtube(i).appendChild(characterize); }(i)); youtube(i).addEventListener("click", perform () { 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); }); }; }

Source hyperlink