PageSourceSearch

https://robertassociety.dk/wp-content/themes/hello-elementor-child/assets/js/rotate.js?ver=1789482012

js robertassociety.dk collected 2026-10-07 20:53:33 UTC 1,775 bytes, 61 lines download raw bytes

1jQuery(document).ready(function ($) {
2  let timeout;
3
4  $(window).on("scroll", function () {
5    clearTimeout(timeout);
6
7    timeout = setTimeout(function () {
8      var rotation = $(window).scrollTop() * 0.05; // adjust speed
9      if ($("#badge-rotate").length) {
10        $("#badge-rotate").css("transform", "rotate(" + rotation + "deg)");
11      }
12    }, 10); // delay in ms (adjust as needed)
13  });
14});
15
16/*===============================================
17=          Header scrolled class           =
18===============================================*/
19
20jQuery(function ($) {
21  const badgeWrapper = document.querySelector("#badgewrappers");
22  const badgeRotate = document.querySelector("#badge-rotate");
23  const badgeText = document.querySelector("#text-box");
24  const removeMenuButton = document.querySelector("#close-btn");
25
26  if (badgeWrapper && badgeRotate && badgeText) {
27    if (window.innerWidth > 767) {
28      badgeRotate.addEventListener("mouseenter", () => {
29        badgeText.classList.add("active");
30      });
31
32      badgeWrapper.addEventListener("mouseleave", () => {
33        badgeText.classList.remove("active");
34      });
35    }
36
37    if (window.innerWidth <= 767) {
38      badgeRotate.addEventListener("click", () => {
39        badgeText.classList.add("active");
40      });
41
42      if (removeMenuButton) {
43        removeMenuButton.addEventListener("click", (e) => {
44          e.stopPropagation();
45          badgeText.classList.remove("active");
46        });
47      }
48    }
49
50    // AUTO OPEN/CLOSE LOGIC
51    if (badgeText.classList.contains("open-auto")) {
52      setTimeout(() => {
53        badgeText.classList.add("active");
54
55        setTimeout(() => {
56          badgeText.classList.remove("active");
57        }, 10000); // 10 sek
58      }, 3000); // 3 sek
59    }
60  }
61});

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.