@everymatrix/casino-footer-v2 0.0.369 → 0.0.371
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/dist/casino-footer-v2.js +172 -174
- package/dist/casino-footer-v2.js.map +1 -1
- package/index.html +17 -16
- package/package.json +2 -2
- package/src/CasinoFooterV2.svelte +39 -36
package/index.html
CHANGED
@@ -43,22 +43,23 @@
|
|
43
43
|
padding: 10px 20px;
|
44
44
|
}
|
45
45
|
</style>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
46
|
+
|
47
|
+
<casino-footer-v2
|
48
|
+
endpoint="http://localhost:3005/apijson"
|
49
|
+
env="local"
|
50
|
+
languageselectorenabled="true"
|
51
|
+
languagelist="de, en, sl, pl, hr, hu, it, sr, pt"
|
52
|
+
languagedisplaytype="name"
|
53
|
+
sessiontimerenabled="false"
|
54
|
+
session="false"
|
55
|
+
userid=""
|
56
|
+
panicbuttonenabled="false"
|
57
|
+
clockenabled="true"
|
58
|
+
clocksecondsenabled="true"
|
59
|
+
clockcustomformat="false"
|
60
|
+
userendpoint="https://betathome-com-stage-api.stage.norway.everymatrix.com/v1"
|
61
|
+
lang="en"
|
62
|
+
></casino-footer-v2>
|
62
63
|
|
63
64
|
</body>
|
64
65
|
</html>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-footer-v2",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.371",
|
4
4
|
"main": "dist/casino-footer-v2.js",
|
5
5
|
"svelte": "src/index.ts",
|
6
6
|
"scripts": {
|
@@ -36,5 +36,5 @@
|
|
36
36
|
"publishConfig": {
|
37
37
|
"access": "public"
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "a65da5df7804bc4424b6c9a5564a0ad17c001dc2"
|
40
40
|
}
|
@@ -23,7 +23,7 @@
|
|
23
23
|
export let clockcustomformat:string = ''; // "false" for defaulting to our format
|
24
24
|
export let clocktext:string = 'Time:'; // string preceding clock
|
25
25
|
|
26
|
-
export let languageselectorenabled = 'true';
|
26
|
+
export let languageselectorenabled:string = 'true';
|
27
27
|
export let languageslist:string = 'en, ro';
|
28
28
|
export let languagedisplaytype = 'name';
|
29
29
|
export let session:string = '';
|
@@ -32,9 +32,10 @@
|
|
32
32
|
export let panicbuttonenabled:string = 'true';
|
33
33
|
export let sessiontimerenabled:string = 'true'; // 'true' to enable, anything to disable
|
34
34
|
export let grouplink:string = 'true';
|
35
|
+
export let baseurl:string = '';
|
35
36
|
|
36
37
|
let userAgent:string = window.navigator.userAgent;
|
37
|
-
let isOnMobile = isMobile(userAgent);
|
38
|
+
let isOnMobile:boolean = isMobile(userAgent);
|
38
39
|
let gameVendorsLinksTitle:string = '';
|
39
40
|
let gameVendorsRepeater:Array<Object> = [];
|
40
41
|
let paymentLinksTitle:string = '';
|
@@ -63,10 +64,10 @@
|
|
63
64
|
let languages:Array<object> = [];
|
64
65
|
|
65
66
|
let time:string;
|
66
|
-
let refreshRate:
|
67
|
+
let refreshRate:number;
|
67
68
|
|
68
69
|
let languagesArray:Array<string> = [];
|
69
|
-
let languageDrawer:
|
70
|
+
let languageDrawer:HTMLElement;
|
70
71
|
let languageDisplayName:string = '';
|
71
72
|
let currentLanguageFlag:string = '';
|
72
73
|
let languagePackLoaded:boolean = false;
|
@@ -84,8 +85,6 @@
|
|
84
85
|
addNewMessages(item, CasinoFooterTranslations[item]);
|
85
86
|
});
|
86
87
|
|
87
|
-
|
88
|
-
// needed for session timer
|
89
88
|
const setSession = ():void => {
|
90
89
|
checkSession(userendpoint, session).then((res:any) => {
|
91
90
|
sessionID = res.Guid;
|
@@ -98,7 +97,7 @@
|
|
98
97
|
});
|
99
98
|
}
|
100
99
|
|
101
|
-
const setSessionTimer = (sessionData):void => {
|
100
|
+
const setSessionTimer = (sessionData:any):void => {
|
102
101
|
// using Date instead of moment because they recommend in their docs to stop using it for new projects
|
103
102
|
const loginTime = new Date(sessionData.Login);
|
104
103
|
const timezoneOffsetHours = new Date().getTimezoneOffset() / 60;
|
@@ -225,7 +224,6 @@
|
|
225
224
|
}
|
226
225
|
}
|
227
226
|
|
228
|
-
|
229
227
|
const setClientStyling = ():void => {
|
230
228
|
let sheet = document.createElement('style');
|
231
229
|
sheet.innerHTML = clientstyling;
|
@@ -347,7 +345,7 @@
|
|
347
345
|
{#if category.key}
|
348
346
|
<p class="FooterTitle">{category.key}</p>
|
349
347
|
{/if}
|
350
|
-
<casino-footer-section helperflag="1" clientstyling={customStyling} category={category.key} target={target} displaycolumn="true"></casino-footer-section>
|
348
|
+
<casino-footer-section helperflag="1" clientstyling={customStyling} category={category.key} target={target} displaycolumn="true" {baseurl}></casino-footer-section>
|
351
349
|
{/each}
|
352
350
|
{/if}
|
353
351
|
</div>
|
@@ -360,7 +358,7 @@
|
|
360
358
|
{#if gameVendorsLinksTitle}
|
361
359
|
<p class="FooterTitle">{gameVendorsLinksTitle}</p>
|
362
360
|
{/if}
|
363
|
-
<casino-footer-section vendorflag="1" clientstyling={customStyling} target={target}></casino-footer-section>
|
361
|
+
<casino-footer-section vendorflag="1" clientstyling={customStyling} target={target} {baseurl}></casino-footer-section>
|
364
362
|
</div>
|
365
363
|
</div>
|
366
364
|
{/if}
|
@@ -372,7 +370,7 @@
|
|
372
370
|
{#if paymentLinksTitle}
|
373
371
|
<p class="FooterTitle">{paymentLinksTitle}</p>
|
374
372
|
{/if}
|
375
|
-
<casino-footer-section paymentflag="1" clientstyling={customStyling} target={target}></casino-footer-section>
|
373
|
+
<casino-footer-section paymentflag="1" clientstyling={customStyling} target={target} {baseurl}></casino-footer-section>
|
376
374
|
</div>
|
377
375
|
</div>
|
378
376
|
{/if}
|
@@ -395,7 +393,7 @@
|
|
395
393
|
{#if licensesLinksTitle}
|
396
394
|
<p class="FooterTitle">{licensesLinksTitle}</p>
|
397
395
|
{/if}
|
398
|
-
<casino-footer-section licenseFlag="1" clientstyling={customStyling} target={target}></casino-footer-section>
|
396
|
+
<casino-footer-section licenseFlag="1" clientstyling={customStyling} target={target} {baseurl}></casino-footer-section>
|
399
397
|
</div>
|
400
398
|
<!-- start detailed licenses section -->
|
401
399
|
<div class="LicenseDesc">
|
@@ -417,7 +415,7 @@
|
|
417
415
|
{#if sponsorsLinksTitle}
|
418
416
|
<p class="FooterTitle">{sponsorsLinksTitle}</p>
|
419
417
|
{/if}
|
420
|
-
<casino-footer-section sponsorflag="1" clientstyling={customStyling} target={target}></casino-footer-section>
|
418
|
+
<casino-footer-section sponsorflag="1" clientstyling={customStyling} target={target} {baseurl}></casino-footer-section>
|
421
419
|
</div>
|
422
420
|
{/if}
|
423
421
|
</div>
|
@@ -430,7 +428,7 @@
|
|
430
428
|
{#if socialLinksTitle}
|
431
429
|
<p class="FooterTitle">{socialLinksTitle}</p>
|
432
430
|
{/if}
|
433
|
-
<casino-footer-section socialflag="1" clientstyling={customStyling} target={target}></casino-footer-section>
|
431
|
+
<casino-footer-section socialflag="1" clientstyling={customStyling} target={target} {baseurl}></casino-footer-section>
|
434
432
|
</div>
|
435
433
|
{/if}
|
436
434
|
<!-- end social section -->
|
@@ -448,18 +446,18 @@
|
|
448
446
|
|
449
447
|
<!-- Custom dropdown in order to be able to display country flags -->
|
450
448
|
<div class="LanguageSelectorOverlay">
|
449
|
+
<div bind:this={languageDrawer} class="LanguageDrawer hidden">
|
450
|
+
<ul id="LanguageList">
|
451
|
+
{#each languages as language}
|
452
|
+
<li class="OverlayLanguageOption" data-lang={language.code} on:click={overlayOptionTrigger}><img class="LanguageFlag" src={language.flag_icon_editable}><a href="javascript:void(0)"><span>{language.name}</span></a></li>
|
453
|
+
{/each}
|
454
|
+
</ul>
|
455
|
+
</div>
|
451
456
|
<button class="DrawerButton" value="{selectedLanguage}" on:click={toggleLanguageDrawer}><img class="LanguageFlag" src={currentLanguageFlag}>{languageDisplayName}
|
452
457
|
<svg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg">
|
453
458
|
<path opacity="0.4" d="M0.94 0L4.00067 3.05467L7.06 0L8 0.940667L4.00067 4.94133L0 0.940667L0.94 0Z" fill="black"/>
|
454
|
-
|
459
|
+
</svg>
|
455
460
|
</button>
|
456
|
-
<div bind:this={languageDrawer} class="LanguageDrawer hidden">
|
457
|
-
<ul id="LanguageList">
|
458
|
-
{#each languages as language}
|
459
|
-
<li class="OverlayLanguageOption" data-lang={language.code} on:click={overlayOptionTrigger}><img class="LanguageFlag" src={language.flag_icon_editable}><a href="javascript:void(0)"><span>{language.name}</span></a></li>
|
460
|
-
{/each}
|
461
|
-
</ul>
|
462
|
-
</div>
|
463
461
|
</div>
|
464
462
|
</div>
|
465
463
|
</div>
|
@@ -491,8 +489,9 @@
|
|
491
489
|
}
|
492
490
|
|
493
491
|
.Footer {
|
494
|
-
|
495
|
-
|
492
|
+
background-color: $color-white;
|
493
|
+
display: flex;
|
494
|
+
flex-direction: row;
|
496
495
|
}
|
497
496
|
|
498
497
|
.FooterSideMobile {
|
@@ -504,7 +503,6 @@
|
|
504
503
|
height: 100%;
|
505
504
|
display: flex;
|
506
505
|
flex-direction: column;
|
507
|
-
position: absolute;
|
508
506
|
background-color: $color-white;
|
509
507
|
.FooterTitle {
|
510
508
|
font-family: 'Roboto Condensed';
|
@@ -601,6 +599,7 @@
|
|
601
599
|
|
602
600
|
.LanguageSelectorOverlay {
|
603
601
|
position: relative;
|
602
|
+
font-size: 12px;
|
604
603
|
}
|
605
604
|
|
606
605
|
.DrawerButton {
|
@@ -620,19 +619,20 @@
|
|
620
619
|
|
621
620
|
border-radius: 0px;
|
622
621
|
border: 0;
|
622
|
+
position: relative;
|
623
623
|
}
|
624
624
|
|
625
625
|
.LanguageDrawer {
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
626
|
+
position:absolute;
|
627
|
+
background: $color-white;
|
628
|
+
width: 150px;
|
629
|
+
bottom: 30px;
|
630
|
+
padding: 6px 0;
|
631
|
+
left: 3.9px;
|
632
632
|
|
633
|
-
|
634
|
-
|
635
|
-
|
633
|
+
&.hidden {
|
634
|
+
display: none;
|
635
|
+
}
|
636
636
|
}
|
637
637
|
|
638
638
|
.LanguageFlag {
|
@@ -644,11 +644,14 @@
|
|
644
644
|
}
|
645
645
|
|
646
646
|
.OverlayLanguageOption {
|
647
|
+
justify-content: center;
|
647
648
|
list-style: none;
|
648
|
-
width: 24px;
|
649
649
|
position: relative;
|
650
|
+
height: 35px;
|
650
651
|
padding: 0;
|
651
|
-
justify-content:
|
652
|
+
justify-content: space-between;
|
653
|
+
display: flex;
|
654
|
+
flex-direction: row;
|
652
655
|
|
653
656
|
img {
|
654
657
|
position: absolute;
|