1jQuery(function($){ 2 $.stellar({ 3 horizontalScrolling: false, 4 verticalScrolling: true, 5 }); 6 7 $('#page-attorney .bio-info > ul > li > a').click(function(e){ 8 e.preventDefault(); 9 var $obj = $(this).closest('li').toggleClass('active'); 10 }); 11 $('#home-atty-list li a').click(function(e){ 12 if ($(window).width() >= 991) { 13 e.preventDefault(); 14 $obj = $(this); 15 16 $('#home-atty-list li').removeClass('active'); 17 $obj.parent().addClass('active'); 18 19 $('#section-3 .right .text-block .item').removeClass('active'); 20 $('#section-3 .right .text-block #atty-' + $obj.data('id')).addClass('active'); 21 } 22 }); 23 $('#home-atty-list li:first-child a').trigger('click'); 24 25 26 $('#header .navigation').meanmenu({ 27 meanScreenWidth: '991', 28 meanMenuContainer: '#mobile-nav' 29 }); 30 31 $('#slick-testimonial .slick-testimonial-js').slick({ 32 arrows: false, 33 dots: true, 34 adaptiveHeight: true, 35 }); 36 37 $('#home-banner .scroll').click(function(e){ 38 e.preventDefault(); 39 40 var pos = $('#home-atty').offset().top - $('#header').height(); 41 $('html, body').animate({ scrollTop: pos}, 300); 42 }) 43 44 $(window).scroll(function () { 45 if ( $(this).scrollTop() > 500 && !$('#header').hasClass('open') ) { 46 $('#header').addClass('open'); 47 } else if ( $(this).scrollTop() <= 400 ) { 48 $('#header').removeClass('open');; 49 } 50 }); 51 52 // if (document.location.hash != null) { 53 // var id = document.location.hash; 54 // var pos = $(id).offset().top - $('#header').height() - 100; 55 // $('html, body').animate({ scrollTop: pos}, 300); 56 // } 57 58 // $('body.page-id-11 #menu-main-menu #menu-item-30 ul.sub-menu li a').click(function(e){ 59 // e.preventDefault(); 60 // var href = $(this).attr('href'); 61 // var hash = href.substring(href.indexOf('#')); 62 // var pos = $(hash).offset().top - $('#header').height() - 100; 63 64 // $('html, body').animate({ scrollTop: pos}, 300); 65 // history.pushState({}, "page 2", href); 66 // }) 67 68 69 // var $homeSlider = $('#home-slider .slides'); 70 // $homeSlider.slick({ 71 // dots: true, 72 // autoplay: true, 73 // autoplaySpeed: 7000, 74 // fade: true, 75 // appendDots: $("#home-slider .dots"), 76 // prevArrow: $("#home-slider .prev"), 77 // nextArrow: $("#home-slider .next"), 78 // responsive: [{ 79 // breakpoint: 991, 80 // settings: { 81 // adaptiveHeight: true, 82 // fade: false 83 // } 84 // }] 85 // }); 86 // $homeSlider.find('.slide-item-1').addClass('active'); 87 // $homeSlider.on('beforeChange', function(event, slick, currentSlide, nextSlide){ 88 // $homeSlider.find('.slide-item').removeClass('active'); 89 // var current = nextSlide + 1; 90 // setTimeout(function(){ 91 // $homeSlider.find('.slide-item-' + current).addClass('active'); 92 // }, 700) 93 // }); 94});
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.