@everymatrix/casino-page 0.0.263 → 0.0.266
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-page.js +1 -1
- package/dist/casino-page.js.map +1 -1
- package/package.json +2 -2
- package/src/CasinoPage.svelte +18 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-page",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.266",
|
|
4
4
|
"main": "dist/casino-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": "6b21b1bd51d22d238761763635b28c6f154513a8"
|
|
40
40
|
}
|
package/src/CasinoPage.svelte
CHANGED
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
export let activecategory:string = '';
|
|
38
38
|
export let livecasino:string = 'false';
|
|
39
39
|
export let playrandomgame:string = 'false';
|
|
40
|
-
|
|
41
40
|
let userAgent:any = window.navigator.userAgent;
|
|
42
41
|
let gameevent:string;
|
|
43
42
|
|
|
@@ -115,18 +114,17 @@
|
|
|
115
114
|
const CategoryChangeHandler = (categoryEvent:any) => {
|
|
116
115
|
searched = false;
|
|
117
116
|
searchValue = '';
|
|
117
|
+
scrollTop = true;
|
|
118
|
+
// needs to be executed after the page has been populated
|
|
119
|
+
setTimeout(() => {
|
|
120
|
+
window.postMessage({ type: 'WidgetTopReference', scrollTop }, window.location.href);
|
|
121
|
+
});
|
|
118
122
|
switch(categoryEvent.data.itemId) {
|
|
119
123
|
case 'LOBBY':
|
|
120
124
|
lobbyScreen = true;
|
|
121
125
|
favoritesScreen = false;
|
|
122
126
|
activeCategory = '';
|
|
123
127
|
mostPlayedScreen = false;
|
|
124
|
-
scrollTop = true;
|
|
125
|
-
// needs to be executed after the lobby has been repopulated
|
|
126
|
-
setTimeout(() => {
|
|
127
|
-
window.postMessage({ type: 'WidgetTopReference', scrollTop }, window.location.href);
|
|
128
|
-
}, 1);
|
|
129
|
-
|
|
130
128
|
break;
|
|
131
129
|
|
|
132
130
|
case 'FAVORITES':
|
|
@@ -183,9 +181,12 @@
|
|
|
183
181
|
favoritesScreen = false;
|
|
184
182
|
mostPlayedScreen = false;
|
|
185
183
|
activeCategory = categoryEvent.data.itemId;
|
|
184
|
+
//@TODO: if we remove the settimeout, the postmessage does not execute, at all - weird behaviour
|
|
186
185
|
setTimeout(() => {
|
|
187
|
-
window.postMessage({ type: 'CategoryUpdate', itemId: activeCategory
|
|
188
|
-
},
|
|
186
|
+
window.postMessage({ type: 'CategoryUpdate', itemId: activeCategory }, window.location.href);
|
|
187
|
+
}, 500);
|
|
188
|
+
|
|
189
|
+
|
|
189
190
|
break;
|
|
190
191
|
}
|
|
191
192
|
}
|
|
@@ -712,7 +713,7 @@
|
|
|
712
713
|
if(searchElementWrapper) {
|
|
713
714
|
searchPositionTop = searchElementWrapper.getBoundingClientRect().top + document.body.getBoundingClientRect().top;
|
|
714
715
|
}
|
|
715
|
-
if (document.documentElement.scrollTop > searchPositionTop || searchPositionTop > 130){
|
|
716
|
+
if (document.documentElement.scrollTop > searchPositionTop || searchPositionTop > 130) {
|
|
716
717
|
adjustingScroll = true;
|
|
717
718
|
} else {
|
|
718
719
|
adjustingScroll = false;
|
|
@@ -951,7 +952,7 @@
|
|
|
951
952
|
<div class="FiltersButtonsContainer" part="FiltersButtonsContainer">
|
|
952
953
|
{#if numberOfFilters}
|
|
953
954
|
<div class="ClearFilterButtonWrapper {numberOfFilters ? 'FiltersActive' : ''}" part="ClearFilterButtonWrapper {numberOfFilters ? 'FiltersActive' : ''}" on:click="{() => clearVendorFilter()}">
|
|
954
|
-
<div class="ClearButton" part="ClearButton">
|
|
955
|
+
<div class="ClearButton" part="ClearButton">{$_('casinoPage.clear')}
|
|
955
956
|
<span class="ClearIcon" part="ClearIcon">
|
|
956
957
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
957
958
|
viewBox="0 0 378.303 378.303" style="enable-background:new 0 0 378.303 378.303;" xml:space="preserve">
|
|
@@ -965,7 +966,7 @@
|
|
|
965
966
|
{#if !searched || !recentSearches}
|
|
966
967
|
{#if !mostPlayedScreen}
|
|
967
968
|
<div class="FilterButtonWrapper" part="FilterButtonWrapper" on:click='{() => {openFiltersModal()}}'>
|
|
968
|
-
<div class="FilterButton" part="FilterButton">
|
|
969
|
+
<div class="FilterButton" part="FilterButton">{$_('casinoPage.filters')}</div>
|
|
969
970
|
<div class="FilterIconContainer" part="FilterIconContainer">
|
|
970
971
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 26 26"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.7,32.2a1.654,1.654,0,0,1-.636-.148,1.526,1.526,0,0,1-.867-1.393V20.578L5.433,10.588A1.543,1.543,0,0,1,5,9.491V7.742A1.512,1.512,0,0,1,6.5,6.2h23A1.512,1.512,0,0,1,31,7.742V9.491a1.543,1.543,0,0,1-.433,1.1L20.8,20.578v7.738a1.594,1.594,0,0,1-.52,1.156l-2.6,2.312A1.461,1.461,0,0,1,16.7,32.2ZM6.618,9.431l9.764,10.02a1.543,1.543,0,0,1,.433,1.1v9.813l2.34-2.075V20.519a1.543,1.543,0,0,1,.433-1.1L29.353,9.4V7.831H6.618Z" transform="translate(-5 -6.2)"/></svg>
|
|
971
972
|
{#if numberOfFilters > 0}
|
|
@@ -1007,6 +1008,7 @@
|
|
|
1007
1008
|
{clientstyling}
|
|
1008
1009
|
{clientstylingurl}
|
|
1009
1010
|
{livecasino}
|
|
1011
|
+
{visiblegames}
|
|
1010
1012
|
/>
|
|
1011
1013
|
{:else}
|
|
1012
1014
|
{#if lobbyScreen}
|
|
@@ -1028,6 +1030,7 @@
|
|
|
1028
1030
|
{clientstyling}
|
|
1029
1031
|
{clientstylingurl}
|
|
1030
1032
|
{livecasino}
|
|
1033
|
+
{visiblegames}
|
|
1031
1034
|
/>
|
|
1032
1035
|
{/each}
|
|
1033
1036
|
{:else if favoritesScreen}
|
|
@@ -1045,6 +1048,7 @@
|
|
|
1045
1048
|
{clientstyling}
|
|
1046
1049
|
{clientstylingurl}
|
|
1047
1050
|
{livecasino}
|
|
1051
|
+
{visiblegames}
|
|
1048
1052
|
/>
|
|
1049
1053
|
{:else if mostPlayedScreen}
|
|
1050
1054
|
{#if mostPlayedEmpty}
|
|
@@ -1065,6 +1069,7 @@
|
|
|
1065
1069
|
{clientstyling}
|
|
1066
1070
|
{clientstylingurl}
|
|
1067
1071
|
{livecasino}
|
|
1072
|
+
{visiblegames}
|
|
1068
1073
|
/>
|
|
1069
1074
|
{/if}
|
|
1070
1075
|
{:else}
|
|
@@ -1083,6 +1088,7 @@
|
|
|
1083
1088
|
{clientstyling}
|
|
1084
1089
|
{clientstylingurl}
|
|
1085
1090
|
{livecasino}
|
|
1091
|
+
{visiblegames}
|
|
1086
1092
|
/>
|
|
1087
1093
|
{/if}
|
|
1088
1094
|
{/if}
|