PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /proc/thread-self/root/proc/self/root/proc/self/cwd/wp-content/themes/jnews/assets/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //proc/thread-self/root/proc/self/root/proc/self/cwd/wp-content/themes/jnews/assets/js/darkmode.js

!function(e){const t=e(".jeg_dark_mode_toggle"),o=e("body");for(var a,r,d=void 0===jnewsoption.site_slug?"/":jnewsoption.site_slug,i=void 0===jnewsoption.site_domain?window.location.hostname:jnewsoption.site_domain,n=window.location,s=new URL(n),c=s.searchParams.get("vc_editable"),g=s.searchParams.get("elementor-preview"),m=[],l=[],f=[],h=[],_=[],k=[],u=[],j=[],p=[e(".jeg_header_wrapper"),e(".jeg_header_sticky"),e(".jeg_navbar_mobile_wrapper"),e(".jeg_about")],w=(a="darkmode",(r=document.cookie.match("(^|;) ?"+a+"=([^;]*)(;|$)"))?r[2]:null),v=(new Date).getHours(),y=0;y<4;y++)m[y]=p[y].find("img.jeg_logo_img").attr("data-light-src"),l[y]=p[y].find("img.jeg_logo_img").attr("data-light-srcset"),f[y]=p[y].find("img.jeg_logo_img").attr("data-dark-src"),h[y]=p[y].find("img.jeg_logo_img").attr("data-dark-srcset"),p[y].find(".footer_logo img").each((function(t,o){_[y]=void 0===_[y]?[]:_[y],k[y]=void 0===k[y]?[]:k[y],u[y]=void 0===u[y]?[]:u[y],j[y]=void 0===j[y]?[]:j[y],_[y][t]=e(o).attr("data-light-src"),k[y][t]=e(o).attr("data-light-srcset"),u[y][t]=e(o).attr("data-dark-src"),j[y][t]=e(o).attr("data-dark-srcset")}));if(o.hasClass("jeg_toggle_dark")&&(t.on("change",(function(){null===c&&null===g&&function(t){if(t.is(":checked")){o.addClass("jnews-dark-mode"),o.trigger("tinymce-add-dm");for(var a=0;a<4;a++)p[a].find(".jeg_logo_img").attr({src:f[a],srcset:h[a]}),p[a].find(".footer_logo img").each((function(t,o){e(o).attr({src:u[a][t],srcset:j[a][t],"data-srcset":j[a][t]})}));document.cookie="darkmode = true;path = "+d+";domain = "+i}else if(!t.is(":checked")){o.removeClass("jnews-dark-mode"),o.trigger("tinymce-remove-dm");for(a=0;a<4;a++)p[a].find(".jeg_logo_img").attr({src:m[a],srcset:l[a]}),p[a].find(".footer_logo img").each((function(t,o){e(o).attr({src:_[a][t],srcset:k[a][t],"data-srcset":k[a][t]})}));document.cookie="darkmode = false;path = "+d+";domain = "+i}}(e(this))})),t.click((function(){e(this).is(":checked")?t.each((function(){e(this).prop("checked",!0).trigger("change")})):e(this).is(":checked")||t.each((function(){e(this).prop("checked",!1).trigger("change")}))}))),o.hasClass("jeg_full_dark")&&(o.addClass("jnews-dark-mode"),o.trigger("tinymce-add-dm")),o.hasClass("jeg_timed_dark"))if(v>=18||v<=6){o.addClass("jnews-dark-mode"),o.trigger("tinymce-add-dm");for(y=0;y<4;y++)p[y].find(".jeg_logo_img").attr({src:f[y],srcset:h[y]}),p[y].find(".footer_logo img").each((function(t,o){e(o).attr({src:u[y][t],srcset:j[y][t],"data-srcset":j[y][t]})}));document.cookie="darkmode = true;path = "+d+";domain = "+i}else{o.removeClass("jnews-dark-mode"),o.trigger("tinymce-remove-dm");for(y=0;y<4;y++)p[y].find(".jeg_logo_img").attr({src:m[y],srcset:l[y]}),p[y].find(".footer_logo img").each((function(t,o){e(o).attr({src:_[y][t],srcset:k[y][t],"data-srcset":k[y][t]})}));document.cookie="darkmode = false;path = "+d+";domain = "+i}"true"===w?(t.prop("checked",!0).trigger("change"),document.cookie="darkmode = true;path = "+d+";domain = "+i):"false"===w&&(t.prop("checked",!1).trigger("change"),document.cookie="darkmode = false;path = "+d+";domain = "+i),e(document).on("tinymce-editor-init",function(t,a){o.on("tinymce-add-dm",(function(){e(a.getBody()).addClass("jnews-dark-mode")})),o.on("tinymce-remove-dm",(function(){e(a.getBody()).removeClass("jnews-dark-mode")})),"true"===w?o.trigger("tinymce-add-dm"):o.trigger("tinymce-remove-dm")}.bind(o).bind(w))}(jQuery);