PageSourceSearch

https://www.pulaskicountyhealth.com/files/theme/custom.js?1551068507

js pulaskicountyhealth.com collected 2026-09-30 20:02:25 UTC 2,359 bytes, 83 lines download raw bytes

1jQuery(function($) {
2
3	var $window = $(window);
4	var $body = $('body');
5	var $header = $('#header');
6	$window.on('scroll', function(e) {
7		var scrollTop = $window.scrollTop();
8		$header.toggleClass('minimal', scrollTop > 0);
9		$body.toggleClass('minimal-header', scrollTop > 0);
10	});
11
12  $('body').addClass('postload');
13
14	$(document).ready(function() {
15
16      $(".hamburger").click(function(){
17        $("body").toggleClass("menu-open");
18      });
19
20    // Add fullwidth class to gallery thumbs if less than 6
21    	
22    $('.imageGallery').each(function(){
23      if ($(this).children('div').length <= 6) {
24        $(this).children('div').addClass('fullwidth-mobile');
25      }
26    });
27
28    // Watch for changes on non-mobile nav
29
30    var mainNav = '#nav',
31        mobileNav = "#navmobile";
32
33    $(mainNav).on('DOMSubtreeModified propertychange', function() {
34      if ($(window).width() < 768) {
35        $(mainNav + " li a").each(function(){
36          // Differentiating post-load nav elements by the presence of an id
37          if ($(this).attr("id")) {
38            var navLinkId = $(this).attr("id");
39            var navLinkParent = $(this).parent().detach();
40
41            // Append to mobile nav if new element
42            if (!$(mobileNav + " #"+navLinkId).length) {
43              $(mobileNav + " .wsite-menu-default").append(navLinkParent);
44              var newheight = $(mobileNav + " .wsite-menu-default").height();
45              $(".wsite-mobile-menu").height(newheight);
46            }
47          }
48        });
49      }
50    });
51
52    $(window).resize(function() {
53      var newheight = $(mobileNav + " .wsite-menu-default").height();
54      $(".wsite-mobile-menu").height(newheight);
55    });
56
57    // Add swipe to fancybox mobile 
58
59    var swipeGallery = function(){
60      setTimeout(function(){
61      var touchGallery = document.getElementsByClassName("fancybox-wrap")[0];
62      var mc = new Hammer(touchGallery);
63      mc.on("panleft panright", function(ev) {
64        if (ev.type == "panleft") {
65          $("a.fancybox-next").trigger("click");
66        }
67        else if (ev.type == "panright") {
68          $("a.fancybox-prev").trigger("click");
69        }
70        swipeGallery();
71      });
72      }, 500);
73    }
74    if ($(window).width() < 1024) {
75      $("body").on( "click", "a.w-fancybox", function() {
76        swipeGallery();
77      });
78    }
79
80  });
81
82
83});

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.