1jQuery('ul.nav li.dropdown').hover(function() { 2 jQuery(this).find('.dropdown-menu').stop(true, true).fadeIn(445); 3}, function() { 4 jQuery(this).find('.dropdown-menu').stop(true, true).fadeOut(445); 5}); 6 7jQuery(document).on('click', 'a[href^="#"]', function (event) { 8 event.preventDefault(); 9 jQuery('html, body').animate({ 10 scrollTop: jQuery(jQuery.attr(this, 'href')).offset().top 11 }, 500); 12}); 13 14jQuery( document ).ready(function() { 15 16 var $nav = jQuery('#huttopia-navbar > ul > li'); 17 $nav.hover( 18 function() { 19 jQuery(this).children('a').addClass('hovered') 20 jQuery('ul', this).stop(true, true).slideDown('fast'); 21 }, 22 function() { 23 jQuery(this).children('a').removeClass('hovered') 24 jQuery('ul', this).slideUp('fast'); 25 } 26 ); 27 28 jQuery( ".navbar-toggle" ).click(function() { 29 jQuery('#smartmenu').fadeIn(300); 30 jQuery('#mlangselect').fadeIn(300); 31 jQuery("body").css("overflow", "hidden"); 32 }); 33 34 jQuery( ".navbar-close" ).click(function() { 35 jQuery('#smartmenu').fadeOut(300); 36 jQuery('#mlangselect').fadeOut(300); 37 jQuery("body").css("overflow", "auto"); 38 }); 39 40 jQuery( "#mlangselect" ).click(function() { 41 jQuery('#mllist').fadeToggle(300); 42 jQuery( "#mlangselect" ).toggleClass('mlselected'); 43 jQuery( "#mllist" ).toggleClass('mlselected'); 44 jQuery('.toile').fadeToggle(300); 45 }); 46 47 jQuery( ".toile" ).click(function() { 48 jQuery('.toile').hide(); 49 jQuery( "#mlangselect" ).removeClass('mlselected'); 50 jQuery( "#mllist" ).removeClass('mlselected'); 51 jQuery('#mllist').hide(); 52 }); 53 54 // calc accordeon height 55 jQuery( ".accordeoncontent" ).each(function() { 56 var aclass = 'calcaccordeon'+Math.floor((Math.random() * 10000)); 57 var ncol = jQuery(this).find(".vc_tta-panel-body").length; 58 59 var h = 600 - ncol*81 - 80; 60 61 jQuery('body').append('<style>@media only screen and (min-width: 992px){.vc_active .'+aclass+'{height:'+h+'px !important;}}</style>'); 62 63 jQuery(this).find(".vc_tta-panel-body").addClass(aclass); 64 }); 65}); 66 67 68/* CityKamp */ 69jQuery( document ).ready(function() { 70 jQuery( ".multi-item-carousel .carousel-inner .item" ).first().addClass( "active" ); 71}); 72// Instantiate the Bootstrap carousel 73if (jQuery(window).width() > 992) { 74 jQuery('.multi-item-carousel').carousel({ 75 interval: false 76 }); 77 78// for every slide in carousel, copy the next slide's item in the slide. 79// Do the same for the next, next item. 80 jQuery('.multi-item-carousel .item').each(function(){ 81 var next = jQuery(this).next(); 82 if (!next.length) { 83 next = jQuery(this).siblings(':first'); 84 } 85 next.children(':first-child').clone().appendTo(jQuery(this)); 86 87 if (next.next().length>0) { 88 next.next().children(':first-child').clone().appendTo(jQuery(this)); 89 } 90 91 if (next.next().next().length>0) { 92 next.next().next().children(':first-child').clone().appendTo(jQuery(this)); 93 } else { 94 jQuery(this).siblings(':first').children(':first-child').clone().appendTo(jQuery(this)); 95 } 96 }); 97}
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.