PageSourceSearch

https://www.ekolagroup.cz/wp-content/plugins/floatingsidetab103/assets/js/fstp-frontend.js?ver=1749643655

js ekolagroup.cz collected 2026-10-08 18:19:34 UTC 6,410 bytes, 206 lines download raw bytes

1jQuery(document).ready(function ($) {
2  "use strict";
3  /**
4   * Tab show and hide
5   */
6  $("body").on("click", ".fstp-close-tab", function (e) {
7    $(".fstp-tab.fstp-menu-wrap").removeClass("active");
8    $(this).closest(".fstp-tab-data").hide();
9    $(".fstp-external").removeClass("fstp-no-hover");
10    e.stopImmediatePropagation();
11  });
12
13  /**
14   * icon switch case
15   */
16  $("body").on("click", ".fstp-open-menu", function (e) {
17    $(".fstp-close").toggle();
18    $(".fstp-openn").toggle();
19    $(".fstp-open-menu").toggleClass("active");
20  });
21
22  /**
23   * tab close for template 23 and template 24
24   */
25  $("body").on("click", ".fstp-close", function (e) {
26    $(".fstp-menu-wrap").removeClass("active");
27    $(".fstp-tab-data").hide();
28  });
29
30  /**
31   * tab click event
32   */
33  $("body").on("click", ".fstp-tab.fstp-menu-wrap", function (event) {
34    var selector = $(this);
35    var tempDivClass = $("#fstp-front-display-wrap").attr("class");
36    var tempArray = tempDivClass.split(" ");
37    var temp_num = tempArray[2];
38
39    if (!$(this).hasClass("fstp-close-tab")) {
40
41      var tab_ref = $(this).data("tab-ref");
42      if (!selector.hasClass("active")) {
43
44        if ($(this).is(":has(.fstp-tab-data)")) {
45          $(".fstp-tab.fstp-menu-wrap").removeClass("active");
46          $(this).addClass("active");
47          $(".fstp-tab-data").hide();
48          $('.fstp-tab-data[data-tab-ref="' + tab_ref + '"]').show();
49
50          if (
51            temp_num == "fstp-template-6" ||
52            temp_num == "fstp-template-7" ||
53            temp_num == "fstp-template-8" ||
54            temp_num == "fstp-template-11" ||
55            temp_num == "fstp-template-23"
56          ) {
57            $(".fstp-external").addClass("fstp-no-hover");
58          }
59        }
60      } else {
61        if (!$(event.target).closest(".fstp-tab-data").length) {
62
63          $('.fstp-tab-data[data-tab-ref="' + tab_ref + '"]').toggle();
64          selector.removeClass("active");
65
66          if (
67            temp_num == "fstp-template-6" ||
68            temp_num == "fstp-template-7" ||
69            temp_num == "fstp-template-8"
70          ) {
71
72            $(".fstp-external").removeClass("fstp-no-hover");
73          }
74        }
75      }
76    } else {
77    }
78  });
79
80  $("body").on("click", ".fstp-open-menu", function () {
81    $(".fstp-show").toggle("slide");
82  });
83  $("body").on("click", function () {
84    $("p").toggleClass("main");
85  });
86
87  $(document).on("click", "body", function (event) {
88    if ($(event.target).closest(".fstp-tab-data").length) {
89      if ($(this).is(":has(.fstp-tab-data)")) {
90        $(event.target).closest(".fstp-tab-data").show();
91      } else {
92        $(event.target).closest(".fstp-tab-data").show();
93        $(".fstp-menu-wrap").removeClass("active");
94      }
95    } else {
96      $(".fstp-external").removeClass("fstp-no-hover");
97      $(".fstp-menu-wrap").removeClass("active");
98      $(".fstp-tab-data").hide();
99    }
100  });
101
102  $(document).on("click", "fstp-tab,  .fstp-tab-link", function (e) {
103    e.stopImmediatePropagation();
104  });
105
106  /**
107   * contact form submit ajax
108   */
109  $("body").on("submit", ".fstp-contact-form", function (e) {
110    e.preventDefault();
111    var selector = $(this);
112    selector.find(".fstp-form-message").html("");
113    selector.find(".fstp-form-message").show();
114    var fstp_name = selector.find(".fstp-name").val();
115    var fstp_email = selector.find(".fstp-email").val();
116    var fstp_msg = selector.find(".fstp-txt-area").val();
117    var fstp_rec_email = selector.find(".fstp-rec-email").val();
118    $.ajax({
119      type: "post",
120      url: ajax_obj.ajax_url,
121      data: {
122        action: "fstp_contact_form_action",
123        name: fstp_name,
124        email: fstp_email,
125        msg: fstp_msg,
126        rec_email: fstp_rec_email,
127        _wpnonce: ajax_obj.nonce,
128      },
129      beforeSend: function (xhr) {
130        selector.find(".fstp-loader").show();
131      },
132      success: function (res) {
133        selector.find(".fstp-loader").hide();
134
135        res = $.parseJSON(res);
136
137        if (res.status == 200) {
138          selector.find(".fstp-form-message").addClass("fstp-success");
139          selector.find(".fstp-form-message").removeClass("fstp-error");
140          selector.find(".fstp-form-message").html(res.message);
141          setTimeout(function () {
142            selector.find(".fstp-success").hide();
143          }, 4000);
144          selector[0].reset();
145        }
146        if (res.status == 403) {
147          selector.find(".fstp-form-message").removeClass("fstp-success");
148          selector.find(".fstp-form-message").addClass("fstp-error");
149          selector.find(".fstp-form-message").html(res.message);
150          setTimeout(function () {
151            selector.find(".fstp-error").hide();
152          }, 4000);
153          selector[0].reset();
154        }
155      },
156    });
157  });
158  /**
159   * subscriber form submit ajax
160   */
161  $("body").on("submit", ".fstp-subscription-form", function (e) {
162    e.preventDefault();
163    var selector = $(this);
164    selector.find(".fstp-form-message").html("");
165    selector.find(".fstp-form-message").show();
166    var fstp_name = selector.find(".fstp-name").val();
167    var fstp_email = selector.find(".fstp-email").val();
168    $.ajax({
169      type: "post",
170      url: ajax_obj.ajax_url,
171      data: {
172        action: "fstp_subscribe_form_action",
173        name: fstp_name,
174        email: fstp_email,
175        _wpnonce: ajax_obj.nonce,
176      },
177      beforeSend: function (xhr) {
178        selector.find(".fstp-loader").show();
179      },
180      success: function (res) {
181        selector.find(".fstp-loader").hide();
182
183        res = $.parseJSON(res);
184
185        if (res.status == 200) {
186          selector.find(".fstp-form-message").addClass("fstp-success");
187          selector.find(".fstp-form-message").removeClass("fstp-error");
188          selector.find(".fstp-form-message").html(res.message);
189          setTimeout(function () {
190            selector.find(".fstp-success").hide();
191          }, 4000);
192          selector[0].reset();
193        }
194        if (res.status == 403) {
195          selector.find(".fstp-form-message").removeClass("fstp-success");
196          selector.find(".fstp-form-message").addClass("fstp-error");
197          selector.find(".fstp-form-message").html(res.message);
198          setTimeout(function () {
199            selector.find(".fstp-error").hide();
200          }, 4000);
201          selector[0].reset();
202        }
203      },
204    });
205  });
206});

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.