PageSourceSearch

https://www.au-pida.org/wp-content/plugins/animated-number-counters/assets/js/ajaxdata.js?ver=6.8.10

js au-pida.org collected 2026-10-03 17:44:04 UTC 4,056 bytes, 102 lines download raw bytes

1jQuery(document).ready(function () {
2  jQuery("body").on("click", ".open_in_new_tab_class", function () {
3    return (
4      "_blank" == jQuery(".open_in_new_tab_class").attr("target")
5        ? window.open(jQuery(this).attr("href"), "_blank").focus()
6        : window.open(jQuery(this).attr("href"), "_parent").focus(),
7      !1
8    );
9  }),
10    jQuery("body").on("click", ".anc_6310_number_counter_info", function () {
11      jQuery("body").prepend(
12        '<div id="myanc_6310_modal" class="anc_6310_modal"><div class="anc_6310_modal-content"><span class="anc-6310-close">&times;</span><div class="anc_6310_modal_body_picture"><img src="" id="anc_6310_modal_img" /></div><div class="anc_6310_modal_body_content"><div id="anc_6310_modal_designation"></div><div id="anc_6310_modal_name"></div><div id="anc_6310_modal_details"></div><br><br><div class="anc_6310_modal_social"></div></div><br class="anc_6310_clear" /></div><br class="anc-6310-clear" /></div>'
13      );
14      var s = parseInt(jQuery(this).attr("number-counterid"));
15      parseInt(jQuery(this).attr("link-id")) > 0
16        ? "1" == jQuery(this).attr("target")
17          ? window.open(jQuery(this).attr("link-url"), "_blank").focus()
18          : window.open(jQuery(this).attr("link-url"), "_parent").focus()
19        : s > 0 &&
20          (jQuery("#anc_6310_loading").show(),
21          jQuery("body").css({ overflow: "hidden" }),
22          jQuery.ajax({
23            type: "GET",
24            dataType: "json",
25            url: anc_6310_ajax_object.anc_6310_ajax_url,
26            data: { action: "anc_6310_number_counter_details", ids: s },
27            success: function (s) {
28              jQuery("#anc_6310_loading").hide(),
29                jQuery(".anc_6310_modal-content").css({
30                  "animation-name": "anc-6310-animate" + s.styledata.effect,
31                }),
32                jQuery("#myanc_6310_modal").show(),
33                jQuery("#anc_6310_modal_img").attr("src", s.styledata.image),
34                jQuery("#anc_6310_modal_img").attr(
35                  "image_hover",
36                  s.styledata.image_hover
37                ),
38                jQuery("#anc_6310_modal_designation").text(
39                  s.styledata.designation
40                ),
41                jQuery("#anc_6310_modal_name").text(s.styledata.name),
42                jQuery(".anc_6310_modal_social").html(""),
43                jQuery(".anc_6310_modal_social").append(s.link),
44                jQuery("#anc_6310_modal_details").html(
45                  s.styledata.profile_details.replace(/\n/g, "<br>")
46                );
47            },
48          }));
49    });
50});
51
52jQuery(window).on("load", function () {
53  let allCounters = jQuery(".anc_6310_main_counter");
54  if (allCounters.length) {
55    allCounters.each(function () {
56      let time = parseInt(jQuery(this).attr("data-time"));
57      let id = jQuery(this).attr("data-id");
58      let visitor = Number(jQuery(this).attr("data-visitor"));
59      let cookieName = "anc-6310-counter-" + id;
60      let status = getCookie(cookieName);
61      if (!status) {
62        setCookie(cookieName, true, time);
63        jQuery.ajax({
64          type: "GET",
65          url: anc_6310_ajax_object.ajax_url,
66          data: {
67            action: "anc_6310_visitor_counter_settings",
68            id: id,
69            visitor: visitor,
70          },
71          success: function (data) {},
72        });
73      }
74    });
75  }
76});
77
78function setCookie(cName, cValue, exdays) {
79  let d = new Date();
80  d.setTime(d.getTime() + exdays * 60 * 1000);
81  let expires = "expires=" + d.toGMTString();
82  document.cookie = cName + "=" + cValue + ";" + expires + ";path=/";
83}
84
85function getCookie(cName) {
86  if (cName == "") {
87    return "";
88  }
89  let name = cName + "=";
90  let decodedCookie = decodeURIComponent(document.cookie);
91  let ca = decodedCookie.split(";");
92  for (let i = 0; i < ca.length; i++) {
93    let c = ca[i];
94    while (c.charAt(0) == " ") {
95      c = c.substring(1);
96    }
97    if (c.indexOf(name) == 0) {
98      return c.substring(name.length, c.length);
99    }
100  }
101  return "";
102}

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.