PageSourceSearch

https://mitchampharmacy.com/wp-content/themes/medizco/assets/js/script.js?ver=2.9

js mitchampharmacy.com collected 2026-10-05 23:51:58 UTC 3,236 bytes, 100 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    var $wn = $(window),
5        $doc = $(document);
6
7    $(function () {
8        /* ----------------------------------------------------------- */
9        /* Sticky
10        /* ----------------------------------------------------------- */
11        var $navbarSticky = $('.navbar-sticky');
12
13        if ( $navbarSticky.length ) {
14            var $wpadminbar = $('#wpadminbar'),
15                navbarStickyOffset = $wpadminbar.length ? $wpadminbar.outerHeight() : 0;
16
17            $navbarSticky.sticky({
18                zIndex: 999,
19                topSpacing: navbarStickyOffset
20            });
21        }
22
23        
24        /* ----------------------------------------------------------- */
25        /* Header Menu
26        /* ----------------------------------------------------------- */
27        var $navbarNav = $('.navbar-nav');
28
29        if ( $navbarNav.length ) {
30            $navbarNav.on('click', '> li > .dropdown-toggle', function() {
31                if ( $(window).width() > 991 ) {
32                    window.location.href = this.href;
33                }
34            });
35        }
36
37
38        /* ----------------------------------------------------------- */
39        /* Services CTA
40        /* ----------------------------------------------------------- */
41        var $select2Wrap = $('.select2_wrap .mf-input-select');
42
43        if ( 'undefined' !== typeof $.fn.select2 && $select2Wrap.length ) {
44            $select2Wrap.each(function () {
45                var $el = $(this);
46
47                $el.children('option:first-child').attr('selected', 'selected');
48
49                $el.select2({
50                    minimumResultsForSearch: -1,
51                    dropdownParent: $el.parent()
52                });
53            });
54        }
55
56
57        /* ----------------------------------------------------------- */
58        /* Timetable
59        /* ----------------------------------------------------------- */
60        var $timetableSelect = $('.mptt-navigation-select');
61
62        if ( 'undefined' !== typeof $.fn.select2 && $timetableSelect.length ) {
63            $timetableSelect.select2({
64                minimumResultsForSearch: -1,
65                dropdownParent: $timetableSelect.parent()
66            });
67        }
68
69        
70        /* ----------------------------------------------------------- */
71        /* Back to top
72        /* ----------------------------------------------------------- */
73        $(window).on('scroll', function () {
74            if ( $(window).scrollTop() > $(window).height() ) {
75                $('.BackTo').fadeIn('slow');
76            } else {
77                $('.BackTo').fadeOut('slow');
78            }
79        });
80
81        $('body, html').on('click', '.BackTo', function (e) {
82            e.preventDefault();
83
84            $('html, body').animate({
85                scrollTop: 0
86            }, 800);
87        });
88    });
89
90    $wn.on('load', function () {
91        /* ----------------------------------------------------------- */
92        /* Preloader
93        /* ----------------------------------------------------------- */
94        var $preloader = $('.medizco-preloder');
95
96        if ( $preloader.length ) {
97            $preloader.fadeOut();
98        }
99    });
100}(jQuery));

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.