PageSourceSearch

https://g.natureworldnews.com/sys/js/0bfab88c4b8be1c17fcc10a9540a6a57.js?v=1790151108

js natureworldnews.com collected 2026-09-24 08:37:31 UTC 5,617 bytes, 18 lines download raw bytes

1doFir.push(function(){(function($){var lemon={elements:{},attach:function(context,settings){this.init();if(this.elements.body.el.hasClass('logged-in')){return}
2this.fixedHeader()},init:function(){console.log('init');if(!this.elements.length){var thisObj=this;this.elements.window={el:$(window)};this.elements.body={el:$('body')}
3this.elements.header={el:$('.page-header'),el_top:$('.page-header .top'),el_sub:$('.page-header .bottom')}
4$(document).on('recalculate',function(){thisObj.recalculateElements()});$(window).on('scroll',function(){$.event.trigger({type:'reposition'})});$(window).on('resize',function(){$.event.trigger({type:'recalculate'});$.event.trigger({type:'reposition'})});$.event.trigger({type:'recalculate'});$.event.trigger({type:'reposition'})}},recalculateElements:function(){var el;var fixed=!1;this.elements.window.height=this.elements.window.el.height();this.elements.window.width=this.elements.window.el.width();this.elements.header=this.setItemAttributes(this.elements.header)},setItemAttributes:function(item){var el;var fixed=!1;var absolute=!1;el=item.el;if(!el.length){return item}
5if(el.hasClass('fixed')){fixed=!0;el.removeClass('fixed')}
6if(el.hasClass('absolute')){absolute=!0;el.removeClass('absolute')}
7item.height=el.length?el.outerHeight(!0):0;item.width=el.length?el.width():0;item.outerwidth=el.length?el.outerWidth():0;item.left=el.length?el.offset().left:0;item.top=el.length?el.offset().top:0;if(fixed){el.addClass('fixed')}
8if(absolute){el.addClass('absolute')}
9return item},fixedHeader:function(){var thisObj=this,body=thisObj.elements.body.el,header=thisObj.elements.header.el,header_t=thisObj.elements.header.top,header_h=thisObj.elements.header.height,header_o=header_h-thisObj.elements.header.el_top.height(),lastScrollTop=0;$(document).on('reposition',function(e){var st=thisObj.elements.window.el.scrollTop(),offset=(thisObj.elements.header.el_sub.css('display')=='none')?header_h:header_o;start=header_t+header_h-offset;if(st>start){header.addClass('fixed');body.css('padding-top',header_h)}else{header.removeClass('fixed');body.css('padding-top','')}})}};lemon.attach()})(jQuery);(function($){var menuExpand={attach:function(context,settings){this.menuExpand();$('.page-nav .toggle-button').click(function(event){if($(this).parent().hasClass('expand')){$(this).parent().removeClass('expand')}else{$('.page-nav .toggle').removeClass('expand');$(this).parent().addClass('expand')}});$('.pf-middle .title').click(function(event){if($(this).parent().hasClass('expand')){$(this).parent().removeClass('expand')}else{$('.pf-middle .f1').removeClass('expand');$(this).parent().addClass('expand')}})},menuExpand:function(){var pageHeader=$('.page-header');var body=$('body');var bindRemoveLayer=function(){$(window).unbind('scroll.menulayer');$(window).bind('scroll.menulayer',function(){$('body').removeClass('showEdition').removeClass('showMenu').removeClass('showSearch');$('.page-edition').css('top','');$(window).unbind('scroll.menulayer')})}
10if(pageHeader.length>0){$('.genericon-menu').click(function(event){if(body.hasClass('showMenu')){body.removeClass('showMenu')}else{body.addClass('showMenu').removeClass('showSearch')}
11bindRemoveLayer()});$('.genericon-search').click(function(event){if(body.hasClass('showMenu')){body.removeClass('showMenu')}else{body.addClass('showMenu').removeClass('showSearch');setTimeout(function(){$('#edit-search-block-form--2').focus()},100)}
12bindRemoveLayer()});$('.page-header label').click(function(event){if(body.hasClass('showEdition')){body.removeClass('showEdition');$('.page-edition').css('top','')}else{var hh=$('.page-header').height();if(hh<50){$('.page-edition').css('top',hh+'px')}
13body.addClass('showEdition').removeClass('showMenu').removeClass('showSearch')}
14bindRemoveLayer()})}}};menuExpand.attach()})(jQuery);(function($){$(document).ready(function(){menuButtons();init();$(window).resize(function(){init()});$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(event){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var target=$(this.hash);target=target.length?target:$('[name='+this.hash.slice(1)+']');if(target.length){event.preventDefault();$('html, body').animate({scrollTop:target.offset().top-60},1000,function(){var $target=$(target);
14$target.focus();if($target.is(":focus")){return!1}else{$target.attr('tabindex','-1');$target.focus()}})}}})});function init(){}
15function scrollHeader(){var body=$('body');var obj=$('.ph');var obj_h=obj.outerHeight();var obj_t=obj.offset().top;if($(window).outerWidth()>767){$(window).on('scroll',function(){if($(window).outerWidth()<768){return}
16var st=$(window).scrollTop();if(st>obj_h){body.addClass('scrollHeader').css({'padding-top':obj_h})}else{body.removeClass('scrollHeader').css({'padding-top':''})}})}else{body.removeClass('scrollHeader').css({'padding-top':''})}}
17function menuButtons(){var body=$('body');var btn_menu=$('.icon-menu');var btn_search=$('.icon-search');btn_menu.click(function(){var __targetDiv=document.getElementById("vidazoo");if(!body.hasClass('showMenu')){if(__targetDiv!=undefined){console.log('vidazoo : change vidazoo css');__targetDiv.style.display="none"}
18body.addClass('showMenu').removeClass('showSearch')}else{__targetDiv.style.display="block";body.removeClass('showMenu')}});btn_search.click(function(){if(!body.hasClass('showSearch')){body.addClass('showSearch').removeClass('showMenu');$('.searchform form input[type="text"]').focus()}else{body.removeClass('showSearch')}});$('main').click(function(){body.removeClass('showMenu showSearch')})}})(jQuery)})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.