@everymatrix/casino-game-page 0.0.161 → 0.0.165

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.161",
3
+ "version": "0.0.165",
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": "d734e5f1b488eaca6400399db42f53fefb48bdb0"
39
+ "gitHead": "69466f3f09b715237d9a3b1a78a8d2479dabe391"
40
40
  }
@@ -25,6 +25,7 @@
25
25
  export let depositevent:String = '';
26
26
 
27
27
  export let clockformat:String = '';
28
+ export let haspanicbutton:String = 'false';
28
29
 
29
30
  let time:Object;
30
31
  let iframe:any;
@@ -440,13 +441,15 @@
440
441
  <button class="DepositButton" on:click='{() => toggleDeposit()}'>{$_('gamePage.deposit')}</button>
441
442
  <button class="PlayNowButton" on:click='{() => {openGameWindow(game)}}'>{$_('gamePage.playNow')}</button>
442
443
  </div>
443
- <div class="PanicSection {(getDevice(userAgent) !== 'PC') ? 'PanicSectionMobile' : ''}">
444
- <div class="PanicText">
445
- <svg class="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>
446
- <p>{$_('gamePage.break')}</p>
444
+ {#if haspanicbutton === "true"}
445
+ <div class="PanicSection {(getDevice(userAgent) !== 'PC') ? 'PanicSectionMobile' : ''}">
446
+ <div class="PanicText">
447
+ <svg class="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>
448
+ <p>{$_('gamePage.break')}</p>
449
+ </div>
450
+ <button class="Button" on:click={() => PanicAction()}>{$_('gamePage.breakButton')}</button>
447
451
  </div>
448
- <button class="Button" on:click={() => PanicAction()}>{$_('gamePage.breakButton')}</button>
449
- </div>
452
+ {/if}
450
453
  <p>{time}</p>
451
454
  </div>
452
455
 
@@ -480,11 +483,13 @@
480
483
  <iframe title="Games" id="IframeGame" class="GamesContainer" aria-hidden="false" src={game.launchUrl} bind:this={iframe}/>
481
484
  <div class="BottomGame">
482
485
  <button class="DepositButton" on:click='{() => toggleDeposit()}'>{$_('gamePage.deposit')}</button>
483
- <div class="PanicSection">
484
- <svg class="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>
485
- <p>{$_('gamePage.break')}</p>
486
- <button class="Button">{$_('gamePage.breakButton')}</button>
487
- </div>
486
+ {#if haspanicbutton === "true"}
487
+ <div class="PanicSection">
488
+ <svg class="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>
489
+ <p>{$_('gamePage.break')}</p>
490
+ <button class="Button">{$_('gamePage.breakButton')}</button>
491
+ </div>
492
+ {/if}
488
493
  {#if isFullscreen}
489
494
  <button class="FullscreenButton" on:click='{() => handleIframeSize()}'>
490
495
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" 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>