The Ministry of Interior celebrates Eid al -Adha with the aged and organizes entertainment activities and a Nile tour of the position of care
The Ministry of Interior organized a community of field and humanitarian activities with the goal of introducing pleasure and pleasure within the hearts of the inmates of the aged care homes, and to verify its constant eagerness to spice up bridges of verbal substitute and care with this treasured community.
At some level of the framework of the power attention the Ministry of Interior within the principle classes of care, especially the aged, and its keenness to wait on the bridges of human verbal substitute and deepen the bonds of trust between the police and electorate, the Ministry organized an excellent deal of festive activities on the event of the blessed Eid Al -Adha.
Numerous missions had been directed to the position of the aged, as the police dispensed symbolic items to the inmates, in a humanitarian gesture confirming the appreciation and respect for this treasured community. So much of aged folks had been additionally taken to the police club in Manial, the assign a event was as soon as organized that included folklore shows and recreational paragraphs that witnessed a colossal interaction from the attendees, and contributed to the introduction of pleasure into their souls.
The activities additionally included awareness provides provided by the Celebrated Administration of Atmosphere and Ground Police, which embodied an component of the projects they undertaken in conserving the surroundings, especially keeping the Nile River from encroachments and air pollution, reflecting the Ministry’s efforts within the areas of environmental and community security.
The entertainment day concluded by taking the company of care homes in a Nile tour, throughout which they enjoyed the picturesque nature of the Nile and the ambiance of the feast, in an ambiance of pleasant and mutual appreciation.
This humanitarian initiative comes unswerving thru the framework of the fashioned policy of the Ministry of Interior, which objectives to wait on the spirit of community participation, and wait on in diversified spiritual and national cases, in divulge to advertise the position of the police as a pillar of security and community wait on.
The organizers of the position of the aged expressed their deep thanks and appreciation to the Ministry of Interior and its males for this generous gesture, stressing its obvious impression on the hearts of inmates, and the genuine hobby in social and human aspects.
characteristic replaceOembeds() {
var allEmbeds = doc.getElementsByTagName(“OEMBED”);
while (allEmbeds.length != 0) {
replaceOembedWithHtml(allEmbeds(0), extractLinkFromOembed(allEmbeds(0)));
allEmbeds = doc.getElementsByTagName(“OEMBED”);
}
runYoutubeLazyLoad();
// loadfbApi();
}
characteristic replaceOembedWithHtml(ingredient, sourceData) {
if (sourceData.source.toLowerCase() === “youtube”) {
var html=”
‘;
replaceElementWithHtml(ingredient, html);
} else if (sourceData.source.toLowerCase() === “instagram”) {
var html=”
‘;
replaceElementWithHtml(ingredient, html);
} else if (sourceData.source.toLowerCase() === “twitter”) {
var html=”
‘;
replaceElementWithHtml(ingredient, html);
} else if (sourceData.source.toLowerCase() === “fb”) {
var html=”
‘
replaceElementWithHtml(ingredient, html);
} else {
replaceElementWithHtml(ingredient, “”);
}
}
characteristic extractLinkFromOembed(ingredient) {
return getUrlSource(ingredient.getAttribute(“url”));
}
characteristic getUrlSource(url) {
var ytRegex = /http(?:s?)://(?:www.)?youtu(?:be.com/imprint?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)?|imprint|narrative|posts)(.php?|/).+$/;
if (ytRegex.take a look at(url)) {
return {
source: “Youtube”,
url: url,
id: ytRegex.exec(url)(1)
};
}
if (instaRegex.take a look at(url)) {
return {
source: “Instagram”,
url: url,
id: instaRegex.exec(url)(3)
};
}
if (twitterRegex.take a look at(url)) {
return {
source: “Twitter”,
url: url,
id: twitterRegex.exec(url)(1)
};
}
if (fbRegex.take a look at(url)) {
return {
source: “Facebook”,
url: url,
id: fbRegex.exec(url)(1)
};
}
return {
source: “Unknown”,
url: url,
id: “”
};
}
characteristic replaceElementWithHtml(ingredient, html) {
var str = html;
var Obj = ingredient; //any ingredient to be fully modified
if (Obj.outerHTML) { //if outerHTML is supported
Obj.outerHTML = str; ///it be straight forward replace of complete ingredient with contents of str var
} else { //if outerHTML is not any longer supported, there is a recurring but crossbrowsered trick
var tmpObj = doc.createElement(“div”);
tmpObj.innerHTML = ‘‘;
ObjParent = Obj.parentNode; //Okey, ingredient wants to be parented
ObjParent.replaceChild(tmpObj, Obj); //right here we inserting our transient data as a replace of our goal, so we are in a position to search out it then and change it into no topic we want to change 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.length; i++) { var source = "https://img.youtube.com/vi/" + youtube(i).dataset.embed + "http://192.168.2.55/0.jpg"; var image = new Image(); image.src = "https://www.masrtimes.com/issues/masr/assets/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); }); }; }
Source link