// var slideout = new Slideout({ // 'panel': document.getElementById('y_sidebarl'), // 'menu': document.getElementById('y_sidebarr'), // 'padding': 280, // 'tolerance': 70, // 'side': 'right', // }); // document.querySelector('.y_publicright').addEventListener('click', function() { // slideout.toggle(); // document.querySelector('.y_sidebarbg').style.display="block"; // }); // document.querySelector('.y_sidebarbg').addEventListener('click', function() { // slideout.toggle(); // this.style.display="none"; // }); $('#wdemo07').navbarscroll({ defaultSelect:0, scrollerWidth:3, fingerClick:0, endClickScroll:function(obj){ // console.log(obj.text()) } }); /* * ¥��Ԥ������֤���� * */ $(function(){ var lic_id; //Ϊ����Щ�����������ط��ã� $('.y_ckysz').on('click',function(){ var $that = $(this); var height = $('.y_licence').outerHeight(); var width = $('.y_licence').outerWidth(); CreatePopLayerDivlp(width,width,'/public/licence'); $('#offDivlp').css({'top':height+'px'}).animate({top:'20%'}) // �������� parent.lic_id = $that.attr('data-id'); //��¥�����ƴ��� }) // �������������� var random = Math.floor(Math.random()*150+101); // console.log(random) $('.y_lpkfdz_dzrs span em').html(random) }) //����һ��������,width ���ȣ�height �߶ȣ�url function CreatePopLayerDivlp(width,height,url){ var Iheight=$(window).outerHeight(); var Iwidth =$(window).outerWidth(); var heights = height || 300; var widths = width || 500; var Oheight= (Iheight -heights) / 2; var Owidth = (Iwidth - widths) /2; var div ='<div id="InDivlp" style="width:'+Iwidth+'px;height:'+Iheight+'px;background:rgba(0,0,0,0.6);position:fixed;z-index:10000;top:0;left:0;">'; div+='<div id="offDivlp" style=" width:100%; height:100%; left:0px; top:30%; position:fixed;z-index:100003;">'; div+='<div id="Contentlp"></div>'; div+='</div>'; div+='</div>'; $(document.body).append(div); if(url != ""){ $("#Contentlp").load(url); } } //�Ƴ������� function RemoveDiv1(){ $("#InDivlp").remove(); $("#offDivlp").remove(); } function btnCloses1(){ RemoveDiv1(); }