Skip to content

Commit fa86148

Browse files
Resolve cookieyes issue (#1529)
## Overview Resolve cookieyes issue
1 parent 9dea992 commit fa86148

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

reference/python/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ plugins:
189189
# https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.assets_exclude
190190
# Disable downloading of external assets for specific origins
191191
- img.shields.io/*
192+
- cdn-cookieyes.com/*
192193
links_attr_map:
193194
# https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.links_attr_map
194195
# Open all external links in a new tab

reference/python/overrides/main.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,24 @@
1111
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
1212
})(window, document, 'script', 'dataLayer', 'GTM-MBBX68ST');</script>
1313
<!-- End Google Tag Manager -->
14-
<!-- Start cookieyes banner -->
15-
<script id="cookieyes" type="text/javascript" src="https://cdn-cookieyes.com/client_data/d2e859934c4309be824ea8bb/script.js"></script>
16-
<!-- End cookieyes banner -->
1714
{% endblock %}
1815

1916
{# {% block announce %}
2017
x
2118
{% endblock %} #}
2219

2320
{% block extrahead %}
21+
<!-- Start cookieyes banner -->
22+
<script>
23+
(function() {
24+
var script = document.createElement('script');
25+
script.id = 'cookieyes';
26+
script.type = 'text/javascript';
27+
script.src = 'https://cdn-cookieyes.com/client_data/d2e859934c4309be824ea8bb/script.js';
28+
document.head.appendChild(script);
29+
})();
30+
</script>
31+
<!-- End cookieyes banner -->
2432
<style>
2533
@import url("https://fonts.googleapis.com/css2?family=Public+Sans&display=swap");
2634
:root {

0 commit comments

Comments
 (0)