PageSourceSearch

https://inlogic.dk/wp-content/themes/hello-elementor-child/assets/js/scripts.js?ver=1757570066

js inlogic.dk collected 2026-10-01 12:31:22 UTC 2,553 bytes, 77 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3// Show video consent text if Cookieyes blocks video
4  setTimeout(function () {
5    $('.elementor-video').text('For at se dette indhold skal du acceptere brugen af cookies.');
6  }, 3000);
7
8  // Sliding menu function
9  // $(".menu-item-has-children").on("click", function () {
10  //   $(".menu-item-has-children").removeClass("open");
11  //   $(this).addClass("open");
12  //   $("ul.menu").addClass("open");
13  //   $(".full-screen-menu").addClass("open-wide");
14  // });
15
16});
17
18
19/* Control the Elementor Tabs from the URL
20* Code from https://element.how/elementor-open-specific-tab-toggle-accordion/
21* Copyright 2023 Element.how
22* Updated 2023/12/05
23*/
24window.addEventListener('load', () => {
25setTimeout(function () {
26
27let scrollOffset = 100; /* scroll offset from the top of title */
28
29const tabsAccordionToggleTitles = document.querySelectorAll('.e-n-accordion-item-title, .e-n-tab-title, .elementor-tab-title');
30
31const clickTitleWithAnchor = (anchor) => {
32tabsAccordionToggleTitles.forEach(title => {
33if (title.querySelector(`#${anchor}`) != null || title.id === anchor || (title.closest('details') && title.closest('details').id === anchor)) {
34if (title.getAttribute('aria-expanded') !== 'true' && !title.classList.contains('elementor-active')) title.click();
35let timing = 0;
36let scrollTarget = title;
37if (getComputedStyle(title.closest('.elementor-element')).getPropertyValue('--n-tabs-direction') == 'row') scrollTarget = title.closest('.elementor-element');
38if (title.closest('.e-n-accordion, .elementor-accordion-item, .elementor-toggle-item')) {
39timing = 400;
40}
41setTimeout(function () {
42jQuery('html, body').animate({
43scrollTop: jQuery(scrollTarget).offset().top - scrollOffset,
44}, 'slow');
45}, timing);
46}
47});
48};
49
50document.addEventListener('click', (event) => {
51if (event.target.closest('a') && event.target.closest('a').href.includes('#')) {
52const anchor = extractAnchor(event.target.closest('a').href);
53if (anchor && isAnchorInTitles(anchor, tabsAccordionToggleTitles)) {
54event.preventDefault();
55clickTitleWithAnchor(anchor);
56}
57}
58});
59
60const currentAnchor = extractAnchor(window.location.href);
61if (currentAnchor) {
62clickTitleWithAnchor(currentAnchor);
63}
64
65function extractAnchor(url) {
66const match = url.match(/#([^?]+)/);
67return match ? match[1] : null;
68};
69
70function isAnchorInTitles(anchor, titles) {
71return Array.from(titles).some(title => {
72return title.querySelector(`#${anchor}`) !== null || title.id === anchor || (title.closest('details') && title.closest('details').id === anchor);
73});
74};
75
76}, 300);
77});

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.