Archivi: Applicazioni

Pagina 3 di 7912345...102030...Ultima »

$( document ).ready(function() { $('[data-toggle="tooltip"]').tooltip(); //hide or show the "back to top" link $(window).scroll(function(){ ( $(this).scrollTop() > 150 ) ?$('.scroll-back-to-top-wrapper').addClass('show') : $('.scroll-back-to-top-wrapper').removeClass('show'); }); $('select.onChangeGo').change(function() { if (!$(this).val()) return false; window.location.href = $(this).val(); }); //smooth scroll to top $('.scroll-back-to-top-wrapper').click(function() { $('body,html').animate({ scrollTop: 0 , }, 700 ); }); $('nav ul.nav li').hover( function(){ var ind = $(this).index(); $('.subnav-container>div.current').css('display','none'); $('.subnav-container>div').eq(ind) .addClass('show'); }, function(){ var ind = $(this).index(); $('.subnav-container>div.current').css('display','block'); $('.subnav-container>div').eq(ind).removeClass('show'); } ); $('.subnav-container>div').hover( function(){ if ($(this).hasClass('current')) return false; var ind = $(this).index(); $('nav ul.nav li').eq(ind).addClass('hover'); $('.subnav-container>div.current').css('display','none'); }, function(){ var ind = $(this).index(); $('nav ul.nav li').eq(ind).removeClass('hover'); $('.subnav-container>div.current').css('display','block'); } ); $('.showSidebarBtn').click(function() { var id = $(this).data('sidebar'); console.log(id); $('aside.sidebar').parent().removeClass('hidden-md').removeClass('hidden-sm').removeClass('hidden-xs').addClass('col-md-12').addClass('col-sm-12').addClass('col-xs-12'); $('section.footer-pre').removeClass('hidden-md').removeClass('hidden-sm').removeClass('hidden-xs').addClass('col-md-12').addClass('col-sm-12').addClass('col-xs-12'); $(this).parent().fadeOut( "slow", function() { $(this).remove(); }); }); });