var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /*-------------------------------------------------------------------------------*/ /* 手机版自动跳转 */ /*-------------------------------------------------------------------------------*/ function browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; var bIsMidp = sUserAgent.match(/midp/i) == "midp"; var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; var bIsAndroid = sUserAgent.match(/android/i) == "android"; var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; if ((bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) ){ window.location.href="index.php?m=wap&a=init"; } } /*-------------------------------------------------------------------------------*/ /* img缩放 */ /*-------------------------------------------------------------------------------*/ function DrawImage(ImgD, FitWidth, FitHeight) { var image = new Image(); image.src = ImgD.src; if (image.width > 0 && image.height > 0) { if (image.width / image.height >= FitWidth / FitHeight) { if (image.width > FitWidth) { ImgD.width = FitWidth; ImgD.height = (image.height * FitWidth) / image.width; } else { ImgD.width = image.width; ImgD.height = image.height; } } else { if (image.height > FitHeight) { ImgD.height = FitHeight; ImgD.width = (image.width * FitHeight) / image.height; } else { ImgD.width = image.width; ImgD.height = image.height; } } } } /*-------------------------------------------------------------------------------*/ /* cookie */ /*-------------------------------------------------------------------------------*/ /这是有设定过期时间的使用示例: /s20是代表20秒 /h是指小时,如12小时则是:h12 /d是天数,30天则:d30 function getCookie(name) { var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); if (arr = document.cookie.match(reg)) return unescape(arr[2]); else return null; } function delCookie(name) { var exp = new Date(); exp.setTime(exp.getTime() - 1); var cval = getCookie(name); if (cval != null) document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString(); } function setCookie(name, value, time) { var strsec = getsec(time); var exp = new Date(); exp.setTime(exp.getTime() + strsec * 1); document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString(); } function getsec(str) { var str1 = str.substring(1, str.length) * 1; var str2 = str.substring(0, 1); if (str2 == "s") { return str1 * 1000; } else if (str2 == "h") { return str1 * 60 * 60 * 1000; } else if (str2 == "d") { return str1 * 24 * 60 * 60 * 1000; } } /*-------------------------------------------------------------------------------*/ /* 滚动触发元素移动 */ /*-------------------------------------------------------------------------------*/ var slideV1 = 0; var slideV2 = 0; function slideFun() { $('.slide-T').each(function(i) { if ($(window).scrollTop() > $(this).offset().top - $(window).height() + slideV1 - slideV2) { $(this).addClass('slide-Ton'); } }) $('.small').each(function(i) { if ($(window).scrollTop() > $(this).offset().top - $(window).height() + slideV1 - slideV2) { $(this).addClass('smallton'); } }) $('.slide-B').each(function(i) { if ($(window).scrollTop() > $(this).offset().top - $(window).height() + slideV1 - slideV2) { $(this).addClass('slide-Bon'); } }) $('.slide-L').each(function(i) { if ($(window).scrollTop() > $(this).offset().top - $(window).height() + slideV1) { $(this).addClass('slide-Lon'); } }) $('.slide-R').each(function(i) { if ($(window).scrollTop() > $(this).offset().top - $(window).height() + slideV1) { $(this).addClass('slide-Ron'); } }) $('.slide-W').each(function(i) { if ($(window).scrollTop() > $(this).offset().top - $(window).height() + slideV1) { $(this).addClass('slide-Won'); } }) $('.slide-Wsmall').each(function(i) { if ($(window).scrollTop() > $(this).offset().top - $(window).height() + slideV1) { $(this).addClass('slide-Won'); } }) $('.slide-H').each(function(i) { if ($(window).scrollTop() > $(this).offset().top - $(window).height() + slideV1) { $(this).addClass('slide-Hon'); } }) } function noslideFun() { $('.noslide-T').each(function(i) { $(this).addClass('slide-Ton'); }) $('.nosmall').each(function(i) { $(this).addClass('smallton'); }) $('.nosmallbanner').each(function(i) { $(this).addClass('smallton'); }) $('.noslide-T1').each(function(i) { $(this).addClass('slide-Ton1'); }) $('.noslide-B').each(function(i) { $(this).addClass('slide-Bon'); }) $('.noslide-L').each(function(i) { $(this).addClass('slide-Lon'); }) $('.noslide-LL').each(function(i) { $(this).addClass('slide-Lon'); }) $('.noslide-R').each(function(i) { $(this).addClass('slide-Ron'); }) $('.noslide-RR').each(function(i) { $(this).addClass('slide-Ron'); }) $('.noslide-W').each(function(i) { $(this).addClass('slide-Won'); }) $('.noslide-Wsmall').each(function(i) { $(this).addClass('slide-Won'); }) $('.noslide-H').each(function(i) { $(this).addClass('slide-Hon'); }) } $(window).scroll(function() { slideFun(); }) } /* FILE ARCHIVED ON 04:22:20 Apr 06, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 18:14:58 Apr 10, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.596 exclusion.robots: 0.03 exclusion.robots.policy: 0.018 esindex: 0.012 cdx.remote: 27.33 LoadShardBlock: 97.779 (3) PetaboxLoader3.datanode: 122.688 (5) load_resource: 343.589 (2) PetaboxLoader3.resolve: 135.645 (2) */