1/* html font size */ 2var SWinWidth = $(window).outerWidth(); 3function WinSp(){ 4 var fontw = SWinWidth>1080?40:(SWinWidth>768?40*SWinWidth/1080:100*SWinWidth/768); 5 //$("html").css({"font-size":+fontw+"px"}) 6}; 7 8WinSp(); 9/* html font size */ 10 11 12 13$(document).ready(function(e) { 14 15var NShref = window.location.href; 16 17$(".pagein_nav a[href],.stnav a[href]").each(function(index, element) { 18 if(element=="") return; 19 var Snum = NShref.indexOf(element); 20 if(Snum>=0){ 21 $(this).addClass("sel").siblings().removeClass('sel'); 22 }; 23}); 24 25 26 27// var imgsrc="0"; 28// //var imgsrc =$(this).find("img").attr("src"); 29// $(".js_hover").hover(function(){ 30// imgsrc =$(this).attr("src"); 31// $(this).attr("src",imgsrc.replace("_off","_on")); 32// },function(){ 33// $(this).attr("src",imgsrc.replace("_on","_off")); 34// }); 35 36 37 38// var mousedin = "ontouchstart" in document?"touchstart":"mouseover", 39// mouseous = "ontouchstart" in document?"touchend":"mouseout", 40// imgshow = "out"; 41// $(".banfir").on(mousedin, function(event) { 42// if(imgshow!="show"){ 43// imgshow = "show"; 44// var imgsrc = $(".fir_tp").attr("src"); 45// var imgsrc02 = $(".tmpimgh").attr("src"); 46// $(".fir_tp").attr("src",imgsrc.replace("_off","_on")); 47// $(".tmpimgh").attr("src",imgsrc02.replace("_off","_on")); 48// }else{ 49// imgshow = "out"; 50// var imgsrc = $(".fir_tp").attr("src"); 51// var imgsrc02 = $(".tmpimgh").attr("src"); 52// $(".fir_tp").attr("src",imgsrc.replace("_on","_off")); 53// $(".tmpimgh").attr("src",imgsrc02.replace("_on","_off")); 54// } 55// }); 56 57// $(".banfir").on("mouseout", function(event) { 58// imgshow = "out"; 59// var imgsrc = $(".fir_tp").attr("src"); 60// var imgsrc02 = $(".tmpimgh").attr("src"); 61// $(".fir_tp").attr("src",imgsrc.replace("_on","_off")); 62// $(".tmpimgh").attr("src",imgsrc02.replace("_on","_off")); 63// }); 64 65var _osp = "close"; 66$(".ban_menuc,.menu_list a,.menu_mbg").click(function () { 67 _osp=_osp=="close"?"open":"close"; 68 $(".ban_menuc").toggleClass('active'); 69 $("html,body").toggleClass('menusopen'); 70}); 71 72$(".ytb_im,.js_ytbban").on("click",function(){ 73 $("html,body").toggleClass('ytbopen'); 74 var ytburl=$(this).attr('href')!=undefined?$(this).attr('href'):''; 75 var bhtml = '<iframe title="movie" width="290" height="218" src="'+ytburl+'" frameborder="0" allowfullscreen=""></iframe>' 76 if($(".js_ytbbox").is(":visible")){ 77 $(".js_ytbbox").fadeOut(400); 78 $(".if_ytb").html(" ") 79 }else{ 80 $(".if_ytb").html(bhtml) 81 $(".js_ytbbox").fadeIn(400); 82 } 83 return false; 84}); 85 86var imgc=$(".boxthum a").eq(0).find('img').attr('src'); 87$(".boxthum a").on("click",function(){ 88 var O_this = $(this),O_pra = $(".boximg"); 89 imgu = O_this.find('img').attr('src'); 90 if(imgu==imgc){return false}else{imgc=imgu} 91 O_this.addClass("sel").siblings().removeClass("sel"); 92 O_pra.stop().fadeOut('400'); 93 setTimeout(function(){ 94 O_pra.html('<img src="'+imgu+'">').stop().fadeIn('400'); 95 },390) 96}); 97 98 99 100 101 102 103function LazyLoadTwInsta(src) { 104 const scriptTag = document.createElement('script'); 105 scriptTag.src = src; 106 scriptTag.async = true; 107 document.body.appendChild(scriptTag); 108} 109function doTwInstaLazyLoad() { 110 const twitterEmbed = document.getElementsByClassName('twitter-timeline'); 111 //const instaEmbed = document.getElementsByClassName('elfsight-app-501c59d0-da22-4615-ade5-8c43552e352f'); 112 try { 113 if (twitterEmbed.length !== 0) LazyLoadTwInsta('https://platform.twitter.com/widgets.js'); 114 //if (instaEmbed.length !== 0) LazyLoadTwInsta('//www.instagram.com/embed.js'); 115 //if (instaEmbed.length !== 0) LazyLoadTwInsta('https://apps.elfsight.com/p/platform.js'); 116 } catch (error) { 117 console.log(error); 118 } 119} 120window.addEventListener('scroll', doTwInstaLazyLoad, { once: true }); 121//document.body.addEventListener('scroll', doTwInstaLazyLoad, { once: true }); 122 123 124 125var Sl_wih = $(window).height(), 126 Sl_top = $(window).scrollTop(); 127 N_htmlh = $("html").height(); 128 129 130$(".an_scl").addClass("animated"); 131/*--- ScrDom ---*/ 132var N_WHe = window.screen.availHeight; 133var N_BHei = $(window).height(); 134var N_WHei = N_WHe>N_BHei?N_BHei:N_WHe; 135 136/*--- ScrDom ---*/ 137function ScrDom(){ 138 var Sl_top = $(window).scrollTop(); 139 var N_htmlh = $("html").height(); 140 var N_thisH = new Array(),O_Sh = new Array(); 141 142 $(".an_scl").each(function(index, element) { 143 var _ThisSc = $(this).offset().top; 144 var _ThisH = $(this).height(); 145 var O_inClass = $(this).data("name"); 146 var _thistime = $(this).data("deltime"); 147 var B_Hclass = $(this).hasClass(O_inClass); 148 //âââââ scroll in do 149 if((Sl_top+N_WHei*19/20)<_ThisSc){ 150 if(B_Hclass){} 151 }else{ 152 if(!B_Hclass){ 153 //$(this).animate({opacity:1},500); 154 $(this).addClass(O_inClass).css('animation-delay', _thistime+"s");; 155 } 156 } 157 if(Sl_top>=($("body").height()-N_WHei-50)){ 158 if(!B_Hclass){ 159 $(this).addClass(O_inClass); 160 //alert("2:"+_ThisSc) 161 } 162 } 163 }); 164}; 165ScrDom(); 166 167 168$(window).resize(function(e) { 169 SWinWidth = $(window).outerWidth(); 170 WinSp(); 171 172}); 173 174var _musl = $(".ban_menuc").offset().top<310?$(".ban_menuc").offset().top:310; 175$(window).on('scroll', function(event) { 176 Sl_wih = $(window).height(); 177 Sl_top = $(window).scrollTop(); 178 var _left = SWinWidth>1200?'calc(50% - 565px)':(SWinWidth>750?'4vw':'7.5vw'), 179 _ftst = $(".footmob").offset().top; 180 ScrDom();
181 if((_musl-40)<Sl_top){ 182 $(".index .ban_menuc,.index .menu_mbg").css({"top":"40px","position":"fixed"}); 183 if(SWinWidth<768){ 184 $(".page .ban_menuc,.page .menu_mbg").css({"top":"40px","position":"fixed"}); 185 } 186 }else{ 187 $(".index .ban_menuc,.index .menu_mbg").removeAttr('style'); 188 $(".page .ban_menuc,.page .menu_mbg").removeAttr('style'); 189 190 }; 191 192 193 194 195 196 if((Sl_top+N_WHe)>_ftst){ 197 //$(".pagebgn").css({"background-attachment":"inherit"}); 198 }else{ 199 //$(".pagebgn").css({"background-attachment":"fixed"}); 200 } 201 202 var bsot = SWinWidth>750?"5rem":"5.5rem"; 203 if(Sl_top>600){ 204 $(".pagetop").fadeIn("300"); 205 if((Sl_top+N_BHei)<(N_htmlh-155)){ 206 $(".pagetop").css({"bottom":"1rem"}); 207 }else{ 208 $(".pagetop").css({"bottom":bsot}); 209 } 210 }else{ 211 $(".pagetop").fadeOut("300"); 212 }; 213 214}); 215 216 217 218$('a[href*=\\#]').click(function() { 219 if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { 220 var $target = $(this.hash); 221 $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']'); 222 if ($target.length) { 223 var targetOffset = $target.offset().top; 224 $('html,body').animate({ 225 scrollTop: targetOffset 226 }, 227 500); 228 return false 229 } 230 } 231}) 232}); 233 234 235
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.