1/* rem */ 2function remFn(){ 3 var hRemFn=function(){ 4 var wW=$(window).width(); 5 var hRem=wW*20/750; 6 $("html").css({"font-size":hRem}); 7 }; 8 hRemFn(); 9 $(window).resize(function(){ 10 hRemFn(); 11 }); 12}; 13 14/* å¯¼èª */ 15function nav(idClass){ 16 $(idClass).each(function(){ 17 var _this=$(this); 18 $(".btn-nav").click(function(){ 19 if($(this).hasClass("current")){ 20 navClose(); 21 } 22 else { 23 $(".btn-nav").removeClass("current").addClass("current"); 24 _this.show(); 25 } 26 }); 27 $(".logo").click(function(){ 28 navClose(); 29 }); 30 $(".btn-search").click(function(){ 31 navClose(); 32 }); 33 $(".nav-bg").click(function(){ 34 navClose(); 35 }); 36 var navClose = function(){ 37 $(".btn-nav").removeClass("current"); 38 _this.find("> .nav-cnt > .nav-item").removeClass("current"); 39 _this.hide(); 40 }; 41 _this.find("> .nav-cnt > .nav-item").each(function(){ 42 $(this).click(function(){ 43 _this.find("> .nav-cnt > .nav-item").removeClass("current"); 44 $(this).removeClass("current").addClass("current"); 45 }); 46 }); 47 }); 48}; 49 50/* æç´¢ */ 51function search(idClass){ 52 $(idClass).each(function(){ 53 var _this=$(this); 54 $(".btn-search").click(function(){ 55 if($(this).hasClass("current")){ 56 searchClose(); 57 } 58 else { 59 $(".btn-search").removeClass("current").addClass("current"); 60 _this.show(); 61 } 62 }); 63 $(".logo").click(function(){ 64 searchClose(); 65 }); 66 $(".btn-nav").click(function(){ 67 searchClose(); 68 }); 69 var searchClose = function(){ 70 $(".btn-search").removeClass("current"); 71 _this.hide(); 72 }; 73 }); 74}; 75 76/* 表å */ 77function fromFn(idClass){ 78 var vleF= true; 79 $(idClass).each(function(){ 80 var _this=$(idClass); 81 var vle=_this.find("input[name=q]").attr("value"); 82 if(vle == '' || vle == null){ 83 vleF=false; 84 return false; 85 } 86 }); 87 return vleF; 88}; 89 90/* å¡ç */ 91function tab(idClass){ 92 $(idClass).each(function(){ 93 var _this=$(this); 94 if(!_this.find(".tab-trigger-item").hasClass("current")){ 95 _this.find(".tab-trigger-item").eq(0).addClass("current"); 96 _this.find(".tab-trigger-btn").eq(0).addClass("current"); 97 } 98 if(!_this.find(".tab-cnt-item").hasClass("current")){ 99 _this.find(".tab-cnt-item").eq(0).addClass("current"); 100 } 101 _this.find(".tab-trigger-item").each(function(n){ 102 $(this).click(function(){ 103 _this.find(".tab-trigger-item").removeClass("current"); 104 _this.find(".tab-trigger-item").eq(n).addClass("current"); 105 if(_this.find("a").hasClass("tab-trigger-btn")){ 106 _this.find(".tab-trigger-btn").removeClass("current"); 107 _this.find(".tab-trigger-btn").eq(n).addClass("current"); 108 } 109 _this.find(".tab-cnt-item").removeClass("current"); 110 _this.find(".tab-cnt-item").eq(n).addClass("current"); 111 }); 112 }); 113 }); 114};
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.