PageSourceSearch

https://occ.sa/o/custom.min/custom.min.js

js occ.sa collected 2026-10-02 02:09:16 UTC 10,814 bytes, 302 lines download raw bytes

1$(document).ready(function () {
2  var baseurl = $("html").attr("data-path"),
3    page = $("html").attr("data-page");
4  if (
5    ($(window).on("scroll touchmove", function () {
6      $(".spotlight").toggleClass(
7        "scale-down-center",
8        $(document).scrollTop() > 500
9      ),
10        $(".spotlightxx").toggleClass(
11          "makesmall",
12          $(document).scrollTop() > 500
13        );
14    }),
15    $("#submit-contact-form").on("submit", function (e) {
16      var data = $(this).serialize(),
17        me = $(this);
18      me.data("requestRunning") ||
19        (me.data("requestRunning", !0),
20        e.preventDefault(),
21        $.ajax({
22          type: "POST",
23          url: baseurl + "php/contact-form.php",
24          data: data,
25          dataType: "json",
26          beforeSend: function () {
27            $(".form-spinner").removeClass("d-none");
28          },
29          shouldRetry: 3,
30          success: function (response) {
31            $(".form-spinner").addClass("d-none"),
32              "success" == response.stu
33                ? ($("#sendBtn").prop("disabled", !0),
34                  $(".alert-success").removeClass("d-none"),
35                  $(".alert-success").html(response.msg),
36                  $(".alert-danger").addClass("d-none"))
37                : ($("#sendBtn").prop("disabled", !1),
38                  $(".alert-success").addClass("d-none"),
39                  $(".alert-danger").removeClass("d-none"),
40                  $(".alert-danger").html(response.msg));
41          },
42          complete: function () {
43            me.data("requestRunning", !1);
44          },
45        }));
46    }),
47    $("#submit-cta-form").on("submit", function (e) {
48      var data = $(this).serialize(),
49        me = $(this);
50      me.data("requestRunning") ||
51        (me.data("requestRunning", !0),
52        e.preventDefault(),
53        $.ajax({
54          type: "POST",
55          url: baseurl + "php/cta-form.php",
56          data: data,
57          dataType: "json",
58          beforeSend: function () {
59            $(".form-spinner").removeClass("d-none");
60          },
61          shouldRetry: 3,
62          success: function (response) {
63            $(".form-spinner").addClass("d-none"),
64              "success" == response.stu
65                ? ($("#sendBtn").prop("disabled", !0),
66                  $(".alert-success").removeClass("d-none"),
67                  $(".alert-success").html(response.msg),
68                  $(".alert-danger").addClass("d-none"))
69                : ($("#sendBtn").prop("disabled", !1),
70                  $(".alert-success").addClass("d-none"),
71                  $(".alert-danger").removeClass("d-none"),
72                  $(".alert-danger").html(response.msg));
73          },
74          complete: function () {
75            me.data("requestRunning", !1);
76          },
77        }));
78    }),
79    $("#goto-athome").on("click", function () {
80      $("#at-home").addClass("pt-12"),
81        $("#hospitality").removeClass("pt-12"),
82        $("#connectivity").removeClass("pt-12");
83    }),
84    $("#goto-hospitality").on("click", function () {
85      $("#at-home").removeClass("pt-12"),
86        $("#hospitality").addClass("pt-12"),
87        $("#connectivity").removeClass("pt-12");
88    }),
89    $("#goto-connectivity").on("click", function () {
90      $("#at-home").removeClass("pt-12"),
91        $("#hospitality").removeClass("pt-12"),
92        $("#connectivity").addClass("pt-12");
93    }),
94    $("#goto-orbit-box").on("click", function () {
95      $("#e-learning").addClass("pt-lg-8").removeClass("pt-12"),
96        $("#smart-home").addClass("pt-lg-8").removeClass("pt-12"),
97        $("#orbit-now").addClass("pt-lg-8").removeClass("pt-12"),
98        $("#orbit-box").removeClass("pt-lg-8").addClass("pt-12"),
99        $("#smart-wifi").addClass("pt-lg-8").removeClass("pt-12");
100    }),
101    $("#goto-orbit-now").on("click", function () {
102      $("#e-learning").addClass("pt-lg-8").removeClass("pt-12"),
103        $("#smart-home").addClass("pt-lg-8").removeClass("pt-12"),
104        $("#orbit-now").removeClass("pt-lg-8").addClass("pt-12"),
105        $("#orbit-box").addClass("pt-lg-8").removeClass("pt-12"),
106        $("#smart-wifi").addClass("pt-lg-8").removeClass("pt-12");
107    }),
108    $("#goto-smart-home").on("click", function () {
109      $("#e-learning").addClass("pt-lg-8").removeClass("pt-12"),
110        $("#smart-home").removeClass("pt-lg-8").addClass("pt-12"),
111        $("#orbit-now").addClass("pt-lg-8").removeClass("pt-12"),
112        $("#orbit-box").addClass("pt-lg-8").removeClass("pt-12"),
113        $("#smart-wifi").addClass("pt-lg-8").removeClass("pt-12");
114    }),
115    $("#goto-e-learning").on("click", function () {
116      $("#e-learning").removeClass("pt-lg-8").addClass("pt-12"),
117        $("#smart-home").addClass("pt-lg-8").removeClass("pt-12"),
118        $("#orbit-now").addClass("pt-lg-8").removeClass("pt-12"),
119        $("#orbit-box").addClass("pt-lg-8").removeClass("pt-12"),
120        $("#smart-wifi").addClass("pt-lg-8").removeClass("pt-12");
121    }),
122    $("#goto-smart-wifi").on("click", function () {
123      $("#smart-wifi").removeClass("pt-lg-8").addClass("pt-12"),
124        $("#e-learning").addClass("pt-lg-8").removeClass("pt-12"),
125        $("#smart-home").addClass("pt-lg-8").removeClass("pt-12"),
126        $("#orbit-now").addClass("pt-lg-8").removeClass("pt-12"),
127        $("#orbit-box").addClass("pt-lg-8").removeClass("pt-12");
128    }),
129    "home" == page)
130  ) {
131    var swiperProjects = new Swiper(".swiper-projects", {
132        autoHeight: !0,
133        spaceBetween: 16,
134        breakpoints: {
135          640: { slidesPerView: 3, spaceBetween: 16 },
136          768: { slidesPerView: 2, spaceBetween: 16 },
137          1024: { slidesPerView: 2, spaceBetween: 16 },
138        },
139        pagination: { el: ".swiperProjects-pagination", clickable: !0 },
140        navigation: {
141          nextEl: ".swiperProjects-button-next",
142          prevEl: ".swiperProjects-button-prev",
143        },
144      }),
145      sliderThumbs = new Swiper(".progress-swiper-thumbs", {
146        watchSlidesVisibility: !0,
147        watchSlidesProgress: !0,
148        history: !1,
149        pauseOnMouseEnter: !0,
150        disableOnInteraction: !1,
151        breakpoints: {
152          480: { slidesPerView: 2, spaceBetween: 16 },
153          768: { slidesPerView: 3, spaceBetween: 16 },
154          1024: { slidesPerView: 3, spaceBetween: 16 },
155        },
156        on: {
157          afterInit: function (swiper) {
158            swiper.el
159              .querySelectorAll(".swiper-pagination-progress-inner")
160              .forEach(
161                ($progress) =>
162                  ($progress.style.transitionDuration = `${swiper.params.autoplay.delay}ms`)
163              );
164          },
165        },
166      }),
167      swiperClassic = new Swiper(".swiper-classic", {
168        slidesPerView: 1,
169        spaceBetween: 0,
170        loop: !0,
171        grabCursor: !0,
172        autoplay: { delay: 6e3 },
173        effect: "creative",
174        creativeEffect: {
175          prev: { shadow: !0, translate: ["-20%", 0, -1] },
176          next: { translate: ["100%", 0, 0] },
177        },
178        thumbs: { swiper: sliderThumbs },
179      });
180    $(".swiper-button-pause").on("click", function () {
181      swiperClassic.autoplay.start(),
182        $(".swiper-button-play").removeClass("d-none"),
183        $(".swiper-button-pause").addClass("d-none");
184    }),
185      $(".swiper-button-play").on("click", function () {
186        swiperClassic.autoplay.stop(),
187          $(".swiper-button-pause").removeClass("d-none"),
188          $(".swiper-button-play").addClass("d-none");
189      });
190  }
191  if ("free-consult" == page) {
192    var x = document.getElementById("latitude"),
193      y = document.getElementById("longitude");
194    let pickr;
195    navigator.geolocation.getCurrentPosition(
196      function (position) {
197        (x.value = position.coords.latitude),
198          (y.value = position.coords.longitude);
199      },
200      function (error) {
201        console.log("The Locator was denied.");
202      }
203    ),
204      document.querySelectorAll("[data-flatpickr]").forEach((el) => {
205        const t = {
206          ...(el.dataset.flatpickr
207            ? JSON.parse(el.dataset.flatpickr)
208            : { minDate: "today" }),
209        };
210        new flatpickr(el, t);
211      });
212  }
213});
214var player = document.querySelectorAll(".player");
215player.forEach(function (el) {
216  new Plyr(el);
217}),
218  (function (a) {
219    "use strict";
220    function b(a) {
221      return a.state
222        ? "pending" !== a.state()
223        : a.isResolved() || a.isRejected();
224    }
225    var c = "__RETRY__" + new Date().getTime();
226    a.ajaxPrefilter(function (d, e, f) {
227      if (!d[c] && void 0 !== d.shouldRetry) {
228        e[c] = !0;
229        var g,
230          h,
231          i = a.Deferred(),
232          j = a.Deferred(),
233          k = {},
234          l = 0,
235          m = function (b, c, e) {
236            var f,
237              g = d.shouldRetry,
238              h;
239            switch (typeof g) {
240              case "number":
241                f = g > c;
242                break;
243              case "boolean":
244                f = g;
245                break;
246              case "function":
247                f = g(b, c, e);
248            }
249            return "object" == typeof f && "function" == typeof f.then
250              ? a
251                  .Deferred(function (a) {
252                    f.then(a.resolve, function () {
253                      a.resolve(!1);
254                    });
255                  })
256                  .promise()
257              : a.when(f);
258          };
259        (function n(b, c, d) {
260          (c ? m(c, l++, b.type || "GET") : a.when(!0)).done(function (e) {
261            !0 === e
262              ? (c ? a.ajax(b) : f).then(
263                  function (a, b, c) {
264                    (h = c.status),
265                      i.resolveWith(this, arguments),
266                      i.done(k[h]),
267                      j.resolveWith(this, [c, b]);
268                  },
269                  function (a, c) {
270                    var d = arguments,
271                      e = this;
272                    n(b, a, function () {
273                      (h = a.status),
274                        i.rejectWith(e, d),
275                        i.fail(k[h]),
276                        j.resolveWith(e, [a, c]);
277                    });
278                  }
279                )
280              : d();
281          });
282        })(
283          (g = a.extend({}, e, {
284            success: a.noop,
285            error: a.noop,
286            complete: a.noop,
287            statusCode: {},
288          }))
289        ),
290          f.complete &&
291            ((f.complete = j.done), (f.success = i.done), (f.error = i.fail)),
292          a.extend(f, i.promise()),
293          (f.statusCode = function (a) {
294            var c;
295            if (a)
296              if (b(i)) i.then(a[h], a[h]);
297              else for (c in a) k[c] = [k[c], a[c]];
298            return this;
299          });
300      }
301    });
302  })(jQuery);

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.