Skip to content

Commit c118abe

Browse files
author
Sachin Maheshwari
committed
jira-palt-380 GTM code deployment
1 parent 2e9d704 commit c118abe

File tree

1 file changed

+37
-24
lines changed

1 file changed

+37
-24
lines changed

web-assets/auth0/prod-tenant/universal-login.html

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="utf-8">
66
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
77
<title>Sign In with Topcoder</title>
8-
<link rel="shortcut icon" type="image/png" href="https://www.topcoder.com/favicon.ico"/>
8+
<link rel="shortcut icon" type="image/png" href="https://www.topcoder.com/favicon.ico" />
99
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
1010
<link rel="preconnect" href="https://fonts.gstatic.com">
1111
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
@@ -24,8 +24,17 @@
2424
}
2525
</script>
2626

27+
<!-- Google Tag Manager -->
28+
<script>(function (w, d, s, l, i) {
29+
w[l] = w[l] || []; w[l].push({
30+
'gtm.start':
31+
new Date().getTime(), event: 'gtm.js'
32+
}); var f = d.getElementsByTagName(s)[0],
33+
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
34+
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
35+
})(window, document, 'script', 'dataLayer', 'GTM-MXXQHG8');</script>
36+
<!-- End Google Tag Manager -->
2737
</head>
28-
2938
<body>
3039
<div id='wrapper-container' class='page-wrapper'>
3140
<div class='row'>
@@ -179,7 +188,7 @@
179188
socialButtonStyle: 'small'
180189
},
181190
tc_standard: {
182-
allowedConnections: ['TC-User-Database', 'github', 'google-oauth2', 'wipro-adfs', 'Verified-User-Database'],
191+
allowedConnections: ['TC-User-Database', 'github', 'google-oauth2', 'wipro-adfs', 'wipro-azuread', 'Verified-User-Database'],
183192
theme: {
184193
logo: 'https://i.imgur.com/IY6TVjY.png',
185194
primaryColor: '#137d60'
@@ -198,7 +207,7 @@
198207
}
199208
},
200209
aha: {
201-
allowedConnections: ['TC-User-Database', 'github', 'google-oauth2', 'wipro-adfs', 'Verified-User-Database'],
210+
allowedConnections: ['TC-User-Database', 'github', 'google-oauth2', 'wipro-adfs', 'wipro-azuread', 'Verified-User-Database'],
202211
theme: {
203212
logo: 'https://i.imgur.com/CEU3plH.png',
204213
primaryColor: '#07a8f2'
@@ -386,22 +395,22 @@
386395
updateSignUp(regSource);
387396
mediaQuery.addListener(updateSignUp);
388397
try {
389-
const firstNameDiv =
390-
document.getElementById("1-firstName").parentNode.parentNode;
391-
const lastNameDiv =
392-
document.getElementById("1-lastName").parentNode.parentNode;
393-
const emailDiv = document.getElementById("1-email").parentNode.parentNode;
394-
emailDiv.parentNode.insertBefore(firstNameDiv, emailDiv);
395-
emailDiv.parentNode.insertBefore(lastNameDiv, emailDiv);
396-
try {
397-
document.getElementsByName("password")[0].placeholder = "Create a Password";
398-
//document.getElementById("1-country").value = "Select your country (current location)";
399-
} catch (e) {
400-
console.log("Error occured in changing placeholder text", e);
401-
}
398+
const firstNameDiv =
399+
document.getElementById("1-firstName").parentNode.parentNode;
400+
const lastNameDiv =
401+
document.getElementById("1-lastName").parentNode.parentNode;
402+
const emailDiv = document.getElementById("1-email").parentNode.parentNode;
403+
emailDiv.parentNode.insertBefore(firstNameDiv, emailDiv);
404+
emailDiv.parentNode.insertBefore(lastNameDiv, emailDiv);
405+
try {
406+
document.getElementsByName("password")[0].placeholder = "Create a Password";
407+
//document.getElementById("1-country").value = "Select your country (current location)";
402408
} catch (e) {
403-
console.log("Error occured in form re-ordering", e);
409+
console.log("Error occured in changing placeholder text", e);
404410
}
411+
} catch (e) {
412+
console.log("Error occured in form re-ordering", e);
413+
}
405414
});
406415

407416
lock.show();
@@ -472,11 +481,15 @@
472481

473482
</script>
474483
<script>
475-
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="ti8hUmZ1P9BJ73vUVM3CEe0iJCuvzMCY";analytics.SNIPPET_VERSION="4.13.2";
476-
analytics.load("ti8hUmZ1P9BJ73vUVM3CEe0iJCuvzMCY");
477-
analytics.page();
478-
}}();
479-
</script>
484+
!function () {
485+
var analytics = window.analytics = window.analytics || []; if (!analytics.initialize) if (analytics.invoked) window.console && console.error && console.error("Segment snippet included twice."); else {
486+
analytics.invoked = !0; analytics.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware"]; analytics.factory = function (e) { return function () { var t = Array.prototype.slice.call(arguments); t.unshift(e); analytics.push(t); return analytics } }; for (var e = 0; e < analytics.methods.length; e++) { var key = analytics.methods[e]; analytics[key] = analytics.factory(key) } analytics.load = function (key, e) { var t = document.createElement("script"); t.type = "text/javascript"; t.async = !0; t.src = "https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js"; var n = document.getElementsByTagName("script")[0]; n.parentNode.insertBefore(t, n); analytics._loadOptions = e }; analytics._writeKey = "ti8hUmZ1P9BJ73vUVM3CEe0iJCuvzMCY"; analytics.SNIPPET_VERSION = "4.13.2";
487+
analytics.load("ti8hUmZ1P9BJ73vUVM3CEe0iJCuvzMCY");
488+
analytics.page();
489+
}
490+
}();
491+
</script>
492+
480493
</body>
481494

482-
</html>
495+
</html>

0 commit comments

Comments
 (0)