Clgekg"65f0041d-12be"Accept-Encoding:'}i/8} KEY: http://127.0.0.1:8282/statics/v1/new/js/mglobal.js?1735122202= HTTP/1.1 200 OK Server: nginx Date: Wed, 25 Dec 2024 10:37:55 GMT Content-Type: application/javascript Content-Length: 4798 Last-Modified: Tue, 12 Mar 2024 07:28:29 GMT Connection: close Vary: Accept-Encoding ETag: "65f0041d-12be" Expires: Wed, 25 Dec 2024 22:37:55 GMT Cache-Control: max-age=43200 Accept-Ranges: bytes // 介绍展开/收起 $('#gamejs').each(function(){ var $this = $(this); //console.log($cont.height(), $cont.get(0).scrollHeight); $('#textShow').on('click', function(){ $this.addClass('show'); }) $('#textHide').on('click', function(){ $this.removeClass('show'); }) }) let el = $('#obj img').attr('src'); photo_imgage('#shotCont',el); photo_imgage('#yxjt_list'); function photo_imgage(el){ $(el).each(function(){ let $cont = $(this); let imgArr = []; $cont.find('img').each(function(i){ let imgsrc = $(this).attr('src') if(imgsrc != el){ imgArr.push(imgsrc); } }) $cont.on('click', 'img', function(){ if($('#photo').length==0) { $('body').after('
'); } let imgsrc = $(this).attr('src'); index = get_index(imgsrc); window.photoBrowser.init({ lazyLoading: true, lazyLoadingInPrevNext: true, initialSlide: index || 0, maxZoom: 1.8, photos: [ { url: imgArr.join(',') } ] }).open(); }) function get_index(imgsrc){ let index = 0; $.each(imgArr, function(i, v){ if(imgsrc == v){ index = i; } }) return index; } }) } $(function(){ //控制高度 var h=$(window).height(); //屏幕高度 var x=true; $(".burger").css("display","none"); $("#top>div>span").click(function(){ var Htop=$("body").scrollTop(); if(x){ $(this).css("background-position","left top"); $(".burger").show(); document.body.scrollTop=Htop; $("#BOX").css({"height":h+"px","overflow":"hidden"});//使网页不可滚动 $("#BOX").addClass('meunstyle') x= false; }else{ $(this).css("background-position","left bottom"); $(".burger").hide(); document.body.scrollTop=Htop; $("#BOX").css("overflow","initial");//使网页恢复滚动 $("#BOX").removeClass('meunstyle') x= true; if($('#cambrian0').size()>=1){ $('#top').css('top','0') } } }) $(".burger .back button").click(function() { var Htop = $("body").scrollTop(); $("#top>div>span").css("background-position", "center bottom"); $(".burger").hide(); document.body.scrollTop = Htop; $('#BOX').css("overflow", "auto"); //使网页恢复滚动 x = true; }) //更多分类 var n=$(".yxk-cont1 li").length; var a=true; var y=null; //初始化 for(var i=7;i