@everymatrix/casino-game-thumbnail 1.31.0 → 1.31.2
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.31.
|
|
3
|
+
"version": "1.31.2",
|
|
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": "ced96438778b5026f2dcfb9a87463aa4f1edaa62"
|
|
39
39
|
}
|
|
@@ -174,7 +174,6 @@
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
const toggleGameFrame = (gameId:any):void => {
|
|
177
|
-
|
|
178
177
|
window.postMessage({ type: 'SearchedItemClicked', gameId }, window.location.href);
|
|
179
178
|
|
|
180
179
|
//Analytics event -- if game was searched
|
|
@@ -199,6 +198,7 @@
|
|
|
199
198
|
} else if(!isMobile(userAgent) && integratedgameframedesktop == "false") {
|
|
200
199
|
window.postMessage({ type: 'ShowGameModal', gameId, isMobile: isMobile(userAgent) }, window.location.href);
|
|
201
200
|
}
|
|
201
|
+
|
|
202
202
|
};
|
|
203
203
|
|
|
204
204
|
|
|
@@ -574,24 +574,6 @@
|
|
|
574
574
|
<img src={gamethumbnail} class={`GameBg GameBg-${gamecellsize} ${loaded ? 'Loaded' : ''}`} alt="" bind:this={image} loading="lazy" />
|
|
575
575
|
<div class="GameInfoWrapper">
|
|
576
576
|
<div class="GameInfo">
|
|
577
|
-
{#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
|
|
578
|
-
{#if fav}
|
|
579
|
-
<div class="FavIconContainer" on:click="{() => toggleFavoriteGame(gameid)}">
|
|
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"
|
|
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
|
|
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
|
|
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
|
|
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
|
|
585
|
-
c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587
|
|
586
|
-
l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278
|
|
587
|
-
l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9
|
|
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
|
|
589
|
-
l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"/></svg>
|
|
590
|
-
</div>
|
|
591
|
-
{:else}
|
|
592
|
-
<div class="LoaderRipple"><div></div><div></div></div>
|
|
593
|
-
{/if}
|
|
594
|
-
{/if}
|
|
595
577
|
<p class="GameInfoName" title="{gamename}">{gamename}</p>
|
|
596
578
|
{#if lang}
|
|
597
579
|
<button class="GameInfoBtn" on:click="{() => toggleGameFrame(gameid)}">{$_('playNow')}</button>
|
|
@@ -671,6 +653,19 @@
|
|
|
671
653
|
<path style="fill: var(--emfe-w-color-white, #FFFFFF);" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"/>
|
|
672
654
|
</svg>
|
|
673
655
|
</div>
|
|
656
|
+
{:else if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
|
|
657
|
+
<div class="FavIconContainer" on:click="{() => toggleFavoriteGame(gameid)}">
|
|
658
|
+
<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"
|
|
659
|
+
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
|
|
660
|
+
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
|
|
661
|
+
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
|
|
662
|
+
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
|
|
663
|
+
c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587
|
|
664
|
+
l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278
|
|
665
|
+
l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9
|
|
666
|
+
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
|
|
667
|
+
l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"/></svg>
|
|
668
|
+
</div>
|
|
674
669
|
{:else if isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
|
|
675
670
|
<div class="FavIconContainer">
|
|
676
671
|
<svg version="1.1" class="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481">
|
|
@@ -730,7 +725,7 @@
|
|
|
730
725
|
left: 0;
|
|
731
726
|
background: rgba(0, 0, 0, .65);
|
|
732
727
|
z-index: 15;
|
|
733
|
-
padding: 8px;
|
|
728
|
+
padding: 8px 25px;
|
|
734
729
|
|
|
735
730
|
.GameInfo {
|
|
736
731
|
display: flex;
|
|
@@ -820,6 +815,10 @@
|
|
|
820
815
|
.GameBg {
|
|
821
816
|
filter: blur(5px) grayscale(1);
|
|
822
817
|
}
|
|
818
|
+
|
|
819
|
+
.UnfavoredIcon{
|
|
820
|
+
display: flex;
|
|
821
|
+
}
|
|
823
822
|
}
|
|
824
823
|
}
|
|
825
824
|
|
|
@@ -836,6 +835,9 @@
|
|
|
836
835
|
width: 20px;
|
|
837
836
|
height: 20px;
|
|
838
837
|
}
|
|
838
|
+
.UnfavoredIcon{
|
|
839
|
+
display: none;
|
|
840
|
+
}
|
|
839
841
|
.FavIconContainer {
|
|
840
842
|
display: flex;
|
|
841
843
|
justify-content: center;
|
|
@@ -1463,6 +1465,7 @@
|
|
|
1463
1465
|
@container (max-width: 480px) {
|
|
1464
1466
|
.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper{
|
|
1465
1467
|
gap: 0px;
|
|
1468
|
+
padding: 8px 10px;
|
|
1466
1469
|
}
|
|
1467
1470
|
|
|
1468
1471
|
.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName {
|