@everymatrix/casino-game-page 0.0.257 → 0.0.260
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-page",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.260",
|
4
4
|
"main": "dist/casino-game-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": "a30fdd6f6180c69aabbc0daf1bf2a2e1342bf0e2"
|
40
40
|
}
|
@@ -198,7 +198,7 @@
|
|
198
198
|
let url:URL = new URL(`${endpoint}/casino/games/${gameId}`);
|
199
199
|
|
200
200
|
url.searchParams.append('language', lang);
|
201
|
-
|
201
|
+
|
202
202
|
fetch(url.href)
|
203
203
|
.then((res:any) => res.json())
|
204
204
|
.then((data:any) => {
|
@@ -234,8 +234,8 @@
|
|
234
234
|
gameFrameHeight = gameContainerWidth / iframeRatio;
|
235
235
|
}
|
236
236
|
|
237
|
-
definitiveIframeWidth = Math.floor(gameFrameWidth) + "px";
|
238
|
-
definitiveIframeHeight = Math.floor(gameFrameHeight) + "px";
|
237
|
+
definitiveIframeWidth = gameFrameWidth ? Math.floor(gameFrameWidth) + "px" : "1280px";
|
238
|
+
definitiveIframeHeight = gameFrameHeight ? Math.floor(gameFrameHeight) + "px" : "720px";
|
239
239
|
}
|
240
240
|
|
241
241
|
const openGameWindow = (game:any):void => {
|
@@ -499,7 +499,7 @@
|
|
499
499
|
{:else}
|
500
500
|
{#if isLoggedIn}
|
501
501
|
<div id="IframeContainer" part="IframeContainer" bind:this={gameFrameContainer} class:FullsScreenLayout={isFullscreen} style="width: {modalFrameWidth}; height: {modalFrameHeight}">
|
502
|
-
<div id="IframeGame" part="IframeGame" bind:this={gameInnerContainer} style="width: {isFullscreen ? '100%' : definitiveIframeWidth}; height: {isFullscreen ? '100%' : definitiveIframeHeight}; max-width: {isFullscreen ? 'none' : game.width + 'px'}; max-height: {isFullscreen ? 'none' : (game.height + 100) + 'px'}">
|
502
|
+
<div id="IframeGame" part="IframeGame" bind:this={gameInnerContainer} style="width: {isFullscreen ? '100%' : definitiveIframeWidth}; height: {isFullscreen ? '100%' : definitiveIframeHeight}; max-width: {isFullscreen ? 'none' : (game.width ? game.width + 'px' : '1280px')}; max-height: {isFullscreen ? 'none' : (game.height ? (Math.floor(game.height) + 100) + 'px' : '720px')}">
|
503
503
|
<iframe title="Games" id="IframeGame" class="GamesContainer" part="GamesContainer" aria-hidden="false" src={game.launchUrl} bind:this={iframe}/>
|
504
504
|
<div class="BottomGame" part="BottomGame">
|
505
505
|
<button class="DepositButton" part="DepositButton" on:click='{() => toggleDeposit()}'>{$_('gamePage.deposit')}</button>
|
@@ -526,7 +526,7 @@
|
|
526
526
|
{:else}
|
527
527
|
{#if funMode}
|
528
528
|
<div id="IframeContainer" part="IframeContainer" bind:this={gameFrameContainer} class:FullsScreenLayout={isFullscreen} style="width: {modalFrameWidth}; height: {modalFrameHeight}">
|
529
|
-
<div id="IframeGame" part="IframeGame" bind:this={gameInnerContainer} style="width: {isFullscreen ? '100%' : definitiveIframeWidth}; height: {isFullscreen ? '100%' : definitiveIframeHeight}; max-width: {isFullscreen ? 'none' : game.width + 'px'}; max-height: {isFullscreen ? 'none' : (game.height + 100) + 'px'}">
|
529
|
+
<div id="IframeGame" part="IframeGame" bind:this={gameInnerContainer} style="width: {isFullscreen ? '100%' : definitiveIframeWidth}; height: {isFullscreen ? '100%' : definitiveIframeHeight}; max-width: {isFullscreen ? 'none' : (game.width ? Math.floor(game.width) + 'px' : '1280px')}; max-height: {isFullscreen ? 'none' : (game.height ? (Math.floor(game.height) + 100) + 'px' : '720px')}">
|
530
530
|
<iframe title="Games" class="GamesContainer" part="GamesContainer" aria-hidden="false" src={game.launchUrl} bind:this={iframe}/>
|
531
531
|
<div class="BottomGame" part="BottomGame">
|
532
532
|
<div class="ButtonsContainer" part="ButtonsContainer">
|
@@ -565,13 +565,6 @@
|
|
565
565
|
{/if}
|
566
566
|
|
567
567
|
<style lang="scss">
|
568
|
-
//This function does a multiplication
|
569
|
-
// in order to work with px the
|
570
|
-
// same way as working with em
|
571
|
-
@function ttp($value) {
|
572
|
-
$multiplicator: 16px;
|
573
|
-
@return $value * $multiplicator;
|
574
|
-
}
|
575
568
|
|
576
569
|
:host {
|
577
570
|
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
@@ -698,7 +691,7 @@
|
|
698
691
|
.FavIconContainer {
|
699
692
|
position: absolute;
|
700
693
|
top: 42px;
|
701
|
-
left:
|
694
|
+
left: 42px;
|
702
695
|
cursor: pointer;
|
703
696
|
}
|
704
697
|
.PanicSectionMobile {
|
@@ -719,14 +712,14 @@
|
|
719
712
|
fill: none;
|
720
713
|
}
|
721
714
|
p {
|
722
|
-
font-size:
|
715
|
+
font-size: 16px;
|
723
716
|
color: var(--emfe-w-color-white, #FFFFFF);
|
724
717
|
}
|
725
718
|
.Button {
|
726
719
|
border-radius: 5px;
|
727
720
|
border: 1px solid var(--emfe-w-color-primary, #D0046C);
|
728
721
|
background-color: var(--emfe-w-color-primary, #D0046C);
|
729
|
-
width:
|
722
|
+
width: 240px;
|
730
723
|
height: 60px;
|
731
724
|
color: var(--emfe-w-color-white, #FFFFFF);
|
732
725
|
cursor: pointer;
|