@everymatrix/casino-game-page 0.0.270 → 0.0.273

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.270",
3
+ "version": "0.0.273",
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": "bcb45adcfc2491881a3333ea2b75a5724d94c34a"
39
+ "gitHead": "64e123e6fa8a75c569b58741b32113413ad65748"
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,10 +530,11 @@
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
- <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')}">
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
- <div class="BottomGame" part="BottomGame" bind:this={buttonsContainer}>
535
+ <div class="BottomGame {haspanicbutton ? 'BottomGamePanicSection' : ''}" part="BottomGame {haspanicbutton ? 'BottomGamePanicSection' : ''}" bind:this={buttonsContainer}>
534
536
  <button class="DepositButton" part="DepositButton" on:click='{() => toggleDeposit()}'>{$_('gamePage.deposit')}</button>
537
+ <p class="Time" part="Time" bind:this={timeContainer}><span>{time}</span></p>
535
538
  {#if haspanicbutton === "true"}
536
539
  <div class="PanicSection" part="PanicSection">
537
540
  <svg class="w-1 h-1" part="w-1 h-1" fill="none" stroke="white" width="34px" height="34px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
@@ -549,7 +552,6 @@
549
552
  </button>
550
553
  {/if}
551
554
  </div>
552
- <p class="Time" part="Time" bind:this={timeContainer}><span>{time}</span></p>
553
555
  </div>
554
556
  </div>
555
557
  {:else}
@@ -562,6 +564,7 @@
562
564
  <button class="LoginButton" part="LoginButton" on:click='{() => toggleLogin()}'>{$_('gamePage.signIn')}</button>
563
565
  <button class="RegisterButton" part="RegisterButton" on:click='{() => toggleRegister()}'>{$_('gamePage.register')}</button>
564
566
  </div>
567
+ <p class="Time" part="Time" bind:this={timeContainer}><span>{time}</span></p>
565
568
  {#if isFullscreen}
566
569
  <button class="FullscreenButton" part="FullscreenButton" on:click='{() => handleIframeSize()}'>
567
570
  <svg width="24" height="24" viewBox="0 0 31 31"><polygon style="fill:#fff;" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 "/><polygon style="fill:#fff;" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 "/><polygon style="fill:#fff;" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 "/><polygon style="fill:#fff;" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 "/></svg>
@@ -572,7 +575,6 @@
572
575
  </button>
573
576
  {/if}
574
577
  </div>
575
- <p class="Time" part="Time" bind:this={timeContainer}><span>{time}</span></p>
576
578
  </div>
577
579
  </div>
578
580
  {:else}
@@ -608,12 +610,24 @@
608
610
  padding-right: 60px;
609
611
  min-height: 85px;
610
612
  background-color: var(--emfe-w-color-contrast, #07072A);
611
- display: flex;
612
- justify-content: space-between;
613
613
  align-items: center;
614
+ display: grid;
615
+ grid-auto-columns: 1fr;
616
+ grid-auto-rows: 1fr;
617
+ grid-template-columns: 1fr 1fr 1fr;
618
+ grid-template-rows: 1fr;
619
+ gap: 0px 0px;
620
+ justify-items: center;
621
+
622
+ &.BottomGamePanicSection {
623
+ grid-template-columns: 1fr 1fr 1fr 1fr;
624
+ }
625
+
614
626
  }
627
+
615
628
  .DepositButton, .PlayNowButton {
616
629
  border: none;
630
+ justify-self: left;
617
631
  width: 130px;
618
632
  height: 60px;
619
633
  background-color: var(--emfe-w-color-green, #48952a);
@@ -628,14 +642,15 @@
628
642
  border-radius: 2px;
629
643
  width: 270px;
630
644
  height: 180px;
645
+ margin-bottom: 20px;
631
646
  }
632
647
  .FullscreenButton {
633
648
  border-radius: 5px;
649
+ justify-self: end;
634
650
  border: none;
635
651
  width: 60px;
636
652
  height: 60px;
637
653
  background-color: var(--emfe-w-color-primary, #D0046C);
638
- float: right;
639
654
  }
640
655
  .GameDetails {
641
656
  display: flex;
@@ -648,13 +663,13 @@
648
663
  text-align: center;
649
664
  padding: 0 10px;
650
665
  }
651
- .ButtonsContainer {
666
+ .BottomGame .ButtonsContainer {
652
667
  width: 275px;
653
- margin-top: 20px;
654
668
  display: flex;
655
669
  flex-direction: row;
656
670
  justify-content: space-between;
657
671
  }
672
+
658
673
  .RegisterButton {
659
674
  color: var(--emfe-w-color-white, #FFFFFF);
660
675
  background-color: var(--emfe-w-color-primary, #D0046C);