PageSourceSearch

https://g.techtimes.com/sys/js/0bfab88c4b8be1c17fcc10a9540a6a57.js?v=1790142833

js techtimes.com collected 2026-09-24 07:04:22 UTC 5,144 bytes, 20 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 ttHeaderInit(){var mobileMenu=document.querySelector('.icon-menu');var isMenuOpen=!1;function openMobileMenu(){isMenuOpen=!0;document.body.classList.add('showMenu')}
15function closeMobileMenu(){isMenuOpen=!1;document.body.classList.remove('showMenu')}
16if(mobileMenu){mobileMenu.addEventListener('click',function(event){event.stopPropagation();isMenuOpen?closeMobileMenu():openMobileMenu()})}
17document.addEventListener('click',function(e){if(isMenuOpen&&!e.target.closest('.pn')&&!e.target.closest('.icon-menu')){closeMobileMenu()}});var searchIcon=document.querySelector('.icon-search');var searchBar=document.querySelector('.searchform');if(searchIcon){searchIcon.addEventListener('click',function(){document.body.classList.toggle('showSearch')})}
18document.addEventListener('click',function(event){if(document.body.classList.contains('showSearch')&&searchBar&&!searchBar.contains(event.target)&&event.target!==searchIcon){document.body.classList.toggle('showSearch')}});var searchButton=document.getElementById('search-button');if(searchButton){searchButton.addEventListener('click',function(event){event.stopPropagation()})}
19if(window.jQuery){jQuery("#myinput1").click(function(){jQuery(this).val("")}
19)}}
20if(document.readyState!=='loading'){ttHeaderInit()}else{document.addEventListener('DOMContentLoaded',ttHeaderInit)}})

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.