The Ministry of Interior celebrates Eid al -Adha with the elderly and organizes entertainment actions and a Nile tour of the position of care
The Ministry of Interior organized a community of topic and humanitarian actions with the design of introducing pleasure and pleasure in the hearts of the inmates of the elderly care homes, and to substantiate its constant eagerness to enhance bridges of verbal exchange and care with this precious community.
During the framework of the continual attention the Ministry of Interior in the predominant classes of care, especially the elderly, and its keenness to give a hang to the bridges of human verbal exchange and deepen the bonds of believe between the police and voters, the Ministry organized a substitute of festive actions on the occasion of the blessed Eid Al -Adha.
Several missions had been directed to the position of the elderly, because the police distributed symbolic items to the inmates, in a humanitarian gesture confirming the appreciation and respect for this precious community. A substitute of elderly folks had been additionally taken to the police club in Manial, where a occasion became once organized that incorporated folklore reveals and leisure paragraphs that witnessed a mountainous interaction from the attendees, and contributed to the introduction of pleasure into their souls.
The actions additionally incorporated consciousness offers supplied by the Overall Administration of Environment and Floor Police, which embodied an facet of the initiatives they undertaken in preserving the ambiance, especially keeping 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 company of care homes in a Nile tour, in which they loved the picturesque nature of the Nile and the ambiance of the feast, in an ambiance of friendly and mutual appreciation.
This humanitarian initiative comes within the framework of the usual policy of the Ministry of Interior, which goals to make stronger the spirit of community participation, and make stronger in various spiritual and nationwide conditions, in show to promote the position of the police as a pillar of security and community make stronger.
The organizers of the position of the elderly expressed their deep thanks and appreciation to the Ministry of Interior and its men for this beneficiant gesture, stressing its decided affect on the hearts of inmates, and the right kind hobby in social and human gains.
design replaceOembeds() {
var allEmbeds = doc.getElementsByTagName(“OEMBED”);
whereas (allEmbeds.length != 0) {
replaceOembedWithHtml(allEmbeds(0), extractLinkFromOembed(allEmbeds(0)));
allEmbeds = doc.getElementsByTagName(“OEMBED”);
}
runYoutubeLazyLoad();
// loadfbApi();
}
design replaceOembedWithHtml(tell, sourceData) {
if (sourceData.offer.toLowerCase() === “youtube”) {
var html=”
‘;
replaceElementWithHtml(tell, html);
} else if (sourceData.offer.toLowerCase() === “instagram”) {
var html=”
‘;
replaceElementWithHtml(tell, html);
} else if (sourceData.offer.toLowerCase() === “twitter”) {
var html=”
‘;
replaceElementWithHtml(tell, html);
} else if (sourceData.offer.toLowerCase() === “fb”) {
var html=”
‘
replaceElementWithHtml(tell, html);
} else {
replaceElementWithHtml(tell, “”);
}
}
design extractLinkFromOembed(tell) {
return getUrlSource(tell.getAttribute(“url”));
}
design getUrlSource(url) {
var ytRegex = /http(?:s?)://(?:www.)?youtu(?:be.com/glimpse?v=|.be/)((w-_)*)(&(amp;)?(w?=)*)?/;
var instaRegex = /(https?://www.)?instagram.com(/p/(w+)/?)/;
var twitterRegex = /twitter.com/.*/web page(?:es)?/((^/?)+)/;
var fbRegex = /^https?://www.fb.com.*/(video(s)?|glimpse|fable|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: “Fb”,
url: url,
identification: fbRegex.exec(url)(1)
};
}
return {
offer: “Unknown”,
url: url,
identification: “”
};
}
design replaceElementWithHtml(tell, html) {
var str = html;
var Obj = tell; //any tell to be totally replaced
if (Obj.outerHTML) { //if outerHTML is supported
Obj.outerHTML = str; ///it’s easy replacement of complete tell with contents of str var
} else { //if outerHTML is no longer supported, there’s a peculiar nonetheless crossbrowsered trick
var tmpObj = doc.createElement(“div”);
tmpObj.innerHTML = ‘‘;
ObjParent = Obj.parentNode; //Okey, tell must be parented
ObjParent.replaceChild(tmpObj, Obj); //here we placing our non everlasting knowledge as adverse to our target, so we can salvage it then and exchange it into whatever we’re seeking to interchange to
ObjParent.innerHTML = ObjParent.innerHTML.exchange(‘
‘, str);
}
}
design loadfbApi() {
var js = doc.createElement(‘script’);
js.src=”
doc.body.appendChild(js);
}
design runYoutubeLazyLoad() {
/// youtube lazyload
var youtube = doc.querySelectorAll(“.youtube”);
for (var i = 0; i < youtube.length; i++) { var offer = "https://img.youtube.com/vi/" + youtube(i).dataset.embed + "http://192.168.2.55/0.jpg"; var image = original Image(); image.src = "https://www.masrtimes.com/issues/masr/resources/photographs/no.jpg"; image.classList.add('lazyload'); image.setAttribute("knowledge-src", offer); image.setAttribute("alt", "youtube"); image.addEventListener("load", design () { youtube(i).appendChild(image); }(i)); youtube(i).addEventListener("click", design () { 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); }); }; }
Provide link