آخر خبر
محمية الإمام تركي.. بيئة متوازنة تجذب الطيور الموسمية
الاثنين – 15 مايو 2023
Mon – 15 May 2023
var foxpush = document.createElement('script');
var content_foxpush = document.createTextNode("(function(){ var foxscript = document.createElement('script'); foxscript.src="https://js.foxpush.com/makkahnewspapercom.js?v="+Math.random();foxscript.type="text/javascript";foxscript.async="true";var fox_s = document.getElementsByTagName('script')[0];fox_s.parentNode.insertBefore(foxscript, fox_s);})();");
foxpush.appendChild(content_foxpush);
var facebook_script = document.createElement('script');
var content_facebook_script = document.createTextNode("(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = \"//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.4&appId=637243173677884\";fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));");
facebook_script.appendChild(content_facebook_script);
// var securepubads = document.createElement('script');
// securepubads.async = true;
// securepubads.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js";
var fancybox = document.createElement('script');
fancybox.async = true;
fancybox.src="/theme_makkahnew/js/jquery.fancybox.min.js";
setTimeout(
function(){
// document.getElementsByTagName('HEAD').item(0).appendChild(securepubads);
},2500
);
var initiate = 1;
function initialize(){
if(initiate==1){
initiate = 0;
if (window.location.href.indexOf("https") > -1) {
document.getElementsByTagName('HEAD').item(0).appendChild(foxpush);
}
document.getElementsByTagName('BODY').item(0).prepend(facebook_script);
$('head').append('');
$('head').append('');
document.getElementsByTagName('HEAD').item(0).appendChild(fancybox);
}
}
document.addEventListener("mousemove", initialize);
document.addEventListener("scroll", initialize);
document.addEventListener("touchstart", initialize);