1/**å³éè³æå°iframe start**/ 2function post_to_iframe(form){ 3 form.target = "ifmSubmit"; 4 form.submit(); 5} 6/**å³éè³æå°iframe end**/ 7 8///////////// 9// 10// Cookie Functions - Bill Dortch (21-Jan-96) 11// The following functions are released to the 12// public domain. 13// 14function GookieVal(offset) { 15var endstr = document.cookie.indexOf (";", offset); 16if (endstr == -1) 17endstr = document.cookie.length; 18return decodeURI(document.cookie.substring(offset, endstr)); 19} 20function Gookie(name) { 21var arg = name + "="; 22var alen = arg.length; 23var clen = document.cookie.length; 24var i = 0; 25while (i < clen) { 26var j = i + alen; 27if (document.cookie.substring(i, j) == arg) 28return GookieVal (j); 29i = document.cookie.indexOf(" ", i) + 1; 30if (i == 0) break; 31} 32return null; 33} 34function Sookie(name, value) { 35var argv = Sookie.arguments; 36var argc = Sookie.arguments.length; 37var expires = (argc > 2) ? argv[2] : null; 38var path = (argc > 3) ? argv[3] : '/'; 39var domain = (argc > 4) ? argv[4] : null; 40var secure = (argc > 5) ? argv[5] : false; 41document.cookie = name + "=" + escape (value) + 42((expires == null) ? "" : ("; expires=" 43+ expires.toGMTString())) + 44((path == null) ? "" : ("; path=" + path)) + 45((domain == null) ? "" : ("; domain=" + domain)) + 46((secure == true) ? "; secure" : ""); 47} 48function Dookie(name) { 49var exp = new Date(); 50exp.setTime (exp.getTime() - 1); 51var cval = Gookie (name); 52document.cookie = name + "="; 53} 54// 55// End of cookie functions 56////////// 57 58//é æªåè¾¨ä¸æç¨. 59function showobj(objID,moreClass){ 60 var obj=document.getElementById(objID); 61 if(obj) obj.className=moreClass; 62} 63 64//é æªåè¾¨ä¸æç¨. 65function hideobj(objID){ 66 var obj=document.getElementById(objID); 67 if(obj) obj.className="hideobj"; 68} 69 70//é æªåè¾¨ä¸æç¨ 71function showorhide(objIDs,objStatus){ 72 73 if(objIDs !=''){ 74 var tmpID=objIDs.split('|'); 75 } 76 if(objStatus !=''){ 77 var tmpSta=objStatus.split('|'); 78 } 79 for(var key in tmpSta) 80 { 81 if(tmpSta[key]==1){ 82 83 showobj(tmpID[key],'showobj') 84 }else{ 85 hideobj(tmpID[key]) 86 } 87 88 } 89 90} 91 92 93//function ä¸åé çé ç¢¼ç¨ 94function toPageTable(id,showid,objtable,objpage,flag){ 95 var k=id; 96 97 if(flag){ 98 for(var i=1;i<=k;i++){ 99 if(document.getElementById(objtable+i).style.display=='') nowid = i; 100 } 101 102 if(flag=='prev'){ 103 if(nowid==1) showid=1; 104 else showid=nowid-1; 105 }else{ 106 if(nowid==k) showid=k; 107 else showid=parseInt(nowid,10)+1; 108 } 109 } 110 document.cookie="PAGEID="+showid; 111 document.getElementById(objtable+showid).style.display=''; 112 document.getElementById(objpage+showid).className='current'; 113 for(var i=1;i<=k;i++){ 114 if(i !=showid){ 115 document.getElementById(objtable+i).style.display='none'; 116 document.getElementById(objpage+i).className=''; 117 } 118 } 119} 120 121//for cart to delete products 122if ($('.delpdt').length > 0) { 123 $('#loadingIMG').hide(); 124 $(".delpdt").click(function() { 125 var tmp = $(this).attr('title').split('_'); 126 var delid = tmp[0]; 127 var nowlg = tmp[1]; 128 $.ajax({ 129 type:"POST", 130 url: "/lib/func-jquery.php?mod=delitem", 131 data: { 132 delid:delid, lg:nowlg 133 }, 134 success:function(data){ 135 // 2018-12-24 setTimeout(history.back(), 2000); //20171108 ç¢åå å ¥è©¢å¹ï¼å¨è©¢å¹è»é é¢åªæåé ï¼æè·³å°ç¢åé 136 // 2018-12-24 ç¢åå å ¥è©¢å¹ï¼å¨è©¢å¹è»é é¢åªæåé ï¼æè©²è¦çå¨åä¸é 137 var returnLink = location.pathname.substr(1); 138 setTimeout("location.href='/" + returnLink + "'", 1000); 139 }, 140 beforeSend:function(){ 141 $('#loadingIMG').show(); 142 }, 143 }); 144 145 }) 146} 147 148///bannerå輪æ 149$(document).ready(function() { 150 151 152 if ($('.image-popup-vertical-fit').length > 0) { 153 $('.image-popup-vertical-fit').magnificPopup({ 154 type: 'image', 155 closeOnContentClick: true, 156 mainClass: 'mfp-img-mobile', 157 image: { 158 verticalFit: true 159 } 160 161 }); 162 } 163 164// if ($('.popup-gallery').length > 0) { 165// $('.popup-gallery').magnificPopup({ 166// delegate: 'a', 167// type: 'image', 168// tLoading: 'Loading image #%curr%...', 169// mainClass: 'mfp-img-mobile', 170// gallery: { 171// enabled: true, 172// navigateByImgClick: true,
173// preload: [0,1], // Will preload 0 - before current, and 1 after the current image 174// tCounter: '' 175// }, 176// image: { 177// titleSrc: function(item) { 178// return item.el.attr('title'); 179// } 180// } 181// }); 182// } 183 184 /* 185 $("li.dropdown a").click(function(e) { 186 var _d = $(this).next('ul.dropdown-menu'); 187 if (_d.css('display') != 'block') { 188 $('ul.dropdown-menu').css('display', 'none'); 189 _d.css("display", "block"); 190 } else { 191 _d.css("display", "none"); 192 } 193 e.stopPropagation(); 194 });*/ 195 //å´æ¬ç®é 196 var qserch = "<li>" + $("#qsearch").html() + "</li>"; 197 var main_nav = $("#main_menu").html(); 198 var member_info = "<li>" + $("#hello_member").html() + "</li>"; 199 var lang_div = "<li>" + $('#language_ul'). html() + "</li>"; 200 201 $('#left_menu > ul').append(qserch).append(member_info).append(main_nav).append(lang_div); 202 $('#left_menu > ul > li > ul').removeClass('nav-pills').removeClass('pull-right').addClass('nav nav-list'); 203 $('#left_menu > ul a').removeAttr('data-toggle').removeClass('dropdown-toggle').addClass('sb-toggle-submenu'); 204 $('#left_menu > ul > li > ul.dropdown-menu').removeClass('dropdown-menu').addClass('sb-submenu'); 205 $('#left_menu a.btn.sb-toggle-submenu, li.histr,li.divider'). remove(); 206 207 208 // Initiate Slidebars 209 $.slidebars(); 210 211 // Slidebars Submenus 212 $('.sb-toggle-submenu').off('click').on('click', function() { 213 $submenu = $(this).parent().children('.sb-submenu'); 214 $(this).add($submenu).toggleClass('sb-submenu-active'); // Toggle active class. 215 216 //remove other sb-submenu; 217 $submenu2 = $('.sb-menu > li > ul.sb-submenu-active'); 218 $submenu2.slideUp(200); 219 //remove other sb-submenu; 220 221 if ($submenu.hasClass('sb-submenu-active')) { 222 $submenu.slideDown(200); 223 } else { 224 $submenu.slideUp(200); 225 } 226 }); 227 228 $("#kwd.form-control").bind('focus click', function(){ 229 $(this).val(''); 230 }) 231 $("a").click(function(){ 232 Dookie('QSHCID'); 233 }); 234 235 $("li[class^='incate'], li[class^='inmsg']").click(function(){ 236 var cid = $(this).data('id'); 237 Sookie('QSHCID', cid); 238 $("#side_menu ul[class^='collapse']").each(function(){ 239 $(this).removeClass('in'); 240 }) 241 }); 242 fakewaffle.responsiveTabs(['xs']); 243}); 244 245if ($('.form_date').length > 0) { 246/// 20131127 for date 247 $('.form_date').datetimepicker({ 248 language: 'zh-TW', 249 weekStart: 1, 250 todayBtn: 1, 251 autoclose: 1, 252 todayHighlight: 1, 253 startView: 2, 254 minView: 2, 255 forceParse: 0 256 }); 257} 258 259//for product show change image src & alt. 260if ($('.showpicstr').length > 0) { 261 $('.showpicstr').hover(function(){ 262 var newlink = $(this).attr('href'); 263 var newalt = $(this).attr('title'); 264 var picsize =$(this).data('picsize'); 265 var newsrc = newlink.replace("/sr/", picsize >= 1 ? "/pb/" : "/sr/"); 266 $('#bimg_link').attr('href', newlink).attr('title', newalt); 267 $('#bimg_link img').attr('title', newalt); 268 $('#bimg').attr('src', newsrc); 269 }); 270} 271 272if ($('.swiper-banner').length > 0) { 273 var mySwiper = new Swiper('.swiper-banner',{ 274 pagination: $('.swiper-banner .swiper-slide a.swiper-slideimg').length > 1 ? '.page-banner' : false, 275 loop : $('.swiper-banner .swiper-slide').length > 1 ? true : false, //20170906 276 277 grabCursor: true, 278 paginationClickable: true,calculateHeight:true, autoplay:4000, speed:1000,autoplayDisableOnInteraction:false, 279 }) 280 $('.arrow-left').on('click', function(e){ 281 e.preventDefault() 282 mySwiper.swipePrev() 283 }) 284 $('.arrow-right').on('click', function(e){ 285 e.preventDefault() 286 mySwiper.swipeNext() 287 }) 288}//end swiper-banner 289 290if ($('.swiper-product').length > 0) { 291 var swiperProduct = new Swiper('.swiper-product',{ 292 pagination: $('.swiper-product .swiper-slide a').length > 1 ? '.swiper-pagination' : false, 293 loop : $('.swiper-product .swiper-slide a').length > 1 ? true : false, 294 grabCursor: true, paginationClickable: true,calculateHeight:true, autoplay:3000, 295 }) 296 297 $('.swiper-product .swiper-button-prev').on('click', function(e){ 298 e.preventDefault() 299 swiperProduct.swipePrev() 300 }) 301 $('.swiper-product .swiper-button-next').on('click', function(e){ 302 e.preventDefault() 303 swiperProduct.swipeNext() 304 }) 305}//end swiper-product 306 307//seems No effect. 308function changefaq(newid) { 309 var obj = $('#side_faq_form'); 310 $('input[name^=categories]').val(newid); 311 $('#side_faq_form').submit(); 312} 313 314$(document).delegate("#tags_search select[name*='filter']", 'change', function (e) { 315 $('#warn').hide(); 316 var oriact = $("#tags_search").attr('action'); 317 var lg = document.forms[0].elements.lg.value; 318 var myNodename = e.target.nodeName; 319 var myId = $(this).data('id'); 320 var returnLink = location.pathname.substr(1); 321 var myPath = returnLink.split("/"); 322 var newLink = (myPath[0] != "" && myPath[0].indexOf('webls') > -1) ? myPath[0] + "/" : ""; 323 $('#cateList').empty().fadeOut(); 324 $('#loadingIMG').removeClass('hide').show(); 325 $.post("/" + newLink + "product_modqsh.html", $("#tags_search").seri
325alize(), function (result) { 326 var newCont2 = $(result).find('ul.thumbnails').html(); 327 var showCont = newCont2; 328 $('#cateList').html(showCont).fadeIn(); 329 330 if ( $('#cateList').html()!="") { 331 $('#warn').show(); 332 } else { 333 $('#warn').hide(); 334 } 335 336 337 }).done(function () { 338 $('#loadingIMG').hide(); 339 }); 340 341}); 342 343// $("#selector1 > select").change(function(){ 344// if($("#selector1 > select").val()=='8'){ 345// $("#selector4").attr("style",''); 346// }else{ 347// $("#selector4").attr("style",'display:none'); 348// } 349// }); 350 351$(document).delegate("#point_search select[name*='filter']", 'change', function (e) { 352 var oriact = $("#point_search").attr('action'); 353 var lg = document.forms[0].elements.lg.value; 354 var myNodename = e.target.nodeName; 355 var myId = $(this).data('id'); 356 var returnLink = location.pathname.substr(1); 357 var myPath = returnLink.split("/"); 358 var newLink = (myPath[0] != "" && myPath[0].indexOf('webls') > -1) ? myPath[0] + "/" : ""; 359 $('#listItem').empty().fadeOut(); 360 // $('#loadingIMG').removeClass('hide').show(); 361 $.post("/" + newLink + "msg/point.html", $("#point_search").serialize(), function (result) { 362 var newCont2 = $(result).find('#listItem').html(); 363 var showCont = newCont2; 364 $('#listItem').html(showCont).fadeIn(); 365 }).done(function () { 366 // $('#loadingIMG').hide(); 367 }); 368});
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.