The Ministry of Inner celebrates Eid al -Adha with the aged and organizes leisure actions and a Nile tour of the role of care

The Ministry of Inner organized a neighborhood of field and humanitarian actions with the target of introducing joy and pleasure in the hearts of the inmates of the aged care homes, and to substantiate its fixed eagerness to elongate bridges of verbal replace and care with this precious neighborhood.

At some stage in the framework of the continuous consideration the Ministry of Inner in the major classes of care, especially the aged, and its keenness to enhance the bridges of human verbal replace and deepen the bonds of belief between the police and electorate, the Ministry organized a different of festive actions on the event of the blessed Eid Al -Adha.

A number of missions were directed to the role of the aged, as the police distributed symbolic gifts to the inmates, in a humanitarian gesture confirming the appreciation and respect for this precious neighborhood. A different of aged other folks were moreover taken to the police club in Manial, where a celebration became as soon as organized that included folklore shows and recreational paragraphs that witnessed a colossal interplay from the attendees, and contributed to the introduction of joy into their souls.

The actions moreover included consciousness offers presented by the Total Administration of Ambiance and Surface Police, which embodied an side of the initiatives they undertaken in keeping the atmosphere, especially maintaining the Nile River from encroachments and pollution, reflecting the Ministry’s efforts in the areas of environmental and community security.

The leisure day concluded by taking the traffic of care homes in a Nile tour, for the duration of which they enjoyed the picturesque nature of the Nile and the ambiance of the feast, in an ambiance of friendly and mutual appreciation.

This humanitarian initiative comes inner the framework of the fundamental coverage of the Ministry of Inner, which aims to spice up the spirit of community participation, and toughen in assorted non secular and nationwide conditions, in provide an explanation for to promote the role of the police as a pillar of security and community toughen.

The organizers of the role of the aged expressed their deep thanks and appreciation to the Ministry of Inner and its men for this generous gesture, stressing its sure affect on the hearts of inmates, and the actual curiosity in social and human capabilities.

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

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

runYoutubeLazyLoad();
// loadfbApi();
}

characteristic replaceOembedWithHtml(component, sourceData) {
if (sourceData.offer.toLowerCase() === “youtube”) {
var html=”

” +

‘ +

‘ +

‘ +
‘ +

‘ +

‘;

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

‘;

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

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


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

}

characteristic extractLinkFromOembed(component) {
return getUrlSource(component.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/.*/space(?:es)?/((^/?)+)/;
var fbRegex = /^https?://www.facebook.com.*/(video(s)?|look|anecdote|posts)(.php?|/).+$/;

if (ytRegex.take a look at(url)) {
return {
offer: “Youtube”,
url: url,
identification: ytRegex.exec(url)(1)
};
}

if (instaRegex.take a look at(url)) {
return {
offer: “Instagram”,
url: url,
identification: instaRegex.exec(url)(3)
};
}

if (twitterRegex.take a look at(url)) {
return {
offer: “Twitter”,
url: url,
identification: twitterRegex.exec(url)(1)
};
}

if (fbRegex.take a look at(url)) {
return {
offer: “Facebook”,
url: url,
identification: fbRegex.exec(url)(1)
};

}

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

characteristic replaceElementWithHtml(component, html) {
var str = html;
var Obj = component; //any component to be fully modified
if (Obj.outerHTML) { //if outerHTML is supported
Obj.outerHTML = str; ///it is simple replacement of complete component with contents of str var
} else { //if outerHTML is just not any longer supported, there may maybe be a odd but crossbrowsered trick
var tmpObj = doc.createElement(“div”);
tmpObj.innerHTML = ‘‘;
ObjParent = Obj.parentNode; //Okey, component must peaceable be parented
ObjParent.replaceChild(tmpObj, Obj); //right here we placing our temporary files in put of our target, so we are in a position to search out it then and change it into no topic we desire to replace to
ObjParent.innerHTML = ObjParent.innerHTML.change(‘

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

for (var i = 0; i < youtube.dimension; i++) { var offer = "https://img.youtube.com/vi/" + youtube(i).dataset.embed + "http://192.168.2.55/0.jpg"; var image = new Describe(); image.src = "https://www.masrtimes.com/themes/masr/resources/photos/no.jpg"; image.classList.add('lazyload'); image.setAttribute("files-src", offer); 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); }); }; }

Source link