• MSR
  • MSR
  • MSR
  • MSR
  • MSR
  • MSR
  • MSR
  • MSR
  • MSR
  • MSR
{{7*7}}", url); } $('a[data-toggle="tab"]').on("click", function() { var newUrl; var hash = $(this).attr("href"); if ( hash == "#home" ) newUrl = url.split("#")[0]; else newUrl = url.split("#")[0] + ( hash ).replace('tab_',''); window.history.pushState(url, " {{7*7}}", newUrl); if ($(window).width() < 768) { $('html,body').animate({ scrollTop: ( $('#tab-start').offset().top ) }, 1000); } }); window.onhashchange = function() { if (location.hash) { new_url = location.href; new_hash = new_url.split("#"); $('#tabUtente a[href="#tab_'+new_hash[1]+'"]').tab("show"); } else $('#tabUtente a[href="#tab_home"]').tab("show"); } var tab_hash = ( $(location).attr('hash') ).replace( '#', '' ); $('#tab-'+tab_hash).tab('show'); if ( tab_hash == 'mappa' ) setTimeout('initialize()', 1000); if ( tab_hash != '' && $(window).width() < 768 ) { $('html,body').animate({ scrollTop: ( $('#tab-start').offset().top ) }, 1000); } });