@everymatrix/casino-game-page 0.0.271 → 0.0.272
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.272",
|
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": "2251ff7ad156e5d687da1a0ce2f71e526ca4eac5"
|
40
40
|
}
|
@@ -34,6 +34,7 @@
|
|
34
34
|
export let haspanicbutton:string = 'false';
|
35
35
|
export let playforfun:string = 'true';
|
36
36
|
export let checksession:string = 'true';
|
37
|
+
export let integratedgameframe:string = 'false';
|
37
38
|
|
38
39
|
export let gameid:string = '';
|
39
40
|
|
@@ -56,7 +57,6 @@
|
|
56
57
|
let gameFrameContainer:HTMLElement;
|
57
58
|
let gameInnerContainer:HTMLElement;
|
58
59
|
let isFullscreen:boolean = false;
|
59
|
-
let gameFrameCloseFullScreen:HTMLElement;
|
60
60
|
let modalFrameWidth:number;
|
61
61
|
let modalFrameHeight:number;
|
62
62
|
let gameFrameWidth:number;
|
@@ -272,8 +272,10 @@
|
|
272
272
|
}
|
273
273
|
|
274
274
|
callNative('OPEN_GAME', data);
|
275
|
-
} else {
|
275
|
+
} else if(integratedgameframe == 'false') {
|
276
276
|
window.open(game.launchUrl, '_blank');
|
277
|
+
} else if(integratedgameframe == 'true') {
|
278
|
+
window.postMessage({ type: 'OpenIntegratedGameFrame' }, window.location.href);
|
277
279
|
}
|
278
280
|
}
|
279
281
|
|
@@ -528,7 +530,7 @@
|
|
528
530
|
{:else}
|
529
531
|
{#if isLoggedIn}
|
530
532
|
<div id="IframeContainer" part="IframeContainer" bind:this={gameFrameContainer} class:FullsScreenLayout={isFullscreen} style="width: {modalFrameWidth}; height: {modalFrameHeight}">
|
531
|
-
|
533
|
+
<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')}">
|
532
534
|
<iframe title="Games" id="IframeGame" class="GamesContainer" part="GamesContainer" aria-hidden="false" src={game.launchUrl} bind:this={iframe}/>
|
533
535
|
<div class="BottomGame" part="BottomGame" bind:this={buttonsContainer}>
|
534
536
|
<button class="DepositButton" part="DepositButton" on:click='{() => toggleDeposit()}'>{$_('gamePage.deposit')}</button>
|