1/* scripts portale */ 2$(document).on('keyup', function(evt) { 3 if (evt.keyCode == 27 && $('body').hasClass('menu-opened')) { 4 $('#chiudimenu').click(); 5 } 6 if (evt.keyCode == 27 && $('body').hasClass('menu-opened2')) { 7 $('#chiudimenu2').click(); 8 } 9}); 10 11$(document).ready(function() { 12 13 if ($('#tilescontainer').length > 0) { 14 $('#tilescontainer').imagesLoaded(function() { 15 $('#tilescontainer').masonry({ 16 itemSelector: '.tile', 17 columnWidth: '.tile' 18 }); 19 }); 20 } 21 22 if ($('.sezioni-pannelli').length > 0) { 23 $('.sezioni-pannelli').imagesLoaded(function() { 24 $('.sezioni-pannelli').masonry({ 25 itemSelector: '.tile', 26 columnWidth: '.tile' 27 }); 28 }); 29 } 30 $("input:checkbox").click(function() { 31 if ($(this).is(":checked")) { 32 var group = "input:checkbox[name='" + $(this).attr("name") + "']"; 33 $(group).prop("checked", false); 34 $(this).prop("checked", true); 35 } else { 36 $(this).prop("checked", false); 37 } 38 }); 39 40 $('.menu-btn').click(function() { 41 $('body,html').animate({ scrollTop: 0 }, 200); 42 $('body').toggleClass('menu-opened'); 43 $('.sidebar-offcanvas').toggleClass('active', 1000); 44 }); 45 $('#chiudimenu').on('click', function(e) { 46 e.preventDefault(); 47 $('body').toggleClass('menu-opened'); 48 $('.sidebar-offcanvas').toggleClass('active', 1000); 49 }); 50 51 $('.menu-btn-right').click(function() { 52 $('body,html').animate({ scrollTop: 0 }, 200); 53 $('body').toggleClass('menu-opened2'); 54 $('.sidebar-offcanvas-right').toggleClass('active', 1000); 55 }); 56 57 $('#chiudimenu2').on('click', function(e) { 58 e.preventDefault(); 59 $('body').toggleClass('menu-opened2'); 60 $('.sidebar-offcanvas-right').toggleClass('active', 1000); 61 }); 62 63 64 $('.collapse').on('show.bs.collapse', function(e) { 65 $('.collapse').not(e.target).removeClass('in').prev().addClass('collapsed'); 66 }); 67 68 $("#topcontrol").click(function() { 69 $('body,html').animate({ scrollTop: 0 }, 500); 70 }); 71 72 $('#key').blur(function(e) { 73 if ($(this).val() != '' && $(this).val().length > 1) { 74 $(this).parentsUntil('.form').parent().submit(); 75 } 76 }); 77 78 79 80 81 82 $(window).load(function() { 83 jQuery('.sezioni-pannelli').resize(); 84 }); 85 86 87 88 $(window).on("scroll touchmove", function() { 89 $('#mainheader').toggleClass('ridotto', $(document).scrollTop() > 32); 90 $('body').toggleClass('ridotto', $(document).scrollTop() > 32); 91 $('#topcontrol').toggleClass('visualizza', $(document).scrollTop() > 200); 92 }); 93 94 95 $(function() { 96 97 $('#select_regioni').on('change', function() { 98 var url = $(this).val(); 99 if (url) { 100 window.location = url; 101 } 102 return false; 103 }); 104 }); 105 106}); 107 108function scroll_pagina(y) { 109 window.scroll(0, y); 110};
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.