Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Merged

gtm #1357

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gulp/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const getConfig = prefix => ({
binary_style_img: 'image/binary-style',
elevio_script :
'<script>!function(e,l,v,i,o,n){e[i]||(e[i]={}),e[i].account_id=n;var g,h;g=l.createElement(v),g.type="text/javascript",g.async=1,g.src=o+n,h=l.getElementsByTagName(v)[0],h.parentNode.insertBefore(g,h);e[i].q=[];e[i].on=function(z,y){e[i].q.push([z,y])}}(window,document,"script","_elev","https://cdn.elev.io/sdk/bootloader/v4/elevio-bootloader.js?cid=","5bbc2de0b7365");</script>',
gtm_head : '<!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= \'https://www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); })(window,document,\'script\',\'dataLayer\',\'GTM-P97C2DZ\');</script> <!-- End Google Tag Manager -->',
gtm_iframe:
'<!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P97C2DZ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) -->',
});

const genHtml = min =>
Expand Down
2 changes: 2 additions & 0 deletions templates/bot.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
{{> bundle_css }}
<link rel="stylesheet" href="css/binary.css">
{{> bot_css }}
{{> gtm_head }}
</head>

<body>
Expand Down Expand Up @@ -175,6 +176,7 @@
<audio id="severe-error" src="sound/i-am-being-serious.ogg" autostart="false"></audio>
{{> bundle}} {{> bot}}
{{> elevio_script }}
{{> gtm_iframe }}
<div class="notifyjs-corner" style="bottom: 0px; right: 0px;"></div>
<div class="notifyjs-corner" style="bottom: 0px; left: 0px;"></div>
</body>
Expand Down
4 changes: 3 additions & 1 deletion templates/index.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{{> index_css }}
<link rel="stylesheet" href="css/binary.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gridle@2.0.48/css/grid-flex.css" integrity="sha256-J4p1c+K4tD3rnyfA0ztZpoQR0+mBhDTZ/J+YNOalc0k=" crossorigin="anonymous">
{{> gtm_head }}
</head>

<body>
Expand Down Expand Up @@ -51,6 +52,7 @@
</div>
</div>
<div id="footer"></div>
{{> index}}
{{> index}}
{{> gtm_iframe }}
</body>
</html>