PageSourceSearch

https://ibtida.org/assets/plugins/js/backToTop.js

js ibtida.org collected 2026-09-27 14:50:29 UTC 1,383 bytes, 37 lines download raw bytes

1!(function (s) {
2  "use strict";
3  s(".switch").on("click", function () {
4    s("body").hasClass("light")
5      ? (s("body").removeClass("light"), s(".switch").removeClass("switched"))
6      : (s("body").addClass("light"), s(".switch").addClass("switched"));
7  }),
8    s(document).ready(function () {
9      var e = document.querySelector(".progress-wrap path"),
10        t = e.getTotalLength();
11      (e.style.transition = e.style.WebkitTransition = "none"),
12        (e.style.strokeDasharray = t + " " + t),
13        (e.style.strokeDashoffset = t),
14        e.getBoundingClientRect(),
15        (e.style.transition = e.style.WebkitTransition =
16          "stroke-dashoffset 10ms linear");
17      var o = function () {
18        var o = s(window).scrollTop(),
19          r = s(document).height() - s(window).height(),
20          i = t - (o * t) / r;
21        e.style.strokeDashoffset = i;
22      };
23      o(), s(window).scroll(o);
24      jQuery(window).on("scroll", function () {
25        jQuery(this).scrollTop() > 50
26          ? jQuery(".progress-wrap").addClass("active-progress")
27          : jQuery(".progress-wrap").removeClass("active-progress");
28      }),
29        jQuery(".progress-wrap").on("click", function (s) {
30          return (
31            s.preventDefault(),
32            jQuery("html, body").animate({ scrollTop: 0 }, 550),
33            !1
34          );
35        });
36    });
37})(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.