1(function($) { 2 3 // Add smooth scrolling to all links in navbar 4 $(".navbar a,a.btn-appoint, .quick-info li a, .overlay-detail a").on('click', function(event) { 5 6 var hash = this.hash; 7 if (hash) { 8 event.preventDefault(); 9 $('html, body').animate({ 10 scrollTop: $(hash).offset().top 11 }, 900, function() { 12 window.location.hash = hash; 13 }); 14 } 15 16 }); 17 18 $(".navbar-collapse a").on('click', function() { 19 $(".navbar-collapse.collapse").removeClass('in'); 20 }); 21 22 //jQuery to collapse the navbar on scroll 23 $(window).scroll(function() { 24 if ($(".navbar-default").offset().top > 50) { 25 $(".navbar-fixed-top").addClass("top-nav-collapse"); 26 } else { 27 $(".navbar-fixed-top").removeClass("top-nav-collapse"); 28 } 29 }); 30 31})(jQuery); 32 33 34 35$(document).ready(function(){ 36 $('.owl-carousel').owlCarousel({ 37 loop:true, 38 video:true, 39 margin:10, 40 responsiveClass:true, 41 responsive:{ 42 0:{ 43 items:1, 44 nav:true 45 }, 46 600:{ 47 items:1, 48 nav:true 49 }, 50 1000:{ 51 items:1, 52 nav:true, 53 loop:true 54 } 55 } 56}) 57 $('.btn-form').on('click', function() { 58 var info = $(this).data("info"); 59 $('#orderModal1Label').html(info); 60 $('#orderModal1Hide').html(info); 61 62}) 63 64 $('.btn-goods').on('click', function() { 65 var info = $(this).data("info"); 66 $('#orderModal1Label').html(info); 67 $('#orderModal1Hide').html(info); 68 69}) 70 71});
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.