PageSourceSearch

https://www.comic-time.de/public/theme/javascripts/system/Global/s…?bust=e1e49dd6764f1769ceafa24d18573fb8

js comic-time.de collected 2026-09-25 08:00:19 UTC 3,745 bytes, 106 lines download raw bytes

1$(function() {
2  $("[data-toggle=menu]").on("click", function() {
3    if (!$("body").hasClass("show-menu")) {
4      $("#meco-overlay-menu").css("display", "block");
5      setTimeout(function() {
6        $("body").addClass("show-menu");
7      }, 50);
8      if (!$("#meco-overlay-menu #categories").length) {
9        $("#meco-overlay-menu").append($("#categories"));
10      }
11      if ($("#meco-overlay-menu #categories .navbar-categories-left").length > 1) {
12        $("#meco-overlay-menu #categories .navbar-categories-left:last").remove();
13      }
14    } else {
15      $("body").removeClass("show-menu");
16      setTimeout(function() {
17        $("#meco-overlay-menu").css("display", "none");
18      }, 500);
19      if (!$("#header #categories").length) {
20        $("#header").append($("#categories"));
21      }
22    }
23  });
24  function open_cart(e) {
25    e.preventDefault();
26    if (!$("body").hasClass("show-cart") && $("#cart-container:visible").length < 1) {
27      window.scrollTo(0, 0);
28      $("#offcanvas-cart-overlay").css("display", "block");
29      setTimeout(function() {
30        $("body").addClass("show-cart");
31      }, 50);
32    } else {
33      $("body").removeClass("show-cart");
34      $("a[data-toggle='cart']:visible").first().focus();
35      setTimeout(function() {
36        $("#offcanvas-cart-overlay").css("display", "none");
37      }, 500);
38    }
39    if (e.data.auto_close) {
40      setTimeout(close_cart, 3e3);
41    }
42  }
43  function close_cart() {
44    $("body").removeClass("show-cart");
45    $("a[data-toggle='cart']:visible").first().focus();
46    setTimeout(function() {
47      $("#offcanvas-cart-overlay").css("display", "none");
48    }, 500);
49  }
50  $("[data-toggle=cart]").on("click", { auto_close: false }, open_cart);
51  $("#offcanvas-cart-overlay").on("click", close_cart);
52  $(document).on("keyup", function(e) {
53    e.preventDefault();
54    e.stopPropagation();
55    if ((e.keyCode === 9 || e.keyCode === 27) && $(e.target).closest("#offcanvas-cart-content").length === 0) {
56      if ($("body").hasClass("show-cart") && $("#cart-container:visible").length === 0) {
57        close_cart();
58      }
59    }
60  });
61  $("body").on("CART_DROPDOWN_OPEN", { auto_close: true }, open_cart);
62  setTimeout(function() {
63    $("body").trigger("CART_DROPDOWN_UPDATE");
64  }, 1500);
65  if (!!navigator.userAgent.match(/Trident.*rv\:11\./)) {
66    $("body").addClass("ie11");
67  }
68  $('[data-wrap="false"]').each(function(index, carousel) {
69    $(carousel).on("slid.bs.carousel", function() {
70      let leftCarouselArrow = $(carousel).find(".left.carousel-control");
71      let rightCarouselArrow = $(carousel).find(".right.carousel-control");
72      let fistCarouselSlide = $(carousel).find(".item:first-child");
73      if (fistCarouselSlide.hasClass("active")) {
74        $(leftCarouselArrow).addClass("disabled");
75      } else {
76        $(leftCarouselArrow).removeClass("disabled");
77      }
78      let lastCarouselSlide = $(carousel).find(".item:last-child");
79      if (lastCarouselSlide.hasClass("active")) {
80        $(rightCarouselArrow).addClass("disabled");
81      } else {
82        $(rightCarouselArrow).removeClass("disabled");
83      }
84    });
85  });
86});
87$(function() {
88  $(document).on("click", ".js-garan-open", function(event) {
89    event.preventDefault();
90    var dialog = $(this).closest(".gm-garan-buybox, .gm-garan-checkout").find(".gm-garan-dialog")[0];
91    if (dialog && typeof dialog.showModal === "function") {
92      dialog.showModal();
93    }
94  });
95  $(document).on("click", ".js-garan-close", function() {
96    var dialog = $(this).closest(".gm-garan-dialog")[0];
97    if (dialog) {
98      dialog.close();
99    }
100  });
101  $(document).on("click", ".gm-garan-dialog", function(event) {
102    if (event.target === this) {
103      this.close();
104    }
105  });
106});

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.