@everymatrix/casino-game-thumbnail 1.14.4 → 1.14.6
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-thumbnail",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.6",
|
|
4
4
|
"main": "dist/casino-game-thumbnail.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "04bcbaa87c2cd031348360c16b200d86ec6e66b8"
|
|
39
39
|
}
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
export let gameisnew:string = '';
|
|
24
24
|
export let gametag:string = '';
|
|
25
25
|
export let gamefunmode:boolean = false;
|
|
26
|
-
export let searchitem:boolean = false;
|
|
27
26
|
export let gamefavorite:boolean = false;
|
|
28
27
|
export let gamecellsize = '';
|
|
29
28
|
export let showfavoredcategory:boolean = false;
|
|
@@ -44,7 +43,6 @@
|
|
|
44
43
|
let playerID:string;
|
|
45
44
|
|
|
46
45
|
let fav:boolean = false;
|
|
47
|
-
let hover:Boolean = false;
|
|
48
46
|
let loaded:boolean = false
|
|
49
47
|
let image:any;
|
|
50
48
|
let userAgent:any = window.navigator.userAgent;
|
|
@@ -155,13 +153,6 @@
|
|
|
155
153
|
addNewMessages(item, TRANSLATIONS[item]);
|
|
156
154
|
});
|
|
157
155
|
|
|
158
|
-
const enter = ():void => {
|
|
159
|
-
hover = true;
|
|
160
|
-
}
|
|
161
|
-
const leave = ():void => {
|
|
162
|
-
hover = false;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
156
|
const messageHandler = (e:any):void => {
|
|
166
157
|
if (e.data.type === `AddFavoriteThumbnail_${gameid}` && !showfavoredcategory) {
|
|
167
158
|
gamefavorite = true;
|
|
@@ -221,22 +212,6 @@
|
|
|
221
212
|
}
|
|
222
213
|
}
|
|
223
214
|
|
|
224
|
-
const gameTouch = ():void => {
|
|
225
|
-
window.postMessage({ type: 'GameHoveredMobile' }, window.location.href);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
const gameTouchEnd = ():void => {
|
|
229
|
-
window.postMessage({ type: 'GameBlurMobile' }, window.location.href);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
const gameHover = ():void => {
|
|
233
|
-
window.postMessage({ type: 'GameHoveredPc' }, window.location.href);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
const gameBlur = ():void => {
|
|
237
|
-
window.postMessage({ type: 'GameBlurPc' }, window.location.href);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
215
|
const setActiveLanguage = ():void => {
|
|
241
216
|
setLocale(lang);
|
|
242
217
|
}
|
|
@@ -595,15 +570,15 @@
|
|
|
595
570
|
|
|
596
571
|
|
|
597
572
|
<div class={`GameContainer ${extraclassname}`} bind:this={customStylingContainer}>
|
|
598
|
-
<div class="GameInnerContainer { (livegamedata && !isopen && openhours.value) || (livegamedata && istablefull) ? 'GameInnerContainerUnavailable' : ''}"
|
|
599
|
-
<img src={gamethumbnail} class={`GameBg GameBg-${gamecellsize} ${
|
|
573
|
+
<div class="GameInnerContainer { (livegamedata && !isopen && openhours.value) || (livegamedata && istablefull) ? 'GameInnerContainerUnavailable' : ''}">
|
|
574
|
+
<img src={gamethumbnail} class={`GameBg GameBg-${gamecellsize} ${loaded ? 'Loaded' : ''}`} alt="" bind:this={image} loading="lazy" />
|
|
600
575
|
<div class="GameInfoWrapper">
|
|
601
|
-
<div class="GameInfo
|
|
602
|
-
{#if
|
|
603
|
-
{#if
|
|
576
|
+
<div class="GameInfo">
|
|
577
|
+
{#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
|
|
578
|
+
{#if fav}
|
|
604
579
|
<div class="FavIconContainer" on:click="{() => toggleFavoriteGame(gameid)}">
|
|
605
580
|
<svg version="1.1" class="UnfavoredIcon" part="UnfavoredIcon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="20px" y="20px"
|
|
606
|
-
|
|
581
|
+
viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><path style="fill: var(--emfe-w-color-white, #FFFFFF);" d="M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155
|
|
607
582
|
c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047
|
|
608
583
|
c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67
|
|
609
584
|
c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637
|
|
@@ -613,13 +588,13 @@
|
|
|
613
588
|
c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685
|
|
614
589
|
l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"/></svg>
|
|
615
590
|
</div>
|
|
591
|
+
{:else}
|
|
592
|
+
<div class="LoaderRipple"><div></div><div></div></div>
|
|
616
593
|
{/if}
|
|
617
|
-
{:else}
|
|
618
|
-
<div class="LoaderRipple"><div></div><div></div></div>
|
|
619
594
|
{/if}
|
|
620
595
|
<p class="GameInfoName" title="{gamename}">{gamename}</p>
|
|
621
596
|
{#if lang}
|
|
622
|
-
|
|
597
|
+
<button class="GameInfoBtn" on:click="{() => toggleGameFrame(gameid)}">{$_('playNow')}</button>
|
|
623
598
|
{/if}
|
|
624
599
|
</div>
|
|
625
600
|
<span class="GameInfoVendor">
|
|
@@ -794,19 +769,6 @@
|
|
|
794
769
|
font-weight: normal;
|
|
795
770
|
}
|
|
796
771
|
}
|
|
797
|
-
|
|
798
|
-
&:hover {
|
|
799
|
-
cursor: pointer;
|
|
800
|
-
|
|
801
|
-
.GameInfoWrapper{
|
|
802
|
-
display: block;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
.GameBg {
|
|
806
|
-
filter: blur(5px) grayscale(1);
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
|
|
810
772
|
.GameExtraInfo {
|
|
811
773
|
display: block;
|
|
812
774
|
position: absolute;
|
|
@@ -825,6 +787,18 @@
|
|
|
825
787
|
border-radius: 5px;
|
|
826
788
|
}
|
|
827
789
|
}
|
|
790
|
+
|
|
791
|
+
&:hover, &:active {
|
|
792
|
+
cursor: pointer;
|
|
793
|
+
|
|
794
|
+
.GameInfoWrapper{
|
|
795
|
+
display: block;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.GameBg {
|
|
799
|
+
filter: blur(5px) grayscale(1);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
828
802
|
}
|
|
829
803
|
|
|
830
804
|
.GameNameBelow {
|