PageSourceSearch

https://www.jhcenterforthearts.org/wp-content/themes/jhcenter/js/custom-scripts.js?ver=20171012

js jhcenterforthearts.org collected 2026-10-02 05:43:10 UTC 3,113 bytes, 118 lines download raw bytes

1$(document).ready(function () {
2
3  $('.hero_slider').slick({
4    autoplay: true,
5    autoplaySpeed: 7000,
6    dots: false,
7    infinite: true,
8    speed: 500,
9    fade: true,
10    cssEase: 'linear',
11    arrows: true,
12    pauseOnHover: false,
13    rows: 0
14  }
15  );
16
17  //Access filters
18  $(".access_filter .btn").click(function () {
19    var filterArray = [];
20    $("#access").val($(this).data("value"));
21    $(".access_form").submit();
22  });
23
24  /**
25  * Search Form Script
26  */
27
28  //Open
29  $(".header_search_icon a").click(function (e) {
30
31    e.preventDefault();
32
33    $(".header_search_icon a").attr("aria-expanded", "true");
34
35    $(".search_full").slideDown();
36    $("#search_form_content").focus();
37
38  });
39
40  //Close
41  $(".search_full .search_close a").click(function (e) {
42
43    e.preventDefault();
44
45    $(".mobile_search_icon a").attr("aria-expanded", "false");
46    $(".search_icon a").attr("aria-expanded", "false");
47
48    $(".search_full").slideUp();
49
50  });
51
52  // Custom donate form
53  var formIds = [5, 7, 9];
54
55  $("button.btn_donate").on('click', function (event) {
56    var amount = this.getAttribute("data-donate-amount");
57    if (amount != null) {
58      $.each(formIds, function (i, id) {
59        var donation = document.getElementById('ginput_base_price_' + id + '_7');
60        if (donation) {
61          donation.value = amount;
62          $("#ginput_base_price_" + id + "_7").attr("value", "$" + amount + ".00");
63        }
64      });
65    }
66  });
67
68  $("input.btn_donate").on('change keydown paste input click', function (event) {
69    var amount = this.value;
70    if (amount != null) {
71      $.each(formIds, function (i, id) {
72        var donation = document.getElementById('ginput_base_price_' + id + '_7');
73        if (donation) {
74          donation.value = amount;
75          $("#ginput_base_price_" + id + "_7").attr("value", "$" + amount + ".00");
76        }
77      });
78    }
79  });
80
81  $('button.btn_donate').on('click', function () {
82    $('.btn_donate').removeClass('btn_dark');
83    $(this).addClass('btn_dark');
84    $.each(formIds, function (i, id) {
85      $('#gform_next_button_' + id + '_15').show();
86    });
87  });
88
89  $('input.btn_donate').on('change keydown paste input', function () {
90    $('.btn_donate').removeClass('btn_dark');
91    $(this).addClass('btn_dark');
92    $.each(formIds, function (i, id) {
93      $('#gform_next_button_' + id + '_15').show();
94    });
95  });
96
97  $.each(formIds, function (i, id) {
98    $('#gform_next_button_' + id + '_15').on('click', function () {
99      $('.btn_row').hide();
100    });
101    $(document).on('click', '#gform_previous_button_' + id + '_16', function () {
102      $('.btn_row').show();
103    });
104  });
105
106  // Fix for jumpy fixed background in Internet Explorer
107
108  if (navigator.userAgent.match(/(?:\b(MS)?IE\s+|\bTrident\/7\.0;.*\s+rv:|\bEdge\/)(\d+)/)) {
109    $('body').on("mousewheel", function () {
110      event.preventDefault();
111      var wd = event.wheelDelta;
112      var csp = window.pageYOffset;
113      window.scrollTo(0, csp - wd);
114    });
115  }
116
117}
118);

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.