sfc-utils 1.4.150 → 1.4.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/helpers/utilfunctions.mjs +11 -0
- package/nav2.js +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,17 @@ function appendLayoutScripts(isEmbedded, isAdRemoved, marketKey, category) {
|
|
|
22
22
|
// React Helmet is actually terrible and runs these scripts twice, so we are including them async ourselves
|
|
23
23
|
// Run analytics and resizing scripts right away so we take care of that
|
|
24
24
|
if (!isEmbedded) {
|
|
25
|
+
// Google Tag Manager
|
|
26
|
+
(function (w, d, s, l, i) {
|
|
27
|
+
w[l] = w[l] || [];
|
|
28
|
+
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
|
|
29
|
+
var f = d.getElementsByTagName(s)[0],
|
|
30
|
+
j = d.createElement(s),
|
|
31
|
+
dl = l != "dataLayer" ? "&l=" + l : "";
|
|
32
|
+
j.async = true;
|
|
33
|
+
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
|
|
34
|
+
f.parentNode.insertBefore(j, f);
|
|
35
|
+
})(window, document, "script", "dataLayer", "GTM-P38VLD8M");
|
|
25
36
|
// Add new md5 script
|
|
26
37
|
let script = document.createElement("script");
|
|
27
38
|
script.type = "text/javascript";
|
package/nav2.js
CHANGED
|
@@ -149,7 +149,7 @@ let getNav2 = function (meta, urlAdd, forceColor, navLink, navArray) {
|
|
|
149
149
|
rightBlock =
|
|
150
150
|
`
|
|
151
151
|
<a id="nav2-sub-box" class="hnp-signin" style="margin: 0; font-weight: 700;" href="/realm">
|
|
152
|
-
<span>Sign
|
|
152
|
+
<span>Sign in</span>
|
|
153
153
|
</a>
|
|
154
154
|
<span style="font-size: 14px; padding: 2px 0 2px;">or</span>` + rightBlock;
|
|
155
155
|
|