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() { $(".PicAuto").each( function() { var BoxWidth = $(this).attr("width"),BoxHeight = $(this).attr("height"); var img = new Image(),_this = $(this); img.src = $(this).attr("src"); if ( img.complete ) { var RealWidth = img.width,RealHeight = img.height,Padding = 0; if ( RealWidth / RealHeight > BoxWidth / BoxHeight ) { RealHeight = parseInt( BoxWidth / RealWidth * RealHeight ); RealWidth = parseInt( BoxWidth ); Padding = parseInt( ( BoxHeight - RealHeight ) / 2 ); _this.attr("width",RealWidth).attr("height",RealHeight).css("padding",Padding + "px 0"); } else { RealWidth = parseInt( BoxHeight / RealHeight * RealWidth ); RealHeight = parseInt( BoxHeight ); Padding = parseInt( ( BoxWidth - RealWidth ) / 2 ); _this.attr("width",RealWidth).attr("height",RealHeight).css("padding","0 " + Padding + "px"); } } img.onload = function() { var RealWidth = img.width,RealHeight = img.height,Padding = 0; if ( RealWidth / RealHeight > BoxWidth / BoxHeight ) { RealHeight = parseInt( BoxWidth / RealWidth * RealHeight ); RealWidth = parseInt( BoxWidth ); Padding = parseInt( ( BoxHeight - RealHeight ) / 2 ); _this.attr("width",RealWidth).attr("height",RealHeight).css("padding",Padding + "px 0"); } else { RealWidth = parseInt( BoxHeight / RealHeight * RealWidth ); RealHeight = parseInt( BoxHeight ); Padding = parseInt( ( BoxWidth - RealWidth ) / 2 ); _this.attr("width",RealWidth).attr("height",RealHeight).css("padding","0 " + Padding + "px"); } return; }; } ); } ); //内页图片自动缩放 $( function() { $(".PicLoad").hide().each( function() { var img = new Image(),_this = $(this),maxwidth = parseInt( $(this).attr("maxwidth") ),showtime = $(this).attr("showtime"); img.src = $(this).attr("src"); if ( /^[0-9]+$/.test(showtime) ) { showtime = parseInt(showtime); } if ( img.complete ) { if ( maxwidth > img.width ) { maxwidth = img.width; } $(this).attr("width",maxwidth).show(showtime); } img.onload = function() { if ( maxwidth > this.width ) { maxwidth = this.width; } _this.attr("width",maxwidth).show(showtime); return; }; } ); } ); document.writeln("") } /* FILE ARCHIVED ON 10:41:57 Jan 03, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 07:36:18 May 11, 2023. 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: 217.207 exclusion.robots: 0.066 exclusion.robots.policy: 0.057 RedisCDXSource: 63.536 esindex: 0.01 LoadShardBlock: 136.656 (3) PetaboxLoader3.datanode: 133.956 (4) load_resource: 147.43 PetaboxLoader3.resolve: 45.819 */