qcobjects-sdk 2.3.24
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/.eslintrc.json +23 -0
- package/.github/FUNDING.yml +12 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/custom.md +10 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/ISSUE_TEMPLATE/issue-template.md +33 -0
- package/.github/workflows/npmpublish.yml +36 -0
- package/CHANGELOG.md +47 -0
- package/CNAME +1 -0
- package/QCObjects-SDK.js +95 -0
- package/README.md +864 -0
- package/README.rst +398 -0
- package/VERSION +1 -0
- package/_config.yml +1 -0
- package/css/base-modal.css +43 -0
- package/css/basic-layout-embedded-nav.css +14 -0
- package/css/basic-layout.css +76 -0
- package/css/components/horizontal-list.css +64 -0
- package/css/components/list.css +57 -0
- package/css/components/splashscreen.css +111 -0
- package/css/modal.css +46 -0
- package/demo-tests/test-component-grid.html +50 -0
- package/demo-tests/test-component-list.html +40 -0
- package/demo-tests/test-component-notifications.html +30 -0
- package/demo-tests/test-component-slider.html +52 -0
- package/favicon.ico +0 -0
- package/index.rst +398 -0
- package/js/org.qcobjects.cloud.auth.session.data.js +72 -0
- package/js/org.qcobjects.cloud.auth.session.usertoken.js +95 -0
- package/js/org.qcobjects.components.grid.js +59 -0
- package/js/org.qcobjects.components.js +226 -0
- package/js/org.qcobjects.components.list.js +48 -0
- package/js/org.qcobjects.components.notifications.js +168 -0
- package/js/org.qcobjects.components.slider.js +194 -0
- package/js/org.qcobjects.components.splashscreen.js +565 -0
- package/js/org.qcobjects.controllers.form.js +196 -0
- package/js/org.qcobjects.controllers.grid.js +268 -0
- package/js/org.qcobjects.controllers.js +10 -0
- package/js/org.qcobjects.controllers.list.js +229 -0
- package/js/org.qcobjects.controllers.slider.js +132 -0
- package/js/org.qcobjects.controllers.swagger.js +77 -0
- package/js/org.qcobjects.effects.js +262 -0
- package/js/org.qcobjects.i18n_messages.js +55 -0
- package/js/org.qcobjects.modal.controllers.js +42 -0
- package/js/org.qcobjects.modal.effects.js +48 -0
- package/js/org.qcobjects.models.js +40 -0
- package/js/org.qcobjects.tools.canvas.js +52 -0
- package/js/org.qcobjects.tools.js +59 -0
- package/js/org.qcobjects.tools.layouts.js +71 -0
- package/js/org.qcobjects.views.js +37 -0
- package/package.json +48 -0
- package/spec/support/jasmine.json +16 -0
- package/spec/testsSpec.js +9 -0
- package/templates/components/modalyoulose.tpl.html +3 -0
- package/templates/components/modalyouwin.tpl.html +4 -0
- package/templates/components/splashscreen.tpl.html +128 -0
- package/templates/components/swagger-ui.tpl.html +22 -0
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.3
|
|
3
|
+
* ________________
|
|
4
|
+
*
|
|
5
|
+
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
|
+
*
|
|
7
|
+
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
+
* QuickCorp/QCObjects is licensed under the
|
|
9
|
+
* GNU Lesser General Public License v3.0
|
|
10
|
+
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
+
*
|
|
12
|
+
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
+
* complete source code of licensed works and modifications under the same
|
|
14
|
+
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
+
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
+
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
+
* work may be distributed under different terms and without source code for
|
|
18
|
+
* the larger work.
|
|
19
|
+
*
|
|
20
|
+
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
|
+
*
|
|
22
|
+
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
23
|
+
* license document, but changing it is not allowed.
|
|
24
|
+
*/
|
|
25
|
+
(function() {
|
|
26
|
+
"use strict";
|
|
27
|
+
Package("org.qcobjects.components.splashscreen",[
|
|
28
|
+
Class("SplashScreenComponent", Component, {
|
|
29
|
+
name: "splashscreen",
|
|
30
|
+
cached: false,
|
|
31
|
+
shadowed: true,
|
|
32
|
+
_new_: function(o) {
|
|
33
|
+
var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
|
|
34
|
+
var component = this;
|
|
35
|
+
var isStartURL = (location.hash === ""
|
|
36
|
+
&& location.pathname === "/" && location.search === "")
|
|
37
|
+
|| CONFIG.get("routingWay") === "hash" && CONFIG.get("start_url","/") === location.hash
|
|
38
|
+
|| CONFIG.get("routingWay") === "pathname" && CONFIG.get("start_url","/") === location.pathname
|
|
39
|
+
|| CONFIG.get("routingWay") === "search" && CONFIG.get("start_url","/") === location.search;
|
|
40
|
+
var _enabled_ = isBrowser && isStartURL;
|
|
41
|
+
if (_enabled_){
|
|
42
|
+
component.basePath = CONFIG.get("splashscreenBasePath",CONFIG.get("remoteSDKPath"));
|
|
43
|
+
o.data.basePath = component.basePath;
|
|
44
|
+
var displayEffectDuration = 1000;
|
|
45
|
+
var duration = component.body.getAttribute("duration");
|
|
46
|
+
if (duration === null){
|
|
47
|
+
duration = 3000;
|
|
48
|
+
} else {
|
|
49
|
+
duration = parseInt(duration);
|
|
50
|
+
}
|
|
51
|
+
component._bgcolor = document.body.style.backgroundColor;
|
|
52
|
+
var _helper_ = function (){
|
|
53
|
+
if (!_helper_.executed){
|
|
54
|
+
var component = this;
|
|
55
|
+
var _componentRoot = (component.shadowed)?(component.shadowRoot.host):(component.body);
|
|
56
|
+
global.componentsStack.filter(c=>c.body.hasAttribute("splashscreen")).map(
|
|
57
|
+
function (mainComponent){
|
|
58
|
+
mainComponent.splashScreenComponent = component;
|
|
59
|
+
var _splash_screen_ = function (){
|
|
60
|
+
if (!_splash_screen_.executed){
|
|
61
|
+
var mainComponent = this;
|
|
62
|
+
var component = mainComponent.splashScreenComponent;
|
|
63
|
+
var mainElement = (mainComponent.shadowed)?(mainComponent.shadowRoot.host):(mainComponent.body);
|
|
64
|
+
mainComponent._mainPosition = mainElement.style.position;
|
|
65
|
+
mainElement.style.position = "fixed";
|
|
66
|
+
mainComponent._mainOpacity = mainElement.style.opacity;
|
|
67
|
+
_componentRoot.style.width = "100%";
|
|
68
|
+
_componentRoot.style.height = "100%";
|
|
69
|
+
document.body.style.backgroundColor = "#111111";
|
|
70
|
+
mainElement.style.opacity = 0;
|
|
71
|
+
setTimeout(function() {
|
|
72
|
+
if (typeof _componentRoot !== "undefined"){
|
|
73
|
+
document.body.style.backgroundColor = component._bgcolor;
|
|
74
|
+
_componentRoot.subelements("#slot-logo").map(function (slotlogo){
|
|
75
|
+
slotlogo.style.display = "block";
|
|
76
|
+
slotlogo.style.transformOrigin = "center";
|
|
77
|
+
Resize.apply(slotlogo,1,0);
|
|
78
|
+
});
|
|
79
|
+
Fade.apply(_componentRoot, 1, 0);
|
|
80
|
+
}
|
|
81
|
+
}, (duration-displayEffectDuration));
|
|
82
|
+
setTimeout(function() {
|
|
83
|
+
Fade.apply(mainElement, 0, 1);
|
|
84
|
+
mainElement.style.position = mainComponent._mainPosition;
|
|
85
|
+
document.body.style.backgroundColor = component._bgcolor;
|
|
86
|
+
_componentRoot.parentElement.remove();
|
|
87
|
+
}, duration);
|
|
88
|
+
}
|
|
89
|
+
_splash_screen_.executed=true;
|
|
90
|
+
};
|
|
91
|
+
_splash_screen_.executed=false;
|
|
92
|
+
mainComponent.addComponentHelper(_splash_screen_.bind(mainComponent));
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
_helper_.executed=true;
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
_helper_.executed=false;
|
|
99
|
+
component.addComponentHelper(_helper_.bind(component));
|
|
100
|
+
} else {
|
|
101
|
+
component.body.style.display="none";
|
|
102
|
+
}
|
|
103
|
+
_super_("Component", "_new_").call(this, o);
|
|
104
|
+
}
|
|
105
|
+
}),
|
|
106
|
+
Class ("VideoSplashScreenComponent",
|
|
107
|
+
ClassFactory("SplashScreenComponent"), {
|
|
108
|
+
name: "videosplashscreen",
|
|
109
|
+
cached: false,
|
|
110
|
+
shadowed: true,
|
|
111
|
+
tplsource: "inline",
|
|
112
|
+
template: `
|
|
113
|
+
<style>
|
|
114
|
+
:host * {
|
|
115
|
+
box-sizing: border-box;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:host {
|
|
119
|
+
zoom: 1.0;
|
|
120
|
+
width: device-width;
|
|
121
|
+
margin: 0;
|
|
122
|
+
top: 0;
|
|
123
|
+
left: 0;
|
|
124
|
+
right: 0;
|
|
125
|
+
bottom: 0;
|
|
126
|
+
position: absolute;
|
|
127
|
+
padding: 0;
|
|
128
|
+
min-width: 100vw;
|
|
129
|
+
min-height: 100vh;
|
|
130
|
+
width: 100vw;
|
|
131
|
+
height: 100vh;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
background-color: black;
|
|
134
|
+
}
|
|
135
|
+
#slot-logo::slotted(img) {
|
|
136
|
+
vertical-align: middle;
|
|
137
|
+
display: block;
|
|
138
|
+
width: 100vw;
|
|
139
|
+
left: 0;
|
|
140
|
+
margin: 0;
|
|
141
|
+
padding: 0;
|
|
142
|
+
top: 20vh;
|
|
143
|
+
bottom: 20vh;
|
|
144
|
+
position: absolute;
|
|
145
|
+
z-index: 9999999999;
|
|
146
|
+
transform-origin: center;
|
|
147
|
+
transform-style: preserve-3d;
|
|
148
|
+
filter: blur(0em);
|
|
149
|
+
transition: filter 0.5s;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:host * {
|
|
153
|
+
-webkit-user-select: none;
|
|
154
|
+
-moz-user-select: none;
|
|
155
|
+
-ms-user-select: none;
|
|
156
|
+
user-select: none;
|
|
157
|
+
-webkit-touch-callout: none;
|
|
158
|
+
/* prevent callout to copy image, etc when tap to hold */
|
|
159
|
+
-webkit-text-size-adjust: none;
|
|
160
|
+
/* prevent webkit from resizing text to fit */
|
|
161
|
+
-webkit-user-select: none;
|
|
162
|
+
/* prevent copy paste, to allow, change 'none' to 'text' */
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* FOCUS */
|
|
166
|
+
:host summary:focus,
|
|
167
|
+
:host a:focus,
|
|
168
|
+
:host button:focus {
|
|
169
|
+
outline: none;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.splashscreen,
|
|
173
|
+
.fullscreen-bg {
|
|
174
|
+
padding: 0;
|
|
175
|
+
margin: 0;
|
|
176
|
+
top: 0;
|
|
177
|
+
left: 0;
|
|
178
|
+
right: 0;
|
|
179
|
+
bottom: 0;
|
|
180
|
+
padding: 0;
|
|
181
|
+
background-attachment: fixed;
|
|
182
|
+
background-position: center;
|
|
183
|
+
background-clip: content-box;
|
|
184
|
+
background-size: cover;
|
|
185
|
+
position: absolute;
|
|
186
|
+
min-width: 100vw;
|
|
187
|
+
min-height: 100vh;
|
|
188
|
+
width: 100vw;
|
|
189
|
+
height: 100vh;
|
|
190
|
+
z-index: 0;
|
|
191
|
+
overflow: hidden;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.splashscreen .splashcontent {
|
|
195
|
+
top: 0;
|
|
196
|
+
left: 0;
|
|
197
|
+
right: 0;
|
|
198
|
+
bottom: 0;
|
|
199
|
+
margin: 0 auto;
|
|
200
|
+
width: 100vw;
|
|
201
|
+
height: 100vh;
|
|
202
|
+
padding: 0;
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
z-index: 1;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.splashscreen .splashcontent p {
|
|
208
|
+
color: white;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
video.fullscreen-bg__video {
|
|
212
|
+
top: 0;
|
|
213
|
+
left: 0;
|
|
214
|
+
bottom: 0;
|
|
215
|
+
right: 0;
|
|
216
|
+
margin: 0;
|
|
217
|
+
padding: 0;
|
|
218
|
+
position: absolute;
|
|
219
|
+
min-width: 100vw;
|
|
220
|
+
min-height: 100vh;
|
|
221
|
+
overflow: hidden;
|
|
222
|
+
z-index: 0;
|
|
223
|
+
object-fit: cover;
|
|
224
|
+
}
|
|
225
|
+
.splashscreen,
|
|
226
|
+
.fullscreen-bg {
|
|
227
|
+
background-image: url('{{background}}');
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
</style>
|
|
231
|
+
<div class="splashscreen">
|
|
232
|
+
<div class="fullscreen-bg splashcontent">
|
|
233
|
+
<video loop muted autoplay playsinline name="media" poster="{{background}}" class="fullscreen-bg__video" data-setup="{}" height="100%">
|
|
234
|
+
<source src="{{video_mp4}}" type="video/mp4">
|
|
235
|
+
<source src="{{video_ogg}}" type="video/ogg">
|
|
236
|
+
<source src="{{video_webm}}" type="video/webm">
|
|
237
|
+
</video>
|
|
238
|
+
<slot id="slot-logo" name="logo"></slot>
|
|
239
|
+
</div>
|
|
240
|
+
</div>
|
|
241
|
+
|
|
242
|
+
`
|
|
243
|
+
}),
|
|
244
|
+
Class ("CubeSplashScreenComponent",
|
|
245
|
+
ClassFactory("SplashScreenComponent"), {
|
|
246
|
+
name: "cubesplashscreen",
|
|
247
|
+
cached: false,
|
|
248
|
+
shadowed: true,
|
|
249
|
+
tplsource: "inline",
|
|
250
|
+
template: `
|
|
251
|
+
<style>
|
|
252
|
+
@keyframes spin {
|
|
253
|
+
0% {
|
|
254
|
+
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
16% {
|
|
258
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) rotateZ(0deg);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
33% {
|
|
262
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(90deg) rotateZ(180deg);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
50% {
|
|
266
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
66% {
|
|
270
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(360deg) rotateZ(270deg);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
83% {
|
|
274
|
+
transform: translateZ(-100px) rotateX(270deg) rotateY(180deg) rotateZ(180deg);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
100% {
|
|
278
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@keyframes spin-duplicate {
|
|
283
|
+
0% {
|
|
284
|
+
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
16% {
|
|
288
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) rotateZ(0deg);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
33% {
|
|
292
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(90deg) rotateZ(180deg);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
50% {
|
|
296
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
66% {
|
|
300
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(360deg) rotateZ(270deg);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
83% {
|
|
304
|
+
transform: translateZ(-100px) rotateX(270deg) rotateY(180deg) rotateZ(180deg);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
100% {
|
|
308
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
@keyframes roll {
|
|
313
|
+
0% {
|
|
314
|
+
transform: translate3d(-200px, -50px, -400px)
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
12% {
|
|
318
|
+
transform: translate3d(0px, 0, -100px)
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
25% {
|
|
322
|
+
transform: translate3d(200px, -50px, -400px)
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
37% {
|
|
326
|
+
transform: translate3d(0px, -100px, -800px)
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
50% {
|
|
330
|
+
transform: translate3d(-200px, -50px, -400px)
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
62% {
|
|
334
|
+
transform: translate3d(0px, 0, -100px)
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
75% {
|
|
338
|
+
transform: translate3d(200px, -50px, -400px)
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
87% {
|
|
342
|
+
transform: translate3d(0px, -100px, -800px)
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
100% {
|
|
346
|
+
transform: translate3d(-200px, -50px, -400px)
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
#wrapper {
|
|
351
|
+
position: relative;
|
|
352
|
+
width: 200px;
|
|
353
|
+
padding-top: 100px;
|
|
354
|
+
margin: 0 auto;
|
|
355
|
+
perspective: 1200px;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
#platform {
|
|
359
|
+
margin-top: 100px;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
#dice span {
|
|
363
|
+
position: absolute;
|
|
364
|
+
margin: 100px 0 0 100px;
|
|
365
|
+
display: block;
|
|
366
|
+
font-size: 2.5em;
|
|
367
|
+
padding: 10px;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
#dice {
|
|
371
|
+
position: absolute;
|
|
372
|
+
width: 200px;
|
|
373
|
+
height: 200px;
|
|
374
|
+
transform-style: preserve-3d;
|
|
375
|
+
animation: spin 50s infinite linear;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.side {
|
|
379
|
+
position: absolute;
|
|
380
|
+
width: 200px;
|
|
381
|
+
height: 200px;
|
|
382
|
+
background: #fff;
|
|
383
|
+
box-shadow: inset 0 0 40px #ccc;
|
|
384
|
+
border-radius: 40px;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
#dice .cover, #dice .inner {
|
|
388
|
+
background: #e0e0e0;
|
|
389
|
+
box-shadow: none;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
#dice .cover {
|
|
393
|
+
border-radius: 0;
|
|
394
|
+
transform-origin: center;
|
|
395
|
+
transform: translateZ(0px);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
#dice .cover.x {
|
|
399
|
+
transform-origin: center;
|
|
400
|
+
transform: rotateY(90deg);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
#dice .cover.z {
|
|
404
|
+
transform-origin: center;
|
|
405
|
+
transform: rotateX(90deg);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
#dice .front {
|
|
409
|
+
transform-origin: center;
|
|
410
|
+
transform: translateZ(100px);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
#dice .front.inner {
|
|
414
|
+
transform-origin: center;
|
|
415
|
+
transform: translateZ(98px);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
#dice .back {
|
|
419
|
+
transform-origin: center;
|
|
420
|
+
transform: rotateX(-180deg) translateZ(100px);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
#dice .back.inner {
|
|
424
|
+
transform-origin: center;
|
|
425
|
+
transform: rotateX(-180deg) translateZ(98px);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
#dice .right {
|
|
429
|
+
transform-origin: center;
|
|
430
|
+
transform: rotateY(90deg) translateZ(100px);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
#dice .right.inner {
|
|
434
|
+
transform-origin: center;
|
|
435
|
+
transform: rotateY(90deg) translateZ(98px);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
#dice .left {
|
|
439
|
+
transform-origin: center;
|
|
440
|
+
transform: rotateY(-90deg) translateZ(100px);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
#dice .left.inner {
|
|
444
|
+
transform-origin: center;
|
|
445
|
+
transform: rotateY(-90deg) translateZ(98px);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
#dice .top {
|
|
449
|
+
transform-origin: center;
|
|
450
|
+
transform: rotateX(90deg) translateZ(100px);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
#dice .top.inner {
|
|
454
|
+
transform-origin: center;
|
|
455
|
+
transform: rotateX(90deg) translateZ(98px);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
#dice .bottom {
|
|
459
|
+
transform-origin: center;
|
|
460
|
+
transform: rotateX(-90deg) translateZ(100px);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
#dice .bottom.inner {
|
|
464
|
+
transform-origin: center;
|
|
465
|
+
transform: rotateX(-90deg) translateZ(98px);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.dot {
|
|
469
|
+
position: absolute;
|
|
470
|
+
width: 46px;
|
|
471
|
+
height: 46px;
|
|
472
|
+
border-radius: 23px;
|
|
473
|
+
background: #444;
|
|
474
|
+
box-shadow: inset 5px 0 10px #000;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.dot.center {
|
|
478
|
+
margin: 77px 0 0 77px;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.dot.dtop {
|
|
482
|
+
margin-top: 20px;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.dot.dleft {
|
|
486
|
+
margin-left: 134px;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.dot.dright {
|
|
490
|
+
margin-left: 20px;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.dot.dbottom {
|
|
494
|
+
margin-top: 134px;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.dot.center.dleft {
|
|
498
|
+
margin: 77px 0 0 20px;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.dot.center.dright {
|
|
502
|
+
margin: 77px 0 0 134px;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
#background {
|
|
506
|
+
top: 0px;
|
|
507
|
+
left: 0px;
|
|
508
|
+
position: fixed;
|
|
509
|
+
z-index: -1;
|
|
510
|
+
width: 100%;
|
|
511
|
+
height: 100%;
|
|
512
|
+
background: var(--root-background, transparent);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
#dice .side.front,
|
|
516
|
+
#dice .side.top,
|
|
517
|
+
#dice .side.right,
|
|
518
|
+
#dice .side.left,
|
|
519
|
+
#dice .side.bottom,
|
|
520
|
+
#dice .side.back {
|
|
521
|
+
background-image: var(--background-3d-cube-image, "none");
|
|
522
|
+
background-size: cover;
|
|
523
|
+
background-origin: border-box;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
:root, :host {
|
|
528
|
+
--background-3d-cube-image: url('{{cube_image}}');
|
|
529
|
+
--box-width: 200px;
|
|
530
|
+
font-size:.9em;
|
|
531
|
+
font-family:sans-serif;
|
|
532
|
+
--root-background: {{background}};
|
|
533
|
+
}
|
|
534
|
+
</style>
|
|
535
|
+
|
|
536
|
+
<div id="background"></div>
|
|
537
|
+
<div id="wrapper">
|
|
538
|
+
<div id="platform">
|
|
539
|
+
<div id="dice">
|
|
540
|
+
<div class="side front">
|
|
541
|
+
</div>
|
|
542
|
+
<div class="side front inner"></div>
|
|
543
|
+
<div class="side top"></div>
|
|
544
|
+
<div class="side top inner"></div>
|
|
545
|
+
<div class="side right"></div>
|
|
546
|
+
<div class="side right inner"></div>
|
|
547
|
+
<div class="side left"></div>
|
|
548
|
+
<div class="side left inner"></div>
|
|
549
|
+
<div class="side bottom"></div>
|
|
550
|
+
<div class="side bottom inner"></div>
|
|
551
|
+
<div class="side back"></div>
|
|
552
|
+
<div class="side back inner"></div>
|
|
553
|
+
<div class="side cover x"></div>
|
|
554
|
+
<div class="side cover y"></div>
|
|
555
|
+
<div class="side cover z"></div>
|
|
556
|
+
</div>
|
|
557
|
+
</div>
|
|
558
|
+
</div>
|
|
559
|
+
|
|
560
|
+
`
|
|
561
|
+
})
|
|
562
|
+
]);
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
}).call(null);
|