1 2 3//å¤æææº 4function isMB() { 5 var userAgentInfo = navigator.userAgent; 6 var Agents = ["Android", "iPhone", 7 "SymbianOS", "Windows Phone", 8 "iPad", "iPod"]; 9 var flag = false; 10 for (var v = 0; v < Agents.length; v++) { 11 if (userAgentInfo.indexOf(Agents[v]) > 0) { 12 flag = true; 13 break; 14 } 15 } 16 return flag; 17} 18 19function gotoMobile() { 20 var yousite="m.ouzhou.cc";//è¿éæ¹ä¸ºæ¨çææºç«è®¿é®å°åä¸ç¨å¸¦http:// 21 var url=window.document.location.pathname; 22 var site="http://"+yousite+url; 23 24 //跳转è¯å¥ 25 if(isMB()){ 26 window.location.href=site; 27 } 28} 29 30 gotoMobile(); 31 32 33 (function(){ 34 var bp = document.createElement('script'); 35 var curProtocol = window.location.protocol.split(':')[0]; 36 if (curProtocol === 'https'){ 37 bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; 38 } 39 else{ 40 bp.src = 'http://push.zhanzhang.baidu.com/push.js'; 41 } 42 var s = document.getElementsByTagName("script")[0]; 43 s.parentNode.insertBefore(bp, s); 44})(); 45 46 47/* var rollSet = $('.columns2'); 48 var offset = rollSet.offset(); 49 var fwidth = $(".columns2").height(); 50 $(window).scroll(function() { 51 var scrollTop = $(window).scrollTop(); 52 var scrollBtm = $(document).height() - $(window).scrollTop() - $(".columns2").height(); 53 if (offset.top < scrollTop) { 54 if (scrollBtm > fwidth) { 55 rollSet.removeClass('absolute').addClass('fixed') 56 } else { 57 rollSet.removeClass('fixed').addClass('absolute') 58 } 59 } else { 60 rollSet.removeClass('fixed') 61 } 62 }) */ 63 64 65/* Fixed Nav ------------- */ 66 /* var offset_top =20; 67 var headline_pos = $(".content_box").offset(); 68 69 70 71 $(window).scroll(function() 72 { 73 var scroll_top = $(window).scrollTop(); 74 75 76 77 if (scroll_top > headline_pos.top) 78 { 79 $(".content_box").addClass('fixed'); 80 } 81 else 82 { 83 $(".content_box").removeClass('fixed'); 84 } 85 }); 86 */ 87 88 89/* $(function () { 90 var sideTop=$(".columns2").offset().top; 91 var scTop = function() { 92 if( typeof window.pageYOffset != 'undefined') { 93 return window.pageYOffset; 94 } else if( typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { 95 return document.documentElement.scrollTop 96 } else if( typeof document.body != 'undefined') { 97 return document.body.scrollTop; 98 } 99 } 100 101 $(window).scroll(function() { 102 if (scTop()>(sideTop+0)) { 103 104 $(".columns2").addClass("fixed") 105 }else{ 106 107 $(".columns2").removeClass("fixed") 108 }; 109 }) 110}) */ 111
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.