PageSourceSearch

https://starr.com/-/media/Themes/Starr/Starr/Starr-Base-Theme/Scripts/Teamscards.js

js starr.com collected 2026-09-29 13:13:05 UTC 3,293 bytes, 97 lines download raw bytes

1/*$(function () {
2
3    /*click handler for accordion 
4    $(".popmodel").click(function (e) {
5        e.preventDefault();
6        //var $clicked = $(e.target).closest(".standard-accordion__item");
7        var modal = document.getElementById("pepmodel");
8        modal.style.display = "none";
9        
10    });
11}); */
12function SetSeamless() {
13  var n = $(".seamless iframe");
14  n.length && n.each(function () {
15    $(this).seamless();
16  });
17}
18
19;
20jQuery(function (n) {
21  n('[data-model-open="employee-listing"]').on("click", function (t) {
22    var u, i, r, f, e, o;
23
24    if (t.preventDefault(), u = n(t.target).closest(".employee-list__item"), u === null || u === undefined || !u.length) {
25      console.log("No Employee Listing Item found on page.");
26      return;
27    }
28
29    if (i = u.find(".employee-list__modal-content"), i === null || i === undefined || !i.length || i[0] === null || i[0] === undefined) {
30      console.log("No Employee Modal Content found on page.");
31      return;
32    }
33
34    if (r = n("[data-modal]"), r === null || r === undefined || !r.length) {
35      console.log("No modal found on page.");
36      return;
37    }
38
39    if (f = n("[data-modal-content-wide]"), f === null || f === undefined || !f.length) {
40      console.log("No modal content found on page.");
41      return;
42    }
43
44    if (e = r.find("[data-modal-data-wide]"), e === null || e === undefined || !e.length) {
45      console.log("No modal data found on page.");
46      return;
47    }
48
49    e.html(i[0].outerHTML);
50    SetSeamless();
51    o = n(this.getAttribute("href"));
52    r.fadeIn(250);
53    f.fadeIn(250);
54    o && n("html, body").delay(250).stop().animate({
55      scrollTop: o.offset().top - n(".header").outerHeight()
56    });
57  });
58  n('[data-model-open="pardot"]').on("click", function (t) {
59    var i, u, f, r, e;
60
61    if (t.preventDefault(), i = n("[data-modal]"), i === null || i === undefined || !i.length) {
62      console.log("No modal found on page.");
63      return;
64    }
65
66    if (u = n("[data-modal-content]"), u === null || u === undefined || !u.length) {
67      console.log("No modal content found on page.");
68      return;
69    }
70
71    if (f = n("[data-form-option] option:selected"), r = f.val(), r === null || r === undefined || !r.length) {
72      console.log("No value found to populate modal.");
73      return;
74    }
75
76    r = r.replace(/'/g, '"');
77    var o = f.text(),
78        s = i.find("[data-modal-title]"),
79        h = i.find("[data-modal-data]");
80    s.text(o);
81    h.html(r);
82    SetSeamless();
83    e = n(this.getAttribute("href"));
84    i.fadeIn(250);
85    u.fadeIn(250);
86    n("html, body").delay(250).stop().animate({
87      scrollTop: e.offset().top - n(".header").outerHeight()
88    });
89  });
90  n("[data-modal-close], [data-modal]").on("click", function (t) {
91    var r, i;
92    (t.preventDefault(), r = n("[data-modal]"), r !== null && r !== undefined && r.length) && (r.fadeOut(250), i = r.find("[data-modal-content]"), i !== null && i !== undefined && i.length || (i = r.find("[data-modal-content-wide]")), i !== null && i !== undefined && i.length) && i.fadeOut(250);
93  });
94  n("[data-modal-content], [data-modal-content-wide]").on("click", function (n) {
95    n.stopPropagation();
96  });
97});

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.