PageSourceSearch

https://www.sevenbridges.com/wp-content/themes/sevenbridges/js/main.js?ver=1529340871

js sevenbridges.com collected 2026-09-24 17:14:15 UTC 3,567 bytes, 124 lines download raw bytes

1jQuery(document).ready(function ($) {
2    $(function () {
3
4        var isTouch = window.DocumentTouch && document instanceof DocumentTouch;
5
6        function scrollHeader() {
7            // Has scrolled class on header
8            var zvalue = $(document).scrollTop();
9            if (zvalue > 28)
10                $("html").addClass("scrolled");
11            else
12                $("html").removeClass("scrolled");
13        }
14
15        // ON SCROLL EVENTS
16        if (!isTouch) {
17            $(document).scroll(function () {
18                scrollHeader();
19            });
20        }
21
22        // TOUCH SCROLL
23        $(document).on({
24            'touchmove': function (e) {
25                scrollHeader(); // Replace this with your code.
26            }
27        });
28
29        /**
30         * Careers page
31         */
32        function jobs() {
33            var $placeholder = $('.jobs');
34
35            $placeholder.find('.job-title').on('click', function (e) {
36                var $more = $(this),
37                    $item = $more.closest('.job-item');
38
39                // add/remove .selected class
40                if ($item.hasClass('selected')) {
41                    $item.removeClass('selected');
42                }
43                else {
44                    $item.addClass('selected');
45                    window.location.hash = $more.attr('href');
46                }
47            });
48
49            return false;
50        }
51
52        $('.job-title').on('click', function (e) {
53            e.preventDefault();
54
55            var $this = $(this);
56
57            $this.next().slideToggle();
58        });
59
60        var $job = $('a[href="'+ location.hash +'"]');
61
62        if ($job.length) {
63            $("html, body").animate({
64                scrollTop: $job.offset().top - 110
65            }, 500);
66
67            $job.click().parent('.job-item').addClass('selected');
68        }
69        jobs();
70    });
71
72    document.addEventListener( 'wpcf7mailsent', function( event ) {
73        $('#wpcf7-f3230-p200-o1').html("<div class=\"sa\">\n" +
74            "<div class=\"sa-success\">\n" +
75            "<div class=\"sa-success-tip\"></div>\n" +
76            "<div class=\"sa-success-long\"></div>\n" +
77            "<div class=\"sa-success-placeholder\"></div>\n" +
78            "<div class=\"sa-success-fix\"></div>\n" +
79            "</div>\n" +
80            "<p class=\"sa-success-text\">Message sent. Thanks! <br> \n" +
81            "We'll get back to you as soon as possible.</p></div>");
82    }, true );
83
84    $(function () {
85
86        var $link = window.location.protocol + "//" + window.location.host + "/" + "blog/";
87        var $cat_all = $('.cat-item-all');
88
89        if (window.location.href === $link) {
90            $cat_all.addClass('current-cat');
91
92            console.log($link);
93        }
94
95        var $btn = $('.btn');
96        var $dropdown = $('.dropdown');
97
98
99        $.fn.invisible = function () {
100            return this.each(function () {
101                $(this).css("visibility", "hidden");
102            });
103        };
104        $.fn.visible = function () {
105            return this.each(function () {
106                $(this).css("visibility", "visible");
107            });
108        };
109
110        $btn.click(function (event) {
111            event.stopPropagation();
112            if (!$btn.hasClass('dropdown-visible')) {
113                $dropdown.toggleClass('dropdown-visible');
114            }
115        });
116
117        $(window).click(function () {
118            if (!$btn.hasClass('dropdown-visible')) {
119                $dropdown.removeClass('dropdown-visible');
120            }
121        });
122    });
123
124});

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.