PageSourceSearch

https://babilou-family.sg/modules/custom/babilou_didomi/assets/js/babilou_didomi.js?thdgt4

js babilou-family.sg collected 2026-09-29 10:05:58 UTC 3,003 bytes, 125 lines download raw bytes

1window.gdprAppliesGlobally = true;
2(function () {
3  function a(e) {
4    if (!window.frames[e]) {
5      if (document.body && document.body.firstChild) {
6        var t = document.body;
7        var n = document.createElement("iframe");
8        n.style.display = "none";
9        n.name = e;
10        n.title = e;
11        t.insertBefore(n, t.firstChild)
12      }
13      else {
14        setTimeout(function () {
15          a(e)
16        }, 5)
17      }
18    }
19  }
20
21  function e(n, r, o, c, s) {
22    function e(e, t, n, a) {
23      if (typeof n !== "function") {
24        return
25      }
26      if (!window[r]) {
27        window[r] = []
28      }
29      var i = false;
30      if (s) {
31        i = s(e, t, n)
32      }
33      if (!i) {
34        window[r].push({
35          command: e,
36          parameter: t,
37          callback: n,
38          version: a
39        })
40      }
41    }
42
43    e.stub = true;
44
45    function t(a) {
46      if (!window[n] || window[n].stub !== true) {
47        return
48      }
49      if (!a.data) {
50        return
51      }
52
53      var i = typeof a.data === "string";
54      var e;
55      try {
56        e = i ? JSON.parse(a.data) : a.data
57      }
58      catch (t) {
59        return
60      }
61
62      if (e[o]) {
63        var r = e[o];
64        window[n](r.command, r.parameter, function (e, t) {
65          var n = {};
66          n[c] = {
67            returnValue: e,
68            success: t,
69            callId: r.callId
70          };
71          a.source.postMessage(i ? JSON.stringify(n) : n, "*")
72        }, r.version)
73      }
74    }
75
76    if (typeof window[n] !== "function") {
77      window[n] = e;
78      if (window.addEventListener) {
79        window.addEventListener("message", t, false)
80      }
81      else {
82        window.attachEvent("onmessage", t)
83      }
84    }
85  }
86
87  e("__tcfapi", "__tcfapiBuffer", "__tcfapiCall", "__tcfapiReturn");
88  a("__tcfapiLocator");
89  (
90    function (e) {
91      var t = document.createElement("script");
92      t.id = "spcloader";
93      t.type = "text/javascript";
94      t.async = true;
95      t.src = "https://sdk.privacy-center.org/" + e + "/loader.js?target=" + document.location.hostname;
96      t.charset = "utf-8";
97      var n = document.getElementsByTagName("script")[0];
98      n.parentNode.insertBefore(t, n)
99    }
100  )("82e3b1e3-89dd-4a25-937a-674e52d6a3cb")
101})();
102
103
104/**window.didomiConfig = {
105  languages: {
106    enabled: ['en'], // List of languages that visitors can use (must be a
107                     // subset of the languages that we support)
108    default: 'en' // Default language to use if the visitor uses a language
109                  // that is not enabled
110  }
111};**/
vendor: 408 bytes, lines 111-125
111
112
113(function (w, d, s, l, i) {
114  w[l] = w[l] || [];
115  w[l].push({
116    'gtm.start':
117      new Date().getTime(), event: 'gtm.js'
118  });
119  var f = d.getElementsByTagName(s)[0],
120    j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
121  j.async = true;
122  j.src =
123    'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
124  f.parentNode.insertBefore(j, f);
125})(window, document, 'script', 'dataLayer', '
125GTM-5DKQNN6
vendor: 4 bytes, line 125
125');

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.