PageSourceSearch

https://jcsattorney.com/wp-content/themes/jcslaw/js/custom.js

js jcsattorney.com collected 2026-10-06 02:19:20 UTC 2,163 bytes, 86 lines download raw bytes

1$('a[href^="#"]').on('click', function (event) {
2    var target = $(this.getAttribute('href'));
3    if (target.length) {
4        event.preventDefault();
5        $('html, body').stop().animate({
6            scrollTop: target.offset().top
7        }, 1000);
8    }
9});
10
11
12// js for accordion//
13$(function () {
14    $(".expand").on("click", function () {
15        // $(this).next().slideToggle(200);
16        $expand = $(this).find(">:first-child");
17        if ($expand.text() == "+") {
18            $expand.text("-");
19        } else {
20            $expand.text("+");
21        }
22    });
23});
24
25///end///
26
27
28///for equal height
29var width = $(window).width();
30if (width > 767) {
31
32    var rowOneMaxHeight = Math.max.apply(null, jQuery(".box-height-eq").map(function () {
33        return jQuery(this).outerHeight();
34    }).get());
35    jQuery('.box-height-eq').css('min-height', rowOneMaxHeight);
36
37}
38 $(document).ready(function () {
39	 if (width > 767) {
40    $('.navbar .dropdown').hover(function () {
41        $(this).find('.dropdown-menu').first().stop(true, true).slideDown(150);
42    }, function () {
43        $(this).find('.dropdown-menu').first().stop(true, true).slideUp(105)
44    });
45	 }
46});
47
48
49var width = $(window).width();
50if (width > 767) {
51
52    var rowOneMaxHeight = Math.max.apply(null, jQuery(".casebox").map(function () {
53        return jQuery(this).outerHeight();
54    }).get());
55    jQuery('.casebox').css('min-height', rowOneMaxHeight + 40);
56
57} else {
58
59}
60
61
62///accordion
63var width = $(window).width();
64if (width < 768) {
65
66    $(document).ready(function () {
67        $('.accordion').find('.accordion-toggle').click(function () {
68            $(this).next().slideToggle('600');
69            $(".accordion-content").not($(this).next()).slideUp('600');
70        });
71        $('.accordion-toggle').on('click', function () {
72            $(this).toggleClass('active').siblings().removeClass('active');
73        });
74    });
75
76} else {
77
78}
79
80jQuery(function ($) {
81
82    $(document).on('click', 'li.vc_tta-tab a,li.vc_tta-tab,.vc_tta-panel-title', function () {
83        $('html, body').stop();
84    });
85
86});

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.