@everymatrix/casino-footer-thumbnail 1.44.0 → 1.45.2

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 DELETED
@@ -1,37 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset='utf-8'>
5
- <meta name='viewport' content='width=device-width,initial-scale=1'>
6
-
7
- <title>
8
- casino-footer-thumbnail
9
- </title>
10
- <link rel="stylesheet" href="public/reset.css">
11
- <script src='dist/casino-footer-thumbnail.js'></script>
12
- </head>
13
-
14
- <body>
15
- <style>
16
- html,body { margin: 0; padding: 0; height: 100%; font-family: "Helvetica Neue", "Helvetica", sans-serif; }
17
- .header { display: flex; justify-content: center; align-items: center; padding: 10px 20px; margin-bottom: 20px; background: #42a3e2; box-shadow: 3px 4px 5px 0px rgba(0,0,0, .2); }
18
- .header__logo svg { height: 50px; width: 50px; margin-right: 5px; }
19
- .header__name { color: #fff; }
20
- .header__name span { margin-right: 10px; font-weight: bold; }
21
- .webcomponent { padding: 10px 20px; }
22
- </style>
23
- <header class="header">
24
- <div class="header__logo">
25
- <svg xmlns="http://www.w3.org/2000/svg" width="161" height="132" viewBox="0 0 161 132"><defs><linearGradient x1="0%" y1="50%" y2="50%" id="a"><stop stop-color="#2A3B8F" offset="0%"/><stop stop-color="#29ABE2" offset="100%"/></linearGradient><linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="c"><stop stop-color="#B4D44E" offset="0%"/><stop stop-color="#E7F716" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="#166DA5" d="M160.6 65.9l-17.4 29.3-24.4-29.7 24.4-28.9z"/><path fill="#8FDB69" d="M141.3 100.2l-26.5-31.7-15.9 26.6 24.7 36.1z"/><path fill="#166DA5" d="M141 31.4l-26.2 31.8-15.9-26.6L123.6.9z"/><path fill="url(#a)" opacity=".95" d="M61.1 31.4H141L123.4.7H78.7z M114.8 63.3H159l-15.9-26.8H98.8"/><path fill="url(#c)" opacity=".95" d="M141.3 100.3H61l17.6 30.5h45z M114.8 68.4H159l-15.9 26.8H98.8"/><path fill="#010101" d="M78.6 130.8L41 65.8 79.1.8H37.9L.4 65.8l37.5 65z"/></g></svg>
26
- </div>
27
- <h1 class="header__name">
28
- <span>WEBCOMPONENT:</span> casino-footer-thumbnail
29
- </h1>
30
- </header>
31
-
32
- <div class="webcomponent">
33
- <casino-footer-thumbnail></casino-footer-thumbnail>
34
- </div>
35
-
36
- </body>
37
- </html>
package/index.js DELETED
@@ -1 +0,0 @@
1
- import './dist/casino-footer-thumbnail.js';
Binary file
package/public/reset.css DELETED
@@ -1,48 +0,0 @@
1
- /* http://meyerweb.com/eric/tools/css/reset/
2
- v2.0 | 20110126
3
- License: none (public domain)
4
- */
5
-
6
- html, body, div, span, applet, object, iframe,
7
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
- a, abbr, acronym, address, big, cite, code,
9
- del, dfn, em, img, ins, kbd, q, s, samp,
10
- small, strike, strong, sub, sup, tt, var,
11
- b, u, i, center,
12
- dl, dt, dd, ol, ul, li,
13
- fieldset, form, label, legend,
14
- table, caption, tbody, tfoot, thead, tr, th, td,
15
- article, aside, canvas, details, embed,
16
- figure, figcaption, footer, header, hgroup,
17
- menu, nav, output, ruby, section, summary,
18
- time, mark, audio, video {
19
- margin: 0;
20
- padding: 0;
21
- border: 0;
22
- font-size: 100%;
23
- font: inherit;
24
- vertical-align: baseline;
25
- }
26
- /* HTML5 display-role reset for older browsers */
27
- article, aside, details, figcaption, figure,
28
- footer, header, hgroup, menu, nav, section {
29
- display: block;
30
- }
31
- body {
32
- line-height: 1;
33
- }
34
- ol, ul {
35
- list-style: none;
36
- }
37
- blockquote, q {
38
- quotes: none;
39
- }
40
- blockquote:before, blockquote:after,
41
- q:before, q:after {
42
- content: '';
43
- content: none;
44
- }
45
- table {
46
- border-collapse: collapse;
47
- border-spacing: 0;
48
- }
package/rollup.config.js DELETED
@@ -1,67 +0,0 @@
1
- import svelte from 'rollup-plugin-svelte';
2
- import commonjs from '@rollup/plugin-commonjs';
3
- import resolve from '@rollup/plugin-node-resolve';
4
- import serve from 'rollup-plugin-dev-server';
5
- import livereload from 'rollup-plugin-livereload';
6
- import { terser } from 'rollup-plugin-terser';
7
- import sveltePreprocess from 'svelte-preprocess';
8
- import typescript from '@rollup/plugin-typescript';
9
- import uglify from 'rollup-plugin-uglify';
10
- import image from '@rollup/plugin-image';
11
-
12
- const production = process.env.NODE_ENV == 'production';
13
- const dev = process.env.NODE_ENV == 'development';
14
-
15
- export default {
16
- input: 'src/index.ts',
17
- output: {
18
- sourcemap: true,
19
- format: 'umd',
20
- name: 'app',
21
- file: 'dist/casino-footer-thumbnail.js',
22
- },
23
- plugins: [
24
- svelte({
25
- preprocess: sveltePreprocess(),
26
- compilerOptions: {
27
- // @TODO check generate and hydratable
28
- // generate: 'ssr',
29
- // hydratable: true,
30
- // enable run-time checks when not in production
31
- customElement: true,
32
- dev: !production
33
- }
34
- }),
35
- image(),
36
- commonjs(),
37
- resolve({
38
- browser: true,
39
- dedupe: ['svelte']
40
- }),
41
- dev && serve({
42
- open: true,
43
- verbose: true,
44
- allowCrossOrigin: true,
45
- historyApiFallback: false,
46
- host: 'localhost',
47
- port: 5050,
48
- }),
49
- dev && livereload({ watch: ['', 'dist'] }),
50
- typescript({
51
- sourceMap: !production,
52
- inlineSources: !production,
53
- }),
54
- // If we're building for production (npm run build
55
- // instead of npm run dev), minify
56
- production &&
57
- terser({
58
- output: {
59
- comments: "all"
60
- },
61
- }),
62
- production && uglify.uglify()
63
- ],
64
- watch: {
65
- clearScreen: false
66
- }
67
- };
@@ -1,294 +0,0 @@
1
- <svelte:options tag={null} />
2
-
3
- <script lang="ts">
4
-
5
- import { getDevice } from 'rvhelper';
6
-
7
- export let sponsorurl:string = '';
8
- export let sponsorimage:string = '';
9
- export let sponsortitle:string = '';
10
- export let paymenturl:string = '';
11
- export let paymentimage:string = '';
12
- export let paymenttitle:string = '';
13
- export let vendorurl:string = '';
14
- export let vendorimage:string = '';
15
- export let vendortitle:string = '';
16
- export let helperlinkurl:string = '';
17
- export let helperlinkimage:string = '';
18
- export let helperlinktitle:string = '';
19
- export let licenseurl:string = '';
20
- export let licenseimage:string = '';
21
- export let licensetitle:string = '';
22
- export let sociallinkurl:string = '';
23
- export let sociallinkimage:string = '';
24
- export let sociallinktitle:string = '';
25
- export let target:string = '_self';
26
- export let linktype:string = 'false';
27
- export let displaycolumn:string = '';
28
- export let baseurl:string = '';
29
- export let lang:string = '';
30
- export let clientstyling:string = '';
31
- export let clientstylingurl:string = '';
32
-
33
- let customStylingContainer:HTMLElement;
34
- let userAgent = window.navigator.userAgent;
35
- let device:string = getDevice(userAgent);
36
-
37
- const setClientStyling = () => {
38
- let sheet = document.createElement('style');
39
- sheet.innerHTML = clientstyling;
40
- customStylingContainer.appendChild(sheet);
41
- }
42
-
43
- const setClientStylingURL = ():void => {
44
- let url:URL = new URL(clientstylingurl);
45
- let cssFile:HTMLElement = document.createElement('style');
46
-
47
- fetch(url.href)
48
- .then((res:any) => res.text())
49
- .then((data:any) => {
50
- cssFile.innerHTML = data
51
-
52
- setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
53
- });
54
- }
55
-
56
- const sendOpenLink = (url:string, type:string, target:any) => {
57
- const isExternal = type;
58
- const urlForNative: string = isExternal ? url : baseurl + `/${lang}/` + url;
59
-
60
- window.postMessage({ type:'NavigateTo', path: url, target: target || null, externalLink: isExternal || false }, window.location.href);
61
-
62
- // To avoid breaking changes, send constructed url for native
63
- if (isExternal) {
64
- window.postMessage({ type:'ExternalLinkNavigation', externalUrl: urlForNative, target: target }, window.location.href);
65
- } else {
66
- window.postMessage({ type:'LinkNavigation', navUrl: urlForNative, target: target }, window.location.href);
67
- }
68
- }
69
-
70
- $: clientstyling && customStylingContainer && setClientStyling();
71
- $: clientstylingurl && customStylingContainer && setClientStylingURL();
72
- </script>
73
-
74
- <div class="ThumbnailContainer" part="ThumbnailContainer" bind:this={customStylingContainer}>
75
- {#if device == 'PC'} <!-- Case when we need anchor navigation in order to control the way a link opens inside an iframe through the target attribute -->
76
- {#if sponsorimage}
77
- <div class="FooterItem SponsorItem" part="FooterItem SponsorItem">
78
- <a class="{sponsortitle ? 'FooterSponsorLink' : '' } {sponsorurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
79
- part="{sponsortitle ? 'FooterSponsorLink' : '' } {sponsorurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
80
- href={linktype ? sponsorurl : baseurl + `/${lang}/` + sponsorurl}
81
- target={target}>
82
- <img class="FooterImage" part="FooterImage" src={sponsorimage} title={sponsortitle|| sponsorurl} />
83
- {#if sponsortitle}
84
- <p class="SponsorTitle" part="SponsorTitle">{sponsortitle}</p>
85
- {/if}
86
- </a>
87
- </div>
88
- {:else if paymentimage}
89
- <div class="FooterItem PaymentItem" part="FooterItem PaymentItem">
90
- <a class="{paymenttitle ? 'FooterPaymentLink' : '' } {paymenturl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
91
- part="{paymenttitle ? 'FooterPaymentLink' : '' } {paymenturl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
92
- href={linktype ? paymenturl : baseurl + `/${lang}/` + paymenturl}
93
- target={target}>
94
- <img class="FooterImage" part="FooterImage" src={paymentimage} title={paymenttitle || paymenturl} />
95
- {#if paymenttitle}
96
- <p class="PaymentTitle" part="PaymentTitle">{paymenttitle}</p>
97
- {/if}
98
- </a>
99
- </div>
100
- {:else if vendorimage}
101
- <div class="FooterItem GameVendorItem" part="FooterItem GameVendorItem">
102
- <a class="{vendorurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
103
- part="{vendorurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
104
- href={linktype ? vendorurl : baseurl + `/${lang}/` + vendorurl}
105
- target={target}>
106
- <img class="FooterImage" part="FooterImage" src={vendorimage} title={vendortitle || vendorurl} />
107
- </a>
108
- </div>
109
- {:else if helperlinkurl}
110
- <div class="FooterItem HelperLinkItem {displaycolumn == "true" ? "DisplayColumn" : ""}" part="FooterItem HelperLinkItem">
111
- <a class="{helperlinktitle ? 'FooterHelperLink' : '' } {helperlinkurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
112
- part="{helperlinktitle ? 'FooterHelperLink' : '' } {helperlinkurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
113
- href={linktype ? helperlinkurl : baseurl + `/${lang}/` + helperlinkurl}
114
- target={target}>
115
- {#if helperlinkimage}
116
- <img class="FooterImage" part="FooterImage" src={helperlinkimage} title={helperlinktitle || helperlinkurl} />
117
- {/if}
118
- {#if helperlinktitle}
119
- <p class="HelperTitle" part="HelperTitle">{helperlinktitle}</p>
120
- {/if}
121
- </a>
122
- </div>
123
- {:else if licenseimage}
124
- <div class="FooterItem" part="FooterItem">
125
- <a class="FooterLink {licenseurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
126
- part="FooterLink {licenseurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
127
- href={linktype ? licenseurl : baseurl + `/${lang}/` + licenseurl}
128
- target={target}>
129
- <img class="FooterImage" part="FooterImage" src={licenseimage} title={licensetitle || licenseurl} />
130
- </a>
131
- </div>
132
- {:else if sociallinkimage}
133
- <div class="FooterItem SocialItem" part="FooterItem SocialItem">
134
- <a class="FooterLink {sociallinkurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
135
- part="FooterLink {sociallinkurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
136
- href={linktype ? sociallinkurl : baseurl + `/${lang}/` + sociallinkurl}
137
- target={target}>
138
- <img class="FooterImage" part="FooterImage" src={sociallinkimage} title={sociallinktitle || sociallinkurl} />
139
- </a>
140
- </div>
141
- {/if}
142
- {:else} <!-- Case when external navigation is handled by native devices -->
143
- {#if sponsorimage}
144
- <div class="FooterItem SponsorItem" part="FooterItem SponsorItem">
145
- <button class="{sponsortitle ? 'FooterSponsorLink' : '' } {sponsorurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
146
- on:click={() => sendOpenLink(sponsorurl, linktype, target)}>
147
- <img class="FooterImage" part="FooterImage" src={sponsorimage} title={sponsortitle|| sponsorurl} />
148
- {#if sponsortitle}
149
- <p class="SponsorTitle" part="SponsorTitle">{sponsortitle}</p>
150
- {/if}
151
- </button>
152
- </div>
153
- {:else if paymentimage}
154
- <div class="FooterItem PaymentItem" part="FooterItem PaymentItem">
155
- <button class="{paymenttitle ? 'FooterPaymentLink' : '' } {paymenturl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
156
- on:click={() => sendOpenLink(paymenturl, linktype, target)}>
157
- <img class="FooterImage" part="FooterImage" src={paymentimage} title={paymenttitle || paymenturl} />
158
- {#if paymenttitle}
159
- <p class="PaymentTitle" part="PaymentTitle">{paymenttitle}</p>
160
- {/if}
161
- </button>
162
- </div>
163
- {:else if vendorimage}
164
- <div class="FooterItem GameVendorItem" part="FooterItem GameVendorItem">
165
- <button class="{vendorurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
166
- on:click={() => sendOpenLink(vendorurl, linktype, target)}>
167
- <img class="FooterImage" part="FooterImage" src={vendorimage} title={vendortitle || vendorurl} />
168
- </button>
169
- </div>
170
- {:else if helperlinkurl}
171
- <div class="FooterItem HelperLinkItem {displaycolumn == "true" ? "DisplayColumn" : ""}" part="FooterItem HelperLinkItem">
172
- <button class="{helperlinktitle ? 'FooterHelperLink' : '' } {helperlinkurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
173
- on:click={() => sendOpenLink(helperlinkurl, linktype, target)}>
174
- {#if helperlinkimage}
175
- <img class="FooterImage" part="FooterImage" src={helperlinkimage} title={helperlinktitle || helperlinkurl} />
176
- {/if}
177
- {#if helperlinktitle}
178
- <p class="HelperTitle" part="HelperTitle">{helperlinktitle}</p>
179
- {/if}
180
- </button>
181
- </div>
182
- {:else if licenseimage}
183
- <div class="FooterItem" part="FooterItem">
184
- <button class="FooterLink {licenseurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
185
- on:click={() => sendOpenLink(licenseurl, linktype, target)}>
186
- <img class="FooterImage" part="FooterImage" src={licenseimage} title={licensetitle || licenseurl} />
187
- </button>
188
- </div>
189
- {:else if sociallinkimage}
190
- <div class="FooterItem SocialItem" part="FooterItem SocialItem">
191
- <button class="FooterLink {sociallinkurl ? '' : 'FooterLinkDisabled'} FooterItemAnchor"
192
- on:click={() => sendOpenLink(sociallinkurl, linktype, target)}>
193
- <img class="FooterImage" part="FooterImage" src={sociallinkimage} title={sociallinktitle || sociallinkurl} />
194
- </button>
195
- </div>
196
- {/if}
197
- {/if}
198
- </div>
199
-
200
- <style lang="scss">
201
- :host {
202
- font-family: system-ui, -apple-system, Roboto, Helvetica;
203
- }
204
-
205
- .FooterItem {
206
- display: inline-block;
207
- padding: 0 12px;
208
- .FooterSponsorLink, .FooterPaymentLink {
209
- display: block;
210
- }
211
- .FooterSponsorLink {
212
- display: flex;
213
- align-items: center;
214
- }
215
- .FooterPaymentLink, .FooterHelperLink {
216
- display: flex;
217
- align-items: center;
218
- justify-content: center;
219
- }
220
- .FooterLinkDisabled {
221
- pointer-events: none;
222
- cursor: auto;
223
- }
224
- .SponsorTitle, .PaymentTitle {
225
- font-size: 9px;
226
- text-decoration: none;
227
- color: var(--emfe-w-color-gray-150, #828282);
228
- text-align: center;
229
- }
230
- .HelperTitle {
231
- color: var(--emfe-w-footer-typography, var(--emfe-w-color-contrast, #111));
232
- font-size: 8px;
233
- }
234
- &.HelperLinkItem {
235
- p {
236
- font-size: 10px;
237
- }
238
- }
239
- .FooterItemAnchor {
240
- display: flex;
241
- flex-direction: column;
242
- gap: 6px;
243
- text-decoration: none;
244
- cursor: pointer;
245
- border: none;
246
- background: transparent;
247
- padding: 0;
248
- }
249
- &.SocialItem {
250
- .FooterItemAnchor {
251
- width: 42px;
252
- height: 42px;
253
- }
254
- }
255
- .FooterImage {
256
- min-height: 38px;
257
- }
258
- }
259
-
260
- .SponsorTitle {
261
- margin: 0;
262
- }
263
-
264
- .FooterLink {
265
- display: block;
266
- text-align: center;
267
- }
268
- .DisplayColumn {
269
- .FooterItemAnchor {
270
- flex-direction: row;
271
- }
272
- .FooterImage {
273
- height: 16px;
274
- width: 16px;
275
- min-height: unset;
276
- }
277
- &.FooterItem.HelperLinkItem p {
278
- font-size: 12px;
279
- }
280
- }
281
-
282
-
283
- @media only screen and (max-width: 768px) {
284
- .FooterItem {
285
- padding: 0 5px;
286
- &.PaymentItem {
287
- padding: 15px 5px;
288
- }
289
- &.GameVendorItem {
290
- padding: 0 10px;
291
- }
292
- }
293
- }
294
- </style>
package/src/index.ts DELETED
@@ -1,4 +0,0 @@
1
- import CasinoFooterThumbnail from './CasinoFooterThumbnail.svelte';
2
-
3
- !customElements.get('casino-footer-thumbnail') && customElements.define('casino-footer-thumbnail', CasinoFooterThumbnail);
4
- export default CasinoFooterThumbnail;
@@ -1,13 +0,0 @@
1
- import { html } from 'lit-element';
2
-
3
- import CasinoFooterThumbnail from '../src/CasinoFooterThumbnail';
4
-
5
- // This default export determines where your story goes in the story list
6
- export default {
7
- title: 'CasinoFooterThumbnail',
8
- };
9
-
10
- // 👇 We create a “template” of how args map to rendering
11
- const CasinoFooterThumbnail = ({ aProperty }) => html`<casino-footer-thumbnail></casino-footer-thumbnail>`;
12
-
13
- export const FirstStory = CasinoFooterThumbnail.bind({});
package/tsconfig.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "@tsconfig/svelte/tsconfig.json",
3
-
4
- "include": ["src/**/*"],
5
- "exclude": ["node_modules/*", "__sapper__/*", "public/*"]
6
- }