@everymatrix/casino-game-page 0.0.290 → 0.0.293
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-game-page",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.293",
|
4
4
|
"main": "dist/casino-game-page.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": "5b7aee827d2cbc67a99e15775c630c6f9ddfbf43"
|
40
40
|
}
|
@@ -165,6 +165,10 @@
|
|
165
165
|
showModal = 'true';
|
166
166
|
break;
|
167
167
|
|
168
|
+
case 'OpenGameFrame':
|
169
|
+
showModal = 'true';
|
170
|
+
break;
|
171
|
+
|
168
172
|
case 'LaunchGameFrame':
|
169
173
|
openGameFrame(e.data.gameId, e.data.gameFunMode);
|
170
174
|
break;
|
@@ -401,10 +405,6 @@
|
|
401
405
|
}
|
402
406
|
}
|
403
407
|
|
404
|
-
const panicAction = ():void => {
|
405
|
-
window.postMessage({type: 'PanicButtonClicked'}, window.location.href);
|
406
|
-
}
|
407
|
-
|
408
408
|
const refreshTime = ():void => {
|
409
409
|
if (clockformat) {
|
410
410
|
time = moment().format(clockformat);
|
@@ -472,6 +472,7 @@
|
|
472
472
|
panicLoading = true;
|
473
473
|
|
474
474
|
if (timer >= 3) {
|
475
|
+
window.postMessage({type: 'PanicButtonClicked'}, window.location.href);
|
475
476
|
clearInterval(timerInterval)
|
476
477
|
}
|
477
478
|
}, 1000);
|
@@ -490,6 +491,7 @@
|
|
490
491
|
isOnNative = !!isNative(userAgent);
|
491
492
|
|
492
493
|
return () => {
|
494
|
+
removeEventsToDisplayedElements();
|
493
495
|
window.removeEventListener('resize', resizeHandler);
|
494
496
|
window.removeEventListener('message', messageHandler);
|
495
497
|
}
|
@@ -546,7 +548,7 @@
|
|
546
548
|
</div>
|
547
549
|
{#if haspanicbutton === "true"}
|
548
550
|
<div class="PanicSection {(getDevice(userAgent) !== 'PC') ? 'PanicSectionMobile' : ''}" part="PanicSection {(getDevice(userAgent) !== 'PC') ? 'PanicSectionMobile' : ''}">
|
549
|
-
<button class="PanicButton {(getDevice(userAgent) !== 'PC') ? 'PanicButtonMobile' : ''}" class:PanicButtonAnimation={panicLoading} part="PanicButton {(getDevice(userAgent) !== 'PC') ? 'PanicButtonMobile' : ''}" bind:this={panicButton}
|
551
|
+
<button class="PanicButton {(getDevice(userAgent) !== 'PC') ? 'PanicButtonMobile' : ''}" class:PanicButtonAnimation={panicLoading} part="PanicButton {(getDevice(userAgent) !== 'PC') ? 'PanicButtonMobile' : ''}" bind:this={panicButton}>{$_('gamePage.breakButton')}</button>
|
550
552
|
</div>
|
551
553
|
{/if}
|
552
554
|
<p>{time}</p>
|
@@ -583,7 +585,7 @@
|
|
583
585
|
<p class="Time" part="Time" bind:this={timeContainer}><span>{time}</span></p>
|
584
586
|
{#if haspanicbutton === "true"}
|
585
587
|
<div class="PanicSection" part="PanicSection">
|
586
|
-
<button class="Button" class:PanicButtonAnimation={panicLoading} part="Button" bind:this={panicButton}
|
588
|
+
<button class="Button" class:PanicButtonAnimation={panicLoading} part="Button" bind:this={panicButton}>{$_('gamePage.breakButton')}</button>
|
587
589
|
</div>
|
588
590
|
{/if}
|
589
591
|
{#if isFullscreen}
|
@@ -786,31 +788,20 @@
|
|
786
788
|
}
|
787
789
|
|
788
790
|
.FavIconPanicButton {
|
789
|
-
margin-top:
|
791
|
+
margin-top: 45px;
|
790
792
|
}
|
791
793
|
|
792
|
-
.PanicText {
|
793
|
-
display: flex;
|
794
|
-
align-items: center;
|
795
|
-
}
|
796
794
|
.PanicSection {
|
797
795
|
display: flex;
|
798
796
|
align-items: center;
|
799
797
|
gap: 10px;
|
800
798
|
margin: 20px 0;
|
801
799
|
|
802
|
-
svg {
|
803
|
-
fill: none;
|
804
|
-
}
|
805
|
-
p {
|
806
|
-
font-size: 16px;
|
807
|
-
color: var(--emfe-w-color-white, #FFFFFF);
|
808
|
-
}
|
809
800
|
.Button {
|
810
801
|
border-radius: 5px;
|
811
802
|
border: 1px solid var(--emfe-w-color-primary, #D0046C);
|
812
803
|
background-color: var(--emfe-w-color-primary, #D0046C);
|
813
|
-
width:
|
804
|
+
width: 280px;
|
814
805
|
height: 60px;
|
815
806
|
color: var(--emfe-w-color-white, #FFFFFF);
|
816
807
|
cursor: pointer;
|
@@ -841,20 +832,21 @@
|
|
841
832
|
.PanicButtonAnimation {
|
842
833
|
background: -webkit-linear-gradient(
|
843
834
|
135deg,
|
844
|
-
|
835
|
+
rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%
|
845
836
|
);
|
846
837
|
|
847
838
|
background: -moz-linear-gradient(
|
848
839
|
135deg,
|
849
|
-
|
840
|
+
rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%
|
850
841
|
);
|
851
842
|
|
852
843
|
background: -o-linear-gradient(
|
853
844
|
135deg,
|
854
|
-
|
845
|
+
rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%
|
855
846
|
);
|
856
847
|
|
857
|
-
|
848
|
+
background-color: var(--emfe-w-color-primary, #D0046C);
|
849
|
+
width: 280px;
|
858
850
|
color: #fff;
|
859
851
|
|
860
852
|
-webkit-animation: bar-animation 2s linear;
|
@@ -865,7 +857,7 @@
|
|
865
857
|
background-position: 0;
|
866
858
|
}
|
867
859
|
100% {
|
868
|
-
background-position:
|
860
|
+
background-position: 280px;
|
869
861
|
}
|
870
862
|
}
|
871
863
|
</style>
|
package/src/translations.js
CHANGED
@@ -6,7 +6,7 @@ export const GamePageTranslations = {
|
|
6
6
|
deposit: 'Deposit',
|
7
7
|
playForFun: 'Play for fun',
|
8
8
|
playNow: 'Start now!',
|
9
|
-
breakButton: '
|
9
|
+
breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
|
10
10
|
}
|
11
11
|
},
|
12
12
|
de: {
|
@@ -16,7 +16,7 @@ export const GamePageTranslations = {
|
|
16
16
|
deposit: 'Einzahlung',
|
17
17
|
playForFun: 'Play for fun',
|
18
18
|
playNow: 'Jetzt starten!',
|
19
|
-
breakButton: '
|
19
|
+
breakButton: 'Für 24 Std. Games Sofortpause, 3 Sekunden drücken',
|
20
20
|
}
|
21
21
|
},
|
22
22
|
it: {
|
@@ -87,7 +87,7 @@ export const GamePageTranslations = {
|
|
87
87
|
deposit: 'Uplata',
|
88
88
|
playForFun: 'Igraj za zabavu',
|
89
89
|
playNow: 'Započnite sada!',
|
90
|
-
breakButton: '
|
90
|
+
breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
|
91
91
|
}
|
92
92
|
},
|
93
93
|
hu: {
|
@@ -97,7 +97,7 @@ export const GamePageTranslations = {
|
|
97
97
|
deposit: 'Befizetés',
|
98
98
|
playForFun: 'Play for fun',
|
99
99
|
playNow: 'Játsszon most!',
|
100
|
-
breakButton: '
|
100
|
+
breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
|
101
101
|
}
|
102
102
|
},
|
103
103
|
pl: {
|
@@ -107,7 +107,7 @@ export const GamePageTranslations = {
|
|
107
107
|
deposit: 'Wpłata',
|
108
108
|
playForFun: 'Graj dla zabawy',
|
109
109
|
playNow: 'Rozpocznij teraz!',
|
110
|
-
breakButton: '
|
110
|
+
breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
|
111
111
|
}
|
112
112
|
},
|
113
113
|
pt: {
|
@@ -127,7 +127,7 @@ export const GamePageTranslations = {
|
|
127
127
|
deposit: 'Vplačilo',
|
128
128
|
playForFun: 'Igrajte za zabavo',
|
129
129
|
playNow: 'Začnite zdaj!',
|
130
|
-
breakButton: '
|
130
|
+
breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
|
131
131
|
}
|
132
132
|
},
|
133
133
|
sr: {
|
@@ -137,7 +137,7 @@ export const GamePageTranslations = {
|
|
137
137
|
deposit: 'Uplata',
|
138
138
|
playForFun: 'Igraj za zabavu',
|
139
139
|
playNow: 'Započnite sada!',
|
140
|
-
breakButton: '
|
140
|
+
breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
|
141
141
|
}
|
142
142
|
}
|
143
143
|
};
|