1$(document).ready(function () { 2 var notHome = $("body:not(.home)").length; 3 var home = $("body.home").length; 4 5 $("#sz-form select").on('change', function() { 6 var actual = $(this).val(); 7 if (actual === '') $(this).addClass('empty'); 8 else $(this).removeClass('empty'); 9 }) 10 11 $("a:not(.dropdown-toggle)").on("click", function(e) { 12 if ($(this).attr("href") == "#") { 13 e.preventDefault(); 14 $("#construccionModal").modal('show'); 15 } 16 }) 17 18 $(window).scroll(function() { 19 $('.dropdown-toggle').dropdown('hide'); 20 var windowTop = $(window).scrollTop(); 21 var isLoggedIn = $('body.logged-in').length; 22 var offset = isLoggedIn ? 48 : 31; 23 if (windowTop > offset) { 24 $("section#sz-menubar").addClass("sticky"); 25 } else { 26 $("section#sz-menubar").removeClass("sticky"); 27 } 28 29 30 var sidebarMenu = $('#sidebar-menu'); 31 32 if (sidebarMenu.length) { 33 var sideOffset = isLoggedIn ? 96 : 54; 34 if (windowTop > sideOffset) { 35 $("#sidebar-menu").addClass("sticky"); 36 } else { 37 $("#sidebar-menu").removeClass("sticky"); 38 } 39 } 40 41 var contentSidebar = $('#global-tabs'); 42 43 if (contentSidebar.length) { 44 var sideOffset = isLoggedIn ? 400 : 300; 45 if (windowTop > sideOffset) { 46 contentSidebar.addClass("sticky"); 47 } else { 48 contentSidebar.removeClass("sticky"); 49 } 50 } 51 }); 52 53 $("#closeOverlayNav").on("click", function() { 54 $("#overlayNav").collapse('hide'); 55 }); 56 57 $("#testimonios-home").owlCarousel({ 58 nav: true, 59 margin: 10, 60 items: 2, 61 dots: false, 62 loop: true, 63 navText: [ 64 '<i class="fa fa-chevron-left" aria-hidden="true"></i>', 65 '<i class="fa fa-chevron-right" aria-hidden="true"></i>' 66 ], 67 navContainer: '.slider-content .custom-nav', 68 responsive: { 69 0: { 70 items: 1 71 }, 72 768: { 73 items: 2 74 }, 75 1024: { 76 items: 2 77 } 78 } 79 }); 80 $("#testimonios-content").owlCarousel({ 81 nav: true, 82 margin: 10, 83 items: 1, 84 dots: false, 85 loop: false, 86 navText: [ 87 '<i class="fa fa-chevron-left" aria-hidden="true"></i>', 88 '<i class="fa fa-chevron-right" aria-hidden="true"></i>' 89 ], 90 navContainer: '.testimonios-wrapper .custom-nav', 91 }); 92 $("#lista-blog").owlCarousel({ 93 nav: true, 94 margin: 10, 95 items: 1, 96 dots: false, 97 loop: false, 98 navText: [ 99 '<i class="fa fa-chevron-left" aria-hidden="true"></i>', 100 '<i class="fa fa-chevron-right" aria-hidden="true"></i>' 101 ], 102 navContainer: '.lista-blog-container .custom-nav', 103 responsive: { 104 0: { 105 items: 1 106 }, 107 768: { 108 items: 2 109 }, 110 1024: { 111 items: 3 112 } 113 } 114 }); 115});
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.