@everymatrix/casino-game-thumbnail 1.14.3 → 1.14.5
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.5",
|
|
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": "3ae8f92d743368270919d33a4d4b8f98c78dcd83"
|
|
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;
|
|
@@ -596,14 +587,14 @@
|
|
|
596
587
|
|
|
597
588
|
<div class={`GameContainer ${extraclassname}`} bind:this={customStylingContainer}>
|
|
598
589
|
<div class="GameInnerContainer { (livegamedata && !isopen && openhours.value) || (livegamedata && istablefull) ? 'GameInnerContainerUnavailable' : ''}" on:mouseenter={gameHover} on:mouseleave={gameBlur} on:touchstart={gameTouch} on:touchend={gameTouchEnd}>
|
|
599
|
-
<img src={gamethumbnail} class={`GameBg GameBg-${gamecellsize} ${
|
|
590
|
+
<img src={gamethumbnail} class={`GameBg GameBg-${gamecellsize} ${loaded ? 'Loaded' : ''}`} alt="" bind:this={image} loading="lazy" />
|
|
600
591
|
<div class="GameInfoWrapper">
|
|
601
|
-
<div class="GameInfo
|
|
592
|
+
<div class="GameInfo">
|
|
602
593
|
{#if fav}
|
|
603
594
|
{#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
|
|
604
595
|
<div class="FavIconContainer" on:click="{() => toggleFavoriteGame(gameid)}">
|
|
605
596
|
<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
|
-
|
|
597
|
+
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
598
|
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
599
|
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
600
|
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
|
|
@@ -619,7 +610,7 @@
|
|
|
619
610
|
{/if}
|
|
620
611
|
<p class="GameInfoName" title="{gamename}">{gamename}</p>
|
|
621
612
|
{#if lang}
|
|
622
|
-
|
|
613
|
+
<button class="GameInfoBtn" on:click="{() => toggleGameFrame(gameid)}">{$_('playNow')}</button>
|
|
623
614
|
{/if}
|
|
624
615
|
</div>
|
|
625
616
|
<span class="GameInfoVendor">
|
|
@@ -794,19 +785,6 @@
|
|
|
794
785
|
font-weight: normal;
|
|
795
786
|
}
|
|
796
787
|
}
|
|
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
788
|
.GameExtraInfo {
|
|
811
789
|
display: block;
|
|
812
790
|
position: absolute;
|
|
@@ -825,6 +803,18 @@
|
|
|
825
803
|
border-radius: 5px;
|
|
826
804
|
}
|
|
827
805
|
}
|
|
806
|
+
|
|
807
|
+
&:hover, &:active {
|
|
808
|
+
cursor: pointer;
|
|
809
|
+
|
|
810
|
+
.GameInfoWrapper{
|
|
811
|
+
display: block;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.GameBg {
|
|
815
|
+
filter: blur(5px) grayscale(1);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
828
818
|
}
|
|
829
819
|
|
|
830
820
|
.GameNameBelow {
|