PageSourceSearch

https://filmundversammeln.net/modules/contrib/gdpr_compliance/assets/js/popup.js?tlropv

js filmundversammeln.net collected 2026-10-08 20:21:49 UTC 1,371 bytes, 47 lines download raw bytes

1/**
2 * @file
3 * Gdpr cookie agreement js.
4 */
5
6(function ($, Drupal, cookies) {
7  Drupal.behaviors.gdpr_compliance = {
8    attach: function (context, settings) {
9      $(document).ready(function () {
10        var $gdprAgree = cookies.get("gdpr_compliance");
11        var $gdprPopup = $("#gdpr-popup");
12
13        if ($gdprAgree !== "agreed") {
14          $gdprPopup.show();
15        }
16        $("#gdpr-agree").click(function () {
17          $gdprPopup.fadeOut();
18          cookies.set("gdpr_compliance", "agreed", { path: "/", expires: 30 });
19        });
20        $("#gdpr-find-more").click(function () {
21          cookies.set("gdpr_compliance", "morelink", {
22            path: "/",
23            expires: 30,
24          });
25          // Go to rules page.
26          var $path = $(this).data("morelink");
27          if ($path.substring(0, 4) === "http") {
28            window.open($path);
29          }
30          if ($path.substring(0, 1) === "/") {
31            window.open(window.location.origin + $path);
32          }
33        });
34        $("#gdpr-clear-cookie").click(function () {
35          for (var c in cookies.get()) {
36            cookies.remove(c, { path: "/" });
37          }
38          if ($(this).data("done")) {
39            alert($(this).data("done"));
40          } else {
41            alert("ok");
42          }
43        });
44      });
45    },
46  };
47})(jQuery, Drupal, window.Cookies);

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.