@everymatrix/casino-game-thumbnail 1.8.4 → 1.9.0

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.8.4",
3
+ "version": "1.9.0",
4
4
  "main": "dist/casino-game-thumbnail.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": "58b0374c9527cbfb3a070ac6fb1744bc670aba27"
39
+ "gitHead": "931b121e18fe00e97d089fdc4f642515337a7091"
40
40
  }
@@ -194,14 +194,15 @@
194
194
  'userId' : `${playerID ? playerID : 'Not logged in'}`
195
195
  });
196
196
  }
197
-
198
197
 
198
+ // Case mobile
199
199
  if (isMobile(userAgent) && integratedgameframemobile == "true") {
200
200
  window.postMessage({ type: 'OpenGameFrame', gameId, gamefunmode, gamepagemodalurl, isMobile: isMobile(userAgent), source: 'GameThumbnail' }, window.location.href);
201
201
  } else if(isMobile(userAgent) && integratedgameframemobile == "false") {
202
202
  window.postMessage({ type: 'ShowGameModal', gameId, isMobile: isMobile(userAgent) }, window.location.href);
203
203
  }
204
204
 
205
+ // Case desktop
205
206
  if (!isMobile(userAgent) && integratedgameframedesktop == "true") {
206
207
  window.postMessage({ type: 'OpenGameFrame', gameId, gamefunmode, gamepagemodalurl, isMobile: isMobile(userAgent) }, window.location.href)
207
208
  } else if(!isMobile(userAgent) && integratedgameframedesktop == "false") {
@@ -613,6 +614,8 @@
613
614
  l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"/></svg>
614
615
  </div>
615
616
  {/if}
617
+ {:else}
618
+ <div class="LoaderRipple"><div></div><div></div></div>
616
619
  {/if}
617
620
  <p class="GameInfoName" part="GameInfoName" title="{gamename}">{gamename}</p>
618
621
  {#if lang}
@@ -1412,4 +1415,55 @@
1412
1415
  height: 19px;
1413
1416
  }
1414
1417
  }
1418
+
1419
+ // Loader for favorites
1420
+ .LoaderRipple {
1421
+ width: 80px;
1422
+ height: 80px;
1423
+ position: absolute;
1424
+ top: 40px;
1425
+ left: -8px;
1426
+ div {
1427
+ position: absolute;
1428
+ border: 4px solid #fff;
1429
+ opacity: 1;
1430
+ border-radius: 50%;
1431
+ animation: ripple-effect 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
1432
+ &:nth-child(2) {
1433
+ animation-delay: -0.5s;
1434
+ }
1435
+ }
1436
+ }
1437
+
1438
+ @keyframes ripple-effect {
1439
+ 0% {
1440
+ top: 36px;
1441
+ left: 36px;
1442
+ width: 0;
1443
+ height: 0;
1444
+ opacity: 0;
1445
+ }
1446
+ 4.9% {
1447
+ top: 36px;
1448
+ left: 36px;
1449
+ width: 0;
1450
+ height: 0;
1451
+ opacity: 0;
1452
+ }
1453
+ 5% {
1454
+ top: 36px;
1455
+ left: 36px;
1456
+ width: 0;
1457
+ height: 0;
1458
+ opacity: 1;
1459
+ }
1460
+ 100% {
1461
+ top: 0px;
1462
+ left: 0px;
1463
+ width: 72px;
1464
+ height: 72px;
1465
+ opacity: 0;
1466
+ }
1467
+ }
1468
+
1415
1469
  </style>