خانه نویسندگان پست های linco
close td-outer-wrap
{“prefetch”:[{“source”:”document”,”where”:{“and”:[{“href_matches”:”\/*”},{“not”:{“href_matches”:[“\/wp-*.php”,”\/wp-admin\/*”,”\/wp-content\/uploads\/*”,”\/wp-content\/*”,”\/wp-content\/plugins\/*”,”\/wp-content\/themes\/Newspaper\/*”,”\/*\\?(.+)”]}},{“not”:{“selector_matches”:”a[rel~=\”nofollow\”]”}},{“not”:{“selector_matches”:”.no-prefetch, .no-prefetch a”}}]},”eagerness”:”conservative”}]}
Theme: Newspaper by tagDiv.com 2024
Version: 12.6.4 (rara)
Deploy mode: deploy
uid: 68ee0f04d6a5c
const lazyloadRunObserver = () => {
const lazyloadBackgrounds = document.querySelectorAll( `.e-con.e-parent:not(.e-lazyloaded)` );
const lazyloadBackgroundObserver = new IntersectionObserver( ( entries ) => {
entries.forEach( ( entry ) => {
if ( entry.isIntersecting ) {
let lazyloadBackground = entry.target;
if( lazyloadBackground ) {
lazyloadBackground.classList.add( ‘e-lazyloaded’ );
}
lazyloadBackgroundObserver.unobserve( entry.target );
}
});
}, { rootMargin: ‘200px 0px 200px 0px’ } );
lazyloadBackgrounds.forEach( ( lazyloadBackground ) => {
lazyloadBackgroundObserver.observe( lazyloadBackground );
} );
};
const events = [
‘DOMContentLoaded’,
‘elementor/lazyload/observe’,
];
events.forEach( ( event ) => {
document.addEventListener( event, lazyloadRunObserver );
} );
JS generated by theme
jQuery().ready(function () {
tdWeather.addItem({“block_uid”:”td_top_weather_uid”,”location”:”\u062a\u0647\u0631\u0627\u0646″,”api_location”:”Tehran”,”api_language”:”en”,”api_key”:”e0c180345510e98464f9168f10ecd9a4″,”today_icon”:”clear-sky-d”,”today_icon_text”:”clear sky”,”today_temp”:[24.800000000000000710542735760100185871124267578125,76.7000000000000028421709430404007434844970703125],”today_humidity”:13,”today_wind_speed”:[7.20000000000000017763568394002504646778106689453125,4.5],”today_min”:[24.800000000000000710542735760100185871124267578125,76.7000000000000028421709430404007434844970703125],”today_max”:[25,77],”today_clouds”:0,”current_unit”:0,”forecast”:[{“timestamp”:1760432400,”day_name”:”\u0633″,”day_temp”:[28,83],”owm_day_index”:0},{“timestamp”:1760486400,”day_name”:”\u0686″,”day_temp”:[27,80],”owm_day_index”:5},{“timestamp”:1760572800,”day_name”:”\u067e”,”day_temp”:[27,80],”owm_day_index”:13},{“timestamp”:1760659200,”day_name”:”\u062c”,”day_temp”:[26,79],”owm_day_index”:21},{“timestamp”:1760745600,”day_name”:”\u0634″,”day_temp”:[24,75],”owm_day_index”:29}]});
});
var td_res_context_registered_atts=[];
window.lazyLoadOptions=[{elements_selector:”img[data-lazy-src],.rocket-lazyload”,data_src:”lazy-src”,data_srcset:”lazy-srcset”,data_sizes:”lazy-sizes”,class_loading:”lazyloading”,class_loaded:”lazyloaded”,threshold:300,callback_loaded:function(element){if(element.tagName===”IFRAME”&&element.dataset.rocketLazyload==”fitvidscompatible”){if(element.classList.contains(“lazyloaded”)){if(typeof window.jQuery!=”undefined”){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}},{elements_selector:”.rocket-lazyload”,data_src:”lazy-src”,data_srcset:”lazy-srcset”,data_sizes:”lazy-sizes”,class_loading:”lazyloading”,class_loaded:”lazyloaded”,threshold:300,}];window.addEventListener(‘LazyLoad::Initialized’,function(e){var lazyLoadInstance=e.detail.instance;if(window.MutationObserver){var observer=new MutationObserver(function(mutations){var image_count=0;var iframe_count=0;var rocketlazy_count=0;mutations.forEach(function(mutation){for(var i=0;i0||iframe_count>0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName(“body”)[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)
class RocketElementorAnimation{constructor(){this.deviceMode=document.createElement(“span”),this.deviceMode.id=”elementor-device-mode-wpr”,this.deviceMode.setAttribute(“class”,”elementor-screen-only”),document.body.appendChild(this.deviceMode)}_detectAnimations(){let t=getComputedStyle(this.deviceMode,”:after”).content.replace(/”/g,””);this.animationSettingKeys=this._listAnimationSettingsKeys(t),document.querySelectorAll(“.elementor-invisible[data-settings]”).forEach(t=>{const e=t.getBoundingClientRect();if(e.bottom>=0&&e.tope[t])];if(“none”===n)return void t.classList.remove(“elementor-invisible”);t.classList.remove(n),this.currentAnimation&&t.classList.remove(this.currentAnimation),this.currentAnimation=n;let s=setTimeout(()=>{t.classList.remove(“elementor-invisible”),t.classList.add(“animated”,n),this._removeAnimationSettings(t,e)},i);window.addEventListener(“rocket-startLoading”,function(){clearTimeout(s)})}_listAnimationSettingsKeys(t=”mobile”){const e=[“”];switch(t){case”mobile”:e.unshift(“_mobile”);case”tablet”:e.unshift(“_tablet”);case”desktop”:e.unshift(“_desktop”)}const i=[];return[“animation”,”_animation”].forEach(t=>{e.forEach(e=>{i.push(t+e)})}),i}_removeAnimationSettings(t,e){this._listAnimationSettingsKeys().forEach(t=>delete e[t]),t.dataset.settings=JSON.stringify(e)}static run(){const t=new RocketElementorAnimation;requestAnimationFrame(t._detectAnimations.bind(t))}}document.addEventListener(“DOMContentLoaded”,RocketElementorAnimation.run);