PageSourceSearch

https://pearlmorissette.com/js/pages/store.js

js pearlmorissette.com collected 2026-10-03 19:03:44 UTC 1,341 bytes, 60 lines download raw bytes

1var openSelect = function (selector) {
2  var element = $(selector)[0],
3    worked = false;
4  if (document.createEvent) {
5    // all browsers
6    var e = document.createEvent("MouseEvents");
7    e.initMouseEvent(
8      "mousedown",
9      true,
10      true,
11      window,
12      0,
13      0,
14      0,
15      0,
16      0,
17      false,
18      false,
19      false,
20      false,
21      0,
22      null
23    );
24    worked = element.dispatchEvent(e);
25  } else if (element.fireEvent) {
26    // ie
27    worked = element.fireEvent("onmousedown");
28  }
29  if (!worked) {
30    // unknown browser / error
31    alert("It didn't worked in your browser.");
32  }
33};
34
35$(document).on("click", "#openTshirtGender", function (e) {
36  openSelect("#tshirtGender");
37});
38
39$(document).on("click", "#openTshirtSize", function (e) {
40  openSelect("#tshirtSize");
41});
42
43$(document).on("click", "#nav-trigger", function (e) {
44  console.log("HEELO");
45  e.preventDefault();
46  $(".cd-vertical-nav").toggleClass("open");
47});
48
49// Modal close handlers for shipping notice modal
50$(document).on("click", '[data-dismiss="modal"]', function (e) {
51  e.preventDefault();
52  $(this).closest(".modal").removeClass("show");
53});
54
55// Close modal when clicking outside of it
56$(document).on("click", ".modal", function (event) {
57  if ($(event.target).hasClass("modal")) {
58    $(this).removeClass("show");
59  }
60});

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.