1//== Variables ==// 2 var headerHight = $('#siteheader').height(); 3 var pageheight = $(window).height(); 4 5 6 7//== Standard Footer ==// 8 jQuery(document).ready(function(){ 9 setTimeout(function(){ 10 jQuery(".webauthorv1").each(function(){ 11 var dfheight = $(this).height()-9; 12 jQuery(this).css({paddingLeft: dfheight+20}); 13 jQuery(this).find('.dflogo').attr({ 14 width: dfheight+12+'px', height: dfheight+'px' 15 }); 16 }); 17 },2000); 18 }); 19 20//== Menu ==// 21 if( $(window).width() >= 1025 ) { 22 $('.dropdown-toggle').removeAttr('data-toggle'); 23 } 24 if( $(window).width() >=768 ) { 25 $('.dropdown').hover( 26 function() { $(this).addClass('open'); }, 27 function() { $(this).removeClass('open'); } 28 ); 29 } 30 if( $(window).width() <=767 ) { 31 $('.navbar .navbar-collapse').css( {height: pageheight-120} ); 32 $('.navbar-toggler').click(function(){ 33 if( $('nav.navbar').hasClass('showmenu') ) { 34 $('nav.navbar').removeClass('showmenu'); 35 $('nav.navbar').animate({left: '-250px'}); 36 $('body').css( {overflow: 'visible'} ); 37 $('.menu-fade').hide(100); 38 } else { 39 $('nav.navbar').addClass('showmenu'); 40 $('nav.navbar').animate({left: '0'}); 41 $('body').css( {overflow: 'hidden'} ); 42 $('.menu-fade').show(100); 43 } 44 $(this).toggleClass('closed'); 45 }); 46 47 $('.menu-fade').click(function(){ 48 $('nav.navbar').removeClass('showmenu'); 49 $('nav.navbar').animate({left: '-250px'}); 50 $('body').css( {overflow: 'visible'} ); 51 $('.menu-fade').hide(100); 52 $('.navbar-toggler').removeClass('closed'); 53 }); 54 55 $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { 56 event.preventDefault(); event.stopPropagation(); 57 $(this).parent().siblings().removeClass('open'); 58 $(this).parent().toggleClass('open'); 59 }); 60 61 $('.anchor-item').click(function(){ 62 $('nav.navbar').removeClass('showmenu'); 63 $('nav.navbar').animate({left: '-250px'}); 64 $('body').css( {overflow: 'visible'} ); 65 $('.navbar-toggler').removeClass('closed'); 66 }); 67 } 68 69 var header_height = $('.page-header').height(); 70 if( $(window).width() >767 ) {menu = $('#main-menu');origOffsetY = menu.offset().top;$(window).scroll(function() { if ($(window).scrollTop() >= header_height) {menu.addClass('fixed-top');} else { menu.removeClass('fixed-top');}});} 71 72 if( $(window).width() <=767 ) {menu = $('#site-header');origOffsetY = menu.offset().top;$(window).scroll(function() { if ($(window).scrollTop() >= header_height) {menu.addClass('fixed-top');} else { menu.removeClass('fixed-top');}});} 73 74 $( ".data-src" ).each(function() {var attr = $(this).attr('data-image-src');if (typeof attr !== typeof undefined && attr !== false) {$(this).css('background-image', 'url('+attr+')');}var mediaQuery = function(v, ov) {return "(-webkit-min-device-pixel-ratio: "+v+")," +"(min--moz-device-pixel-ratio: "+v+")," +"(-o-min-device-pixel-ratio: "+ov+")," +"(min-resolution: "+v+"dppx)" }; 75 if (window.matchMedia(mediaQuery('1.5', '3/2')).matches) {var attr2x = $(this).attr('data-2x'); if (typeof attr2x !== typeof undefined && attr2x !== false) { $(this).css('background-image', 'url('+attr2x+')');} }}); 76 77 var back_to_top_interval; 78 $(document).ready(function(){ 79 $("#back-to-top").hide(); 80 $(function () { 81 $(window).scroll(function(){ 82 if ($(window).scrollTop()>70) 83 { 84 show_back_to_top(); 85 } 86 else 87 { 88 hide_back_to_top(); 89 } 90 }); 91 92 //back to top 93 $("#back-to-top").click(function(){ 94 $('body,html').animate({scrollTop:0},800); 95 return false; 96 }); 97 }); 98 }); 99 100 function show_back_to_top () { 101 $("#back-to-top").fadeIn(500); 102 103 clearInterval(back_to_top_interval); 104 back_to_top_interval = setTimeout(hide_back_to_top, 5000); 105 } 106 107 function hide_back_to_top () { 108 clearInterval(back_to_top_interval); 109 $("#back-to-top").fadeOut(500); 110 }
111// Background image js 112 $( ".data-src" ).each(function() { 113 if(navigator.userAgent.indexOf('Safari') !=-1 && navigator.userAgent.indexOf('Chrome') == -1) { 114 var attr = $(this).attr('data-image-src'); 115 if (typeof attr !== typeof undefined && attr !== false) { 116 $(this).css('background-image', 'url('+attr+')'); 117 } 118 var mediaQuery = function(v, ov) { 119 return "(-webkit-min-device-pixel-ratio: "+v+")," 120 +"(min--moz-device-pixel-ratio: "+v+")," 121 +"(-o-min-device-pixel-ratio: "+ov+")," 122 +"(min-resolution: "+v+"dppx)" 123 }; 124 } else { 125 var attr = $(this).attr('data-image-src'); 126 if (typeof attr !== typeof undefined && attr !== false) { 127 $(this).css('background-image', 'url('+attr+')'); 128 } 129 var mediaQuery = function(v, ov) { 130 return "(-webkit-min-device-pixel-ratio: "+v+")," 131 +"(min--moz-device-pixel-ratio: "+v+")," 132 +"(-o-min-device-pixel-ratio: "+ov+")," 133 +"(min-resolution: "+v+"dppx)" 134 }; 135 if (window.matchMedia(mediaQuery('1.5', '3/2')).matches) { 136 var attr2x = $(this).attr('data-2x'); 137 if (typeof attr2x !== typeof undefined && attr2x !== false) { 138 $(this).css('background-image', 'url('+attr2x+')'); 139 } 140 } 141 } 142 });
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.