1jQuery(".modal").appendTo("body"); 2 3 4function clearText(field){ 5 if (field.defaultValue == field.value) field.value = ''; 6 else if (field.value == '') field.value = field.defaultValue; 7} 8 9 10jQuery(window).on('scroll',function(){ 11 12 var winWidth = jQuery(window).width(); 13 var winHeight = jQuery(window).height(); 14 15 if (jQuery(this).scrollTop() > 100) { 16 jQuery('#back-top').fadeIn(); 17 } else { 18 jQuery('#back-top').fadeOut(); 19 } 20}); 21 22 23jQuery(document).ready(function(){ 24 25 var winWidth = jQuery(window).width(); 26 var winHeight = jQuery(window).height(); 27 28 console.log('winWidth-'+winWidth); 29 console.log('winHeight-'+winHeight); 30 31 32 jQuery('a[href*="#"][rel="anchor"]').click(function() { 33 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 34 var target = jQuery(this.hash); 35 var heightHeader = jQuery('.stickup_menu_holder').height(); 36 target = target.length ? target : jQuery('[name="' + this.hash.slice(1) +'"]'); 37 if (target.length) { 38 jQuery('html,body').animate({ 39 scrollTop: target.offset().top-heightHeader 40 }, 1000); 41 return false; 42 } 43 } 44 }); 45 46 jQuery('a[href*="#"][rel="anchorslide"]').click(function() { 47 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 48 var target = jQuery(this.hash); 49 var heightHeader = jQuery('.stickup_menu_holder').height(); 50 target = target.length ? target : jQuery('[name="' + this.hash.slice(1) +'"]'); 51 if (target.length) { 52 jQuery('html,body').animate({ 53 scrollTop: target.offset().top 54 }, 1000); 55 return false; 56 } 57 } 58 }); 59 60}); 61 62 63;(function($){ 64 65 /* SIDR 66 ==================== */ 67 jQuery('#btnRespNav').sidr({ 68 name: 'sidr', 69 //source: '.nav__primary, .div-class-prova, #div-id-prova', 70 source: '.nav__primary', 71 side: 'left', 72 displace: false, // Displace the body content or not 73 //body: '.nav__primary', 74 onOpen: function() { 75 jQuery('body').addClass('sidr-open'); 76 }, 77 onClose: function() { 78 jQuery('body').removeClass('sidr-open'); 79 } 80 }); 81 jQuery("#sidr .sidr-class-close").click(function(){ 82 jQuery.sidr('close', 'sidr'); 83 }); 84 85 jQuery("#sidr ul li:not(.sidr-class-menu-item-dropdown) a").click(function() { 86 jQuery.sidr('close', 'sidr'); 87 }); 88 /* 89 jQuery('.sidr-class-sub-menu').css('display', 'none'); 90 jQuery('.sidr-class-menu-item-has-children > a').eq(0).click(function(e) { 91 e.preventDefault(); 92 jQuery('.sidr-class-menu-item-dropdown > a').next().slideToggle(); 93 jQuery('.sidr-class-menu-item-has-children > a').toggleClass('open'); 94 }); 95 */ 96 jQuery('.sidr-class-sub-menu').hide(); 97 jQuery(".sidr-class-fa-angle-down").click(function(event) { 98 event.preventDefault(); 99 event.stopPropagation(); 100 101 var id1 = jQuery(this).parent().parent().attr("id"); 102 jQuery("#" + id1 + " ul.sidr-class-sub-menu").slideToggle(); 103 104 jQuery(this).parent().parent().toggleClass('open'); 105 /* 106 jQuery(this).parent().parent().children(".sidr-class-menu-item-has-children ul").each(function() { 107 jQuery(this).find("li ul").hide(); 108 }); 109 */ 110 }); 111 112 /* 113 jQuery(".sidr-class-menu-item-has-children > a").click(function(event) { 114 event.preventDefault(); 115 event.stopPropagation(); 116 117 var id1 = jQuery(this).parent().attr("id"); 118 jQuery("#" + id1 + " ul.sidr-class-sub-menu").slideToggle(); 119 120 jQuery(this).parent().toggleClass('open'); 121 122 }); 123 */ 124 125 126 /* SIDR 127 ==================== */ 128 /* 129 jQuery('#other-categories').sidr({ 130 name: 'sidr', 131 //source: '.nav__primary, .div-class-prova, #div-id-prova', 132 source: '.nav__categories', 133 side: 'left', 134 displace: false, // Displace the body content or not 135 //body: '.nav__primary', 136 onOpen: function() { 137 jQuery('body').addClass('sidr-open'); 138 }, 139 onClose: function() { 140 jQuery('body').removeClass('sidr-open'); 141 } 142 }); 143 */ 144 145 146})(jQuery);
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.