Browse code

Update

Benjamin Roth authored on17/03/2023 09:52:56
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+document.addEventListener("DOMContentLoaded", function (event) {
2
+    if ($(".ce_rsce_sitemap").length) {
3
+        $($(".mm_dropdown a")).each(function (index) {
4
+            var originalUrl = window.location.pathname;
5
+            if (originalUrl.length > 1) {
6
+                originalUrl = window.location.pathname.substring(1);
7
+            }
8
+
9
+            if ($(this).attr("href") == originalUrl) {
10
+                $(this).addClass("active");
11
+            }
12
+        });
13
+    }
14
+});
0 15
\ No newline at end of file