@everymatrix/casino-header-controller 0.0.199 → 0.0.203
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/index.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
casino-header-controller
|
|
9
9
|
</title>
|
|
10
10
|
<link rel="stylesheet" href="public/reset.css">
|
|
11
|
+
|
|
11
12
|
<script src='dist/casino-header-controller.js'></script>
|
|
12
13
|
</head>
|
|
13
14
|
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
<casino-header-controller
|
|
25
26
|
cmsendpoint="https://widgets.everymatrix.com/apijson"
|
|
26
27
|
lang="en"
|
|
28
|
+
showbanner="true"
|
|
27
29
|
session="8910603d-1ff3-4127-9e09-7435b5a393b6"
|
|
28
30
|
userid="3685503"
|
|
29
31
|
profileurl='bla'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-header-controller",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.203",
|
|
4
4
|
"main": "dist/casino-header-controller.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "31d7d9eeef7e68b954b83fb3dde25db05d8edf74"
|
|
42
42
|
}
|
|
@@ -9,13 +9,19 @@
|
|
|
9
9
|
|
|
10
10
|
import everymatrixLogo from './images/everymatrix-logo-white.png';
|
|
11
11
|
|
|
12
|
-
export let session:
|
|
13
|
-
export let userid:
|
|
14
|
-
export let endpoint:
|
|
15
|
-
export let cmsendpoint:
|
|
16
|
-
export let cmsenv:
|
|
17
|
-
export let lang:
|
|
18
|
-
export let identity:
|
|
12
|
+
export let session:string = '';
|
|
13
|
+
export let userid:string = '';
|
|
14
|
+
export let endpoint:string = '';
|
|
15
|
+
export let cmsendpoint:string = '';
|
|
16
|
+
export let cmsenv:string = 'stage';
|
|
17
|
+
export let lang:string = '';
|
|
18
|
+
export let identity:string = '';
|
|
19
|
+
|
|
20
|
+
export let showbanner:string = '';
|
|
21
|
+
export let bannermatrix:string = '';
|
|
22
|
+
export let operatorid:string = '';
|
|
23
|
+
export let pagetag:string = '';
|
|
24
|
+
export let positiontag:string = '';
|
|
19
25
|
|
|
20
26
|
const genericIcon = `<svg version="1.1" fill="#fff" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width: 30px; color: #fff;" x="0px" y="0px"
|
|
21
27
|
viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;" xml:space="preserve">
|
|
@@ -186,6 +192,13 @@
|
|
|
186
192
|
$: cmsendpoint && lang && initialLoad();
|
|
187
193
|
</script>
|
|
188
194
|
|
|
195
|
+
<svelte:head>
|
|
196
|
+
{#if bannermatrix}
|
|
197
|
+
<link rel="import" href="{bannermatrix}/assets/widgets/0.11.3/index.html">
|
|
198
|
+
<script src="{bannermatrix}/assets/widgets/0.11.3/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
|
|
199
|
+
{/if}
|
|
200
|
+
</svelte:head>
|
|
201
|
+
|
|
189
202
|
{#if isLoggedIn}
|
|
190
203
|
{#if mobileView}
|
|
191
204
|
<header class="HeaderWrapper HeaderMobileWrapper">
|
|
@@ -214,7 +227,7 @@
|
|
|
214
227
|
|
|
215
228
|
<div class="HeaderTopActions">
|
|
216
229
|
<div class="HeaderItemsMenu PrimaryMenu">
|
|
217
|
-
<player-account-balance-modal {session} {userid} {endpoint}/>
|
|
230
|
+
<player-account-balance-modal {session} {userid} {endpoint} {lang}/>
|
|
218
231
|
<div class="Item ItemDeposit" on:click={()=>menuAction('deposit')}>Deposit</div>
|
|
219
232
|
<div class="Item ItemAccount" on:click={()=>menuAction('myaccount')}>
|
|
220
233
|
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429">
|
|
@@ -250,7 +263,7 @@
|
|
|
250
263
|
</nav>
|
|
251
264
|
<div class="HeaderTopActions">
|
|
252
265
|
<div class="HeaderItemsMenu PrimaryMenu">
|
|
253
|
-
<player-account-balance-modal {session} {userid} {endpoint}/>
|
|
266
|
+
<player-account-balance-modal {session} {userid} {endpoint} {lang}/>
|
|
254
267
|
<div class="Item ItemDeposit" on:click={() => menuAction('deposit')}>Deposit</div>
|
|
255
268
|
<div class="Item ItemAccount" on:click={() => menuAction('myaccount')}>
|
|
256
269
|
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429">
|
|
@@ -354,6 +367,10 @@
|
|
|
354
367
|
|
|
355
368
|
<casino-hamburger-menu menuitemsurl={hamburgerURL} {language}></casino-hamburger-menu>
|
|
356
369
|
|
|
370
|
+
{#if showbanner == 'true'}
|
|
371
|
+
<bannermatrix-banner operator-id={operatorid} page-tag={pagetag} position-tag={positiontag}></bannermatrix-banner>
|
|
372
|
+
{/if}
|
|
373
|
+
|
|
357
374
|
<style lang="scss">
|
|
358
375
|
//This function does a multiplication
|
|
359
376
|
// in order to work with px the
|