@everymatrix/casino-header-controller 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
package/index.html
CHANGED
package/package.json
CHANGED
@@ -76,11 +76,25 @@
|
|
76
76
|
case 'login':
|
77
77
|
loginActive = true;
|
78
78
|
window.postMessage({type: 'OpenLoginRegisterModal', transition: 'Login' }, window.location.href);
|
79
|
+
|
80
|
+
//Analytics event
|
81
|
+
if(typeof gtag == 'function'){
|
82
|
+
gtag('event', 'OpenLoginModal', {
|
83
|
+
'context': 'HeaderController'
|
84
|
+
});
|
85
|
+
}
|
79
86
|
break;
|
80
87
|
|
81
88
|
case 'register':
|
82
89
|
loginActive = false;
|
83
90
|
window.postMessage({type: 'OpenLoginRegisterModal', transition: 'Register'}, window.location.href);
|
91
|
+
|
92
|
+
//Analytics event
|
93
|
+
if(typeof gtag == 'function'){
|
94
|
+
gtag('event', 'OpenRegisterModal', {
|
95
|
+
'context': 'HeaderController'
|
96
|
+
});
|
97
|
+
}
|
84
98
|
break;
|
85
99
|
|
86
100
|
case 'lobby':
|
@@ -93,6 +107,13 @@
|
|
93
107
|
|
94
108
|
case 'deposit':
|
95
109
|
window.postMessage({type: 'GoToDeposit'}, window.location.href);
|
110
|
+
|
111
|
+
//Analytics event
|
112
|
+
if(typeof gtag == 'function'){
|
113
|
+
gtag('event', 'GoToDeposit', {
|
114
|
+
'context': 'HeaderController'
|
115
|
+
});
|
116
|
+
}
|
96
117
|
break;
|
97
118
|
|
98
119
|
case 'language':
|
@@ -253,9 +274,7 @@
|
|
253
274
|
.then((data:any) => {
|
254
275
|
cssFile.innerHTML = data
|
255
276
|
|
256
|
-
|
257
|
-
setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
|
258
|
-
}
|
277
|
+
setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
|
259
278
|
});
|
260
279
|
}
|
261
280
|
|
@@ -275,8 +294,8 @@
|
|
275
294
|
$: session && setSession();
|
276
295
|
$: lang && setActiveLanguage();
|
277
296
|
$: cmsendpoint && lang && languageslist && userroles && initialLoad();
|
278
|
-
$: clientstyling && setClientStyling();
|
279
|
-
$: clientstylingurl && setClientStylingURL();
|
297
|
+
$: clientstyling && customStylingContainer && setClientStyling();
|
298
|
+
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
280
299
|
</script>
|
281
300
|
|
282
301
|
{#if isLoggedIn}
|
@@ -356,7 +375,10 @@
|
|
356
375
|
{endpoint}
|
357
376
|
{lang}
|
358
377
|
location="headerMain"
|
359
|
-
{showsubgroups}
|
378
|
+
{showsubgroups}
|
379
|
+
{clientstyling}
|
380
|
+
{clientstylingurl}
|
381
|
+
/>
|
360
382
|
{/if}
|
361
383
|
</nav>
|
362
384
|
<div class="HeaderTopActions" part="HeaderItemsMenu">
|
@@ -454,7 +476,10 @@
|
|
454
476
|
activeindex={activeIndex}
|
455
477
|
location="headerMain"
|
456
478
|
{endpoint}
|
457
|
-
{lang}
|
479
|
+
{lang}
|
480
|
+
{clientstyling}
|
481
|
+
{clientstylingurl}
|
482
|
+
/>
|
458
483
|
{/if}
|
459
484
|
</nav>
|
460
485
|
<div class="HeaderTopActions" part="HeaderTopActions">
|
@@ -480,7 +505,7 @@
|
|
480
505
|
{/if}
|
481
506
|
{/if}
|
482
507
|
|
483
|
-
<casino-hamburger-menu menuitemsurl={hamburgerURL} {activecategory} {lang} {languageslist}></casino-hamburger-menu>
|
508
|
+
<casino-hamburger-menu menuitemsurl={hamburgerURL} {activecategory} {lang} {languageslist} {clientstyling} {clientstylingurl}></casino-hamburger-menu>
|
484
509
|
|
485
510
|
<style lang="scss">
|
486
511
|
|