PageSourceSearch

https://berksencore.org/wp-content/plugins/team-showcase-supreme/assets/js/ajaxdata.js?ver=7.1.2

js berksencore.org collected 2026-10-01 15:34:07 UTC 6,165 bytes, 157 lines download raw bytes

1window.addEventListener("load", function () {
2  jQuery("body").on(
3    "click",
4    ".wpm-6310-custom-field-mail-link-class",
5    function (event) {
6      var customField = jQuery(this).attr("wpm-data-custom-field");
7      if (customField != undefined) {
8        window.open(customField, "_blank").focus();
9        event.preventDefault();
10        return false;
11      }
12    }
13  );
14  var modalId = "";
15  jQuery("body").on("click", ".wpm_6310_team_member_info, .wpm_6310_team_member_internal_link", function (event) {
16    let allModal = jQuery(".wpm_6310_modal");
17    allModal.each(function () {
18      jQuery(this).remove();
19    });
20
21    modalId = parseInt(jQuery(this).attr("team-id"));
22    var linkId = parseInt(jQuery(this).attr("link-id"));
23    var linkUrl = jQuery(this).attr("data-wpm-link-url");
24
25    if (linkId > 0) {
26      event.preventDefault();
27      if (jQuery(this).attr("target") == "1") {
28        window.open(jQuery(this).attr("link-url"), "_blank").focus();
29      } else {
30        window.open(jQuery(this).attr("link-url"), "_parent").focus();
31      }
32      return false;
33    } else if(linkUrl){
34      window.location.href = linkUrl;
35    }  else if (modalId > 0) {
36      var mId = Number(
37        jQuery(this)
38          .closest(".wpm_main_template")
39          .attr("wpm-6310-modal-template")
40      );
41      var tId = Number(
42        jQuery(this).closest(".wpm_main_template").attr("wpm-6310-carousel-id")
43      );
44
45      var html =
46        '<div id="mywpm_6310_modal" class="wpm_6310_modal wpm_6310_mmt_' +
47        tId +
48        '"><div class="wpm_6310_modal-content"><span class="wpm-6310-close">&times;</span> <div class="wpm_6310_modal_template wpm_6310_modal_template_1"><div class="wpm_6310_modal_template_before"></div><div class="wpm_6310_modal_template_after"></div><div class="wpm_6310_modal_body_picture"><img src="" class="wpm_6310_modal_img"/></div><div class="wpm_6310_modal_body_content"><div class="wpm_6310_modal_designation"></div><div class="wpm_6310_modal_name"></div><div class="wpm_6310_modal_details"></div><br><br><div class="wpm_6310_modal_contact"></div><div class="wpm_6310_member_skills_wrapper"></div><div class="wpm_6310_modal_social"></div></div><br class="wpm_6310_clear"/></div><br class="wpm_6310_clear"/></div><br class="wpm_6310_clear" /</div>';
49      jQuery("body").prepend(html);
50
51      jQuery(".wpm_6310_loading").show();
52      jQuery("body").css({
53        overflow: "hidden",
54      });
55
56      let dataList = {
57        action: "wpm_6310_team_member_details",
58        ids: modalId,
59        styleId: jQuery(this)
60          .closest(".wpm_main_template")
61          .attr("wpm-6310-carousel-id"),
62        clicked: "",
63        progress_bar_animation: jQuery(this)
64          .closest(".wpm_main_template")
65          .attr("wpm_6310_progress_bar_animation"),
66        progress_bar_border_radius: jQuery(this)
67          .closest(".wpm_main_template")
68          .attr("wpm_6310_progress_bar_border_radius"),
69      };
70      wpm_6310_load_modal(dataList);
71    }
72  });
73
74  jQuery("body").on("click", ".wpm_6310_modal_template_before", function () {
75    var datas = {
76      action: "wpm_6310_team_member_details",
77      ids: jQuery(".wpm_6310_modal").attr("wpm-6310-member-id"),
78      styleId: jQuery(this)
79        .closest(".wpm_6310_modal")
80        .attr("wpm-6310-carousel-id"),
81      clicked: "prev",
82      progress_bar_animation: jQuery(this)
83        .closest(".wpm_6310_modal")
84        .attr("wpm_6310_progress_bar_animation"),
85      progress_bar_border_radius: jQuery(this)
86        .closest(".wpm_6310_modal")
87        .attr("wpm_6310_progress_bar_border_radius"),
88    };
89    jQuery(".wpm_6310_loading").show();
90    jQuery(".wpm_6310_modal").hide();
91    wpm_6310_load_modal(datas);
92  });
93
94  jQuery("body").on("click", ".wpm_6310_modal_template_after", function () {
95    var datas = {
96      action: "wpm_6310_team_member_details",
97      ids: jQuery(".wpm_6310_modal").attr("wpm-6310-member-id"),
98      styleId: jQuery(this)
99        .closest(".wpm_6310_modal")
100        .attr("wpm-6310-carousel-id"),
101      clicked: "next",
102      progress_bar_animation: jQuery(this)
103        .closest(".wpm_6310_modal")
104        .attr("wpm_6310_progress_bar_animation"),
105      progress_bar_border_radius: jQuery(this)
106        .closest(".wpm_6310_modal")
107        .attr("wpm_6310_progress_bar_border_radius"),
108    };
109    jQuery(".wpm_6310_loading").show();
110    jQuery(".wpm_6310_modal").hide();
111    wpm_6310_load_modal(datas);
112  });
113});
114
115function wpm_6310_load_modal(dataList) {
116  jQuery.ajax({
117    type: "GET",
118    dataType: "json",
119    url: my_ajax_object.ajax_url,
120    data: dataList,
121    success: function (data) {
122      jQuery(".wpm_6310_loading").hide();
123      jQuery(".wpm_6310_modal-content").css({
124        "animation-name": "wpm-animate" + data["styledata"]["effect"],
125      });
126      jQuery(".wpm_6310_modal").show();
127      jQuery(".wpm_6310_modal").attr(
128        "wpm-6310-member-id",
129        data["styledata"]["id"]
130      );
131      jQuery(".wpm_6310_modal").attr(
132        "wpm-6310-carousel-id",
133        dataList["styleId"]
134      );
135      jQuery(".wpm_6310_modal_img").attr("src", data["styledata"]["image"]);
136      jQuery(".wpm_6310_modal_designation").text(
137        data["styledata"]["designation"]
138      );
139      jQuery(".wpm_6310_modal").attr(
140        "wpm_6310_progress_bar_animation",
141        dataList["progress_bar_animation"]
142      );
143      jQuery(".wpm_6310_modal").attr(
144        "wpm_6310_progress_bar_border_radius",
145        dataList["progress_bar_border_radius"]
146      );
147      jQuery(".wpm_6310_modal_name").text(data["styledata"]["name"]);
148      jQuery(".wpm_6310_modal_social").html("");
149      jQuery(".wpm_6310_modal_social").append(data["link"]);
150      jQuery(".wpm_6310_modal_details").html(
151        data["styledata"]["profile_details"].replace(/\n/g, "<br>").replace(/&lt;/g, '<').replace(/&gt;/g, '>')
152      );
153      jQuery(".wpm_6310_member_skills_wrapper").html("");
154      jQuery(".wpm_6310_member_skills_wrapper").append(data["skills"]);
155    },
156  });
157}

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.