{:metadata:js:include} bootstrap/js/bootstrap.min.js js/jquery.dotdotdot.min.js js/winResizer.js js/jquery.rwdImageMaps.js {:endmetadata} {:metadata:js:onload} $('img[usemap]').rwdImageMaps(); var m = $('.corpoPagina').height(), v = $('.menuV').height(), o = $('#offCanvasToggler'), f = $('.footerWrapper'); o.on('click', function(){ $(this).toggleClass('clicked'); if ($(this).hasClass('clicked')&& v>m) { f.animate({margin: v-m + " 0 0 0"}, 250); } else { f.animate({margin: "0"}, 250); }}); winResizer.addAndExecute( function() { var ww = $(window).width(); //console.log(ww); if (ww <= 767) { $('#footerBanners > div > div:nth-of-type(3n+3)').css('margin-right' , '0'); $('#footerBanners > div > div:nth-of-type(4n+4)').css('margin-right' , 0); $(".primoPiano article a").dotdotdot({ ellipsis : '...', tolerance : 0, height: 88 }); }; if (ww > 767) { $('#footerBanners > div > div:nth-of-type(3n+3)').css('margin-right' , '0'); $('#footerBanners > div > div:nth-of-type(4n+4)').css('margin-right' , 30); $(".primoPiano article a").dotdotdot({ ellipsis : '...', tolerance : 0, height: 148 }); }; if (ww > 992) { $('#footerBanners > div > div:nth-of-type(3n+3)').css('margin-right' , 20); $('#footerBanners > div > div:nth-of-type(4n+4)').css('margin-right' , '0'); }; } ); //$('.navbar-collapse > ul').addClass('navbar-nav'); $('body').attr('class','sfondo' + (Math.floor(Math.random() * 9) + 1)); // var ww = $(window).width(); // //console.log(ww); // if (ww > 768) { // $('#footerBanners > div > div:nth-of-type(3n+3)').css('margin-right' , '0'); // }; // if (ww > 992) { // $('#footerBanners > div > div:nth-of-type(3n+3)').css('margin-right' , 20); // $('#footerBanners > div > div:nth-of-type(4n+4)').css('margin-right' , '0'); // }; $('.socialFollowWrapper input[type="text"]').on('focus', function(){ var v = $(this).attr('value'); $(this).attr('value' , ''); }); $('[data-toggle=offcanvas]').click(function () { $('.row-offcanvas').toggleClass('active') }); (function() { var d = document, s = 'script', js, fjs = d.getElementsByTagName(s)[0], pn = fjs.parentNode ; js = d.createElement(s); js.src = '//platform.twitter.com/widgets.js'; pn.insertBefore(js, fjs); js = d.createElement(s); js.src = '//connect.facebook.net/it_IT/all.js#xfbml=1'; pn.insertBefore(js, fjs); /*js = d.createElement(s); js.src = '//apis.google.com/js/plusone.js'; pn.insertBefore(js, fjs);*/ })(); {:endmetadata}