qcobjects-sdk 2.4.60 → 2.4.62

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.
Files changed (77) hide show
  1. package/.dockerignore +98 -1
  2. package/.eslintignore +1 -2
  3. package/.github/workflows/static.yml +91 -0
  4. package/VERSION +1 -1
  5. package/config.json +4 -0
  6. package/package.json +31 -9
  7. package/src/QCObjects-SDK.d.ts +26 -0
  8. package/src/QCObjects-SDK.ts +108 -0
  9. package/src/index.d.ts +1 -1
  10. package/src/index.mts +2 -0
  11. package/src/js/org.qcobjects.cloud.auth.session.data.d.ts +1 -0
  12. package/src/js/{org.qcobjects.cloud.auth.session.data.js → org.qcobjects.cloud.auth.session.data.ts} +28 -22
  13. package/src/js/org.qcobjects.cloud.auth.session.usertoken.d.ts +2 -0
  14. package/src/js/org.qcobjects.cloud.auth.session.usertoken.ts +128 -0
  15. package/src/js/org.qcobjects.components.d.ts +10 -0
  16. package/src/js/org.qcobjects.components.grid.d.ts +3 -0
  17. package/src/js/org.qcobjects.components.grid.ts +95 -0
  18. package/src/js/org.qcobjects.components.list.d.ts +3 -0
  19. package/src/js/org.qcobjects.components.list.ts +83 -0
  20. package/src/js/org.qcobjects.components.notifications.d.ts +1 -0
  21. package/src/js/org.qcobjects.components.notifications.ts +191 -0
  22. package/src/js/org.qcobjects.components.slider.d.ts +1 -0
  23. package/src/js/{org.qcobjects.components.slider.js → org.qcobjects.components.slider.ts} +8 -6
  24. package/src/js/org.qcobjects.components.splashscreen.d.ts +28 -0
  25. package/src/js/org.qcobjects.components.splashscreen.ts +680 -0
  26. package/src/js/org.qcobjects.components.ts +336 -0
  27. package/src/js/org.qcobjects.controllers.d.ts +1 -0
  28. package/src/js/org.qcobjects.controllers.form.d.ts +1 -0
  29. package/src/js/{org.qcobjects.controllers.form.js → org.qcobjects.controllers.form.ts} +57 -59
  30. package/src/js/org.qcobjects.controllers.grid.d.ts +1 -0
  31. package/src/js/{org.qcobjects.controllers.grid.js → org.qcobjects.controllers.grid.ts} +102 -97
  32. package/src/js/org.qcobjects.controllers.list.d.ts +1 -0
  33. package/src/js/{org.qcobjects.controllers.list.js → org.qcobjects.controllers.list.ts} +86 -76
  34. package/src/js/org.qcobjects.controllers.slider.d.ts +1 -0
  35. package/src/js/org.qcobjects.controllers.slider.ts +158 -0
  36. package/src/js/org.qcobjects.controllers.swagger.d.ts +1 -0
  37. package/src/js/{org.qcobjects.controllers.swagger.js → org.qcobjects.controllers.swagger.ts} +13 -14
  38. package/src/js/{org.qcobjects.controllers.js → org.qcobjects.controllers.ts} +3 -6
  39. package/src/js/org.qcobjects.effects.d.ts +20 -0
  40. package/src/js/org.qcobjects.effects.ts +430 -0
  41. package/src/js/org.qcobjects.i18n_messages.d.ts +1 -0
  42. package/src/js/{org.qcobjects.i18n_messages.js → org.qcobjects.i18n_messages.ts} +36 -27
  43. package/src/js/org.qcobjects.modal.controllers.d.ts +1 -0
  44. package/src/js/{org.qcobjects.modal.controllers.js → org.qcobjects.modal.controllers.ts} +5 -6
  45. package/src/js/org.qcobjects.modal.effects.d.ts +1 -0
  46. package/src/js/{org.qcobjects.modal.effects.js → org.qcobjects.modal.effects.ts} +4 -1
  47. package/src/js/org.qcobjects.models.d.ts +1 -0
  48. package/src/js/{org.qcobjects.models.js → org.qcobjects.models.ts} +3 -24
  49. package/src/js/org.qcobjects.tools.canvas.d.ts +1 -0
  50. package/src/js/{org.qcobjects.tools.canvas.js → org.qcobjects.tools.canvas.ts} +14 -11
  51. package/src/js/org.qcobjects.tools.d.ts +1 -0
  52. package/src/js/org.qcobjects.tools.layouts.d.ts +1 -0
  53. package/src/js/org.qcobjects.tools.layouts.ts +85 -0
  54. package/src/js/{org.qcobjects.tools.js → org.qcobjects.tools.ts} +19 -11
  55. package/src/js/org.qcobjects.views.d.ts +1 -0
  56. package/src/js/{org.qcobjects.views.js → org.qcobjects.views.ts} +3 -5
  57. package/tsconfig.json +1 -1
  58. package/-m +0 -1
  59. package/src/QCObjects-SDK.js +0 -148
  60. package/src/index.mjs +0 -2
  61. package/src/js/org.qcobjects.cloud.auth.session.usertoken.js +0 -116
  62. package/src/js/org.qcobjects.components.grid.js +0 -65
  63. package/src/js/org.qcobjects.components.js +0 -276
  64. package/src/js/org.qcobjects.components.list.js +0 -59
  65. package/src/js/org.qcobjects.components.notifications.js +0 -190
  66. package/src/js/org.qcobjects.components.splashscreen.js +0 -645
  67. package/src/js/org.qcobjects.controllers.slider.js +0 -154
  68. package/src/js/org.qcobjects.effects.js +0 -345
  69. package/src/js/org.qcobjects.tools.layouts.js +0 -79
  70. /package/{css → src/css}/base-modal.css +0 -0
  71. /package/{css → src/css}/basic-layout-embedded-nav.css +0 -0
  72. /package/{css → src/css}/basic-layout.css +0 -0
  73. /package/{css → src/css}/components/horizontal-list.css +0 -0
  74. /package/{css → src/css}/components/list.css +0 -0
  75. /package/{css → src/css}/components/splashscreen.css +0 -0
  76. /package/{css → src/css}/modal.css +0 -0
  77. /package/src/{index.cjs → index.cts} +0 -0
@@ -1,154 +0,0 @@
1
- /**
2
- * QCObjects SDK 2.4
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 (global) {
26
- "use strict";
27
- Package("org.qcobjects.controllers.slider", [
28
-
29
- class SliderController extends Controller {
30
- dependencies = [];
31
- component = null;
32
- slideIndex = 0;
33
- duration = 7100;
34
- interval = null;
35
- sliderHandlerName = null;
36
-
37
- constructor({component, dependencies= [], duration = 7100, slideIndex=0, interval = null, sliderHandlerName = null}) {
38
- super({component, dependencies, duration, slideIndex, interval, sliderHandlerName});
39
- this.component = component;
40
- this._componentRoot = (component.shadowed) ? (component.shadowRoot) : (component.body);
41
- //TODO: Implement
42
- this.sliderHandlerName = "slider_" + this.component.__instanceID.toString();
43
- global.set(this.sliderHandlerName, this);
44
-
45
- }
46
-
47
-
48
- stop() {
49
- if (this.interval != null) {
50
- clearInterval(this.interval);
51
- }
52
- }
53
-
54
- plusSlidesAndStop(n) {
55
- this.stop();
56
- this.plusSlides(n);
57
- }
58
-
59
- plusSlides(n) {
60
- this.showSlides(this.slideIndex += n);
61
- }
62
-
63
- currentSlide(n) {
64
- this.stop();
65
- this.showSlides(this.slideIndex = n);
66
- }
67
-
68
- automate() {
69
- var controller = this;
70
- controller.interval = setInterval(function () {
71
- controller.plusSlides(1);
72
- }, controller.duration);
73
- }
74
-
75
- showSlides(n) {
76
- var controller = this;
77
- var slides = controller._componentRoot.subelements(".qcoSlides");
78
- var dots = controller._componentRoot.subelements(".qcoSlider__dots--dot");
79
-
80
- if (n > (slides.length - 1)) {
81
- controller.slideIndex = 0;
82
- }
83
- if (n < 0) {
84
- controller.slideIndex = 0;
85
- }
86
- slides.filter((slide, index)=> {return index!== controller.slideIndex;}).map((slide) => {
87
- (New(ClassFactory("Fade"))).apply(slide, 1, 0);
88
- });
89
- dots.filter((dot, index)=> {return index!== controller.slideIndex;}).map((dot) => {
90
- dot.classList.remove("active");
91
- });
92
- try {
93
- dots[controller.slideIndex].classList.add("active");
94
- } catch (e) {
95
- logger.debug(`Something went wrong when trying to activate a slide: ${controller.slideIndex} - ${e.message}`);
96
- }
97
- setTimeout(function () {
98
- slides.filter((slide, index)=> {return index!== controller.slideIndex;}).map((slide) => {
99
- slide.style.display = "none";
100
- });
101
- try {
102
- slides[controller.slideIndex].style.display = "block";
103
- (New(ClassFactory("Fade"))).apply(slides[controller.slideIndex], 0, 1);
104
-
105
- } catch (e) {
106
- logger.debug(`Something went wrong when trying to show a slide: ${controller.slideIndex} - ${e.message}`);
107
- }
108
- }, 700);
109
- }
110
-
111
- fillDots() {
112
- var controller = this;
113
- var slides = controller._componentRoot.subelements(".qcoSlides");
114
- slides.map((slide, index) => {
115
- var dotHTML = document.createElement("span");
116
- var dotContent = `<span class="qcoSlider__dots--dot" onclick="global.get('${controller.sliderHandlerName}').currentSlide(${index})"></span>`;
117
- dotHTML.innerHTML = dotContent;
118
- controller._componentRoot.subelements(".qcoSlider__dots")[0].append(dotHTML);
119
- });
120
-
121
- }
122
-
123
- done() {
124
- var controller = this;
125
- var slides = controller._componentRoot.subelements(".qcoSlides");
126
- slides.filter((slide, index)=> {return index!== controller.slideIndex;}).map((slide) => {
127
- slide.style.display = "none";
128
- });
129
- setTimeout(function () {
130
- controller.fillDots();
131
- controller.slideIndex = 0;
132
- controller.showSlides(this.slideIndex);
133
- controller.automate();
134
- }, 3000);
135
-
136
- }
137
-
138
- }
139
-
140
- ]);
141
-
142
- }).call(null, (typeof module === "object" && typeof module.exports === "object") ? (
143
- module.exports = (typeof globalThis !== "undefined"
144
- ? globalThis
145
- : typeof self !== "undefined"
146
- ? self
147
- : typeof window !== "undefined"
148
- ? window
149
- : typeof global !== "undefined"
150
- ? global
151
- : {})
152
- ) : ((typeof global === "object") ? (global) : (
153
- (typeof window === "object") ? (window) : ({})
154
- )));
@@ -1,345 +0,0 @@
1
- /**
2
- * QCObjects SDK 2.4
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
- "use strict";
26
- (function () {
27
- Package("org.qcobjects.effects.base", [
28
- class Fade extends Effect {
29
- duration = 1000;
30
-
31
- apply(element, alphaFrom, alphaTo) {
32
- var da = alphaTo - alphaFrom;
33
- this.animate({
34
- duration: this.duration,
35
- timing(timeFraction) {
36
- return timeFraction;
37
- },
38
- draw(progress) {
39
- logger.debug("animation progress: " + progress.toString());
40
- var alpha = alphaFrom + (progress * da / 100);
41
- logger.debug("alpha: " + alpha.toString());
42
- element.style.opacity = alpha.toString();
43
- }
44
- });
45
- }
46
- },
47
-
48
- class Move extends Effect {
49
- duration = 1000;
50
-
51
- apply(element, xfrom, yfrom, xto, yto) {
52
- var dx = xto - xfrom;
53
- var dy = yto - yfrom;
54
- element.style.transform = "translate(" + xfrom + "px," + yfrom + "px)";
55
- this.animate({
56
- duration: this.duration,
57
- timing(timeFraction) {
58
- return timeFraction;
59
- },
60
- draw(progress) {
61
- logger.debug("animation progress: " + progress.toString());
62
- var y = yfrom + (progress * dy / 100);
63
- var x = xfrom + (progress * dx / 100);
64
- logger.debug("x: " + x.toString() + " y:" + y.toString());
65
- element.style.transform = "translate(" + x + "px," + y + "px)";
66
- }
67
- });
68
- }
69
-
70
- }
71
-
72
-
73
- ]);
74
-
75
- Package("org.qcobjects.effects.extended", [
76
-
77
-
78
- class MoveXInFromRight extends Move {
79
- duration = 1000;
80
-
81
- apply(element) {
82
- super.apply.call(this, element, element.width, 0, 0, 0);
83
- }
84
- },
85
-
86
- class MoveXInFromLeft extends Move {
87
- duration = 1000;
88
-
89
- apply(element) {
90
- super.apply.call(this, element, -element.width, 0, 0, 0);
91
- }
92
- },
93
-
94
- class MoveYInFromBottom extends Move {
95
- duration = 1000;
96
-
97
- apply(element) {
98
- super.apply.call(this, element, 0, element.height, 0, 0);
99
- }
100
-
101
- },
102
-
103
- class MoveYInFromTop extends Move {
104
- duration = 1000;
105
-
106
- apply(element) {
107
- super.apply.call(this, element, 0, -element.height, 0, 0);
108
- }
109
- },
110
-
111
- class RotateX extends Effect {
112
- duration = 1000;
113
-
114
- apply(element, angleFrom, angleTo) {
115
- var da = angleTo - angleFrom;
116
- this.animate({
117
- duration: this.duration,
118
- timing(timeFraction) {
119
- return timeFraction;
120
- },
121
- draw(progress) {
122
- logger.debug("animation progress: " + progress.toString());
123
- var angle = Math.round(angleFrom + (progress * da / 100));
124
- logger.debug("angle: " + angle.toString());
125
- element.style.transform = "rotate3d(1,0,0," + angle.toString() + "deg)";
126
- }
127
- });
128
- }
129
-
130
- },
131
-
132
- class RotateY extends Effect {
133
- duration = 1000;
134
-
135
- apply(element, angleFrom, angleTo) {
136
- var da = angleTo - angleFrom;
137
- this.animate({
138
- duration: this.duration,
139
- timing(timeFraction) {
140
- return timeFraction;
141
- },
142
- draw(progress) {
143
- logger.debug("animation progress: " + progress.toString());
144
- var angle = Math.round(angleFrom + (progress * da / 100));
145
- logger.debug("angle: " + angle.toString());
146
- element.style.transform = "rotate3d(0,1,0," + angle.toString() + "deg)";
147
- }
148
- });
149
- }
150
- },
151
-
152
- class RotateZ extends Effect {
153
- duration = 1000;
154
-
155
- apply(element, angleFrom, angleTo) {
156
- var da = angleTo - angleFrom;
157
- this.animate({
158
- duration: this.duration,
159
- timing(timeFraction) {
160
- return timeFraction;
161
- },
162
- draw(progress) {
163
- logger.debug("animation progress: " + progress.toString());
164
- var angle = Math.round(angleFrom + (progress * da / 100));
165
- logger.debug("angle: " + angle.toString());
166
- element.style.transform = "rotate3d(0,0,1," + angle.toString() + "deg)";
167
- }
168
- });
169
- }
170
-
171
- },
172
-
173
- class Rotate extends Effect {
174
- duration = 1000;
175
-
176
- apply(element, angleFrom, angleTo) {
177
- var da = angleTo - angleFrom;
178
- this.animate({
179
- duration: this.duration,
180
- timing(timeFraction) {
181
- return timeFraction;
182
- },
183
- draw(progress) {
184
- logger.debug("animation progress: " + progress.toString());
185
- var angle = Math.round(angleFrom + (progress * da / 100));
186
- logger.debug("angle: " + angle.toString());
187
- element.style.transform = "rotate3d(1,1,1," + angle.toString() + "deg)";
188
- }
189
- });
190
- }
191
- },
192
-
193
- class Radius extends Effect {
194
- duration = 1000;
195
-
196
- apply(element, radiusFrom, radiusTo) {
197
- var dr = radiusTo - radiusFrom;
198
- this.animate({
199
- duration: this.duration,
200
- timing(timeFraction) {
201
- return timeFraction;
202
- },
203
- draw(progress) {
204
- logger.debug("animation progress: " + progress.toString());
205
- var radius = radiusFrom + (progress * dr / 100);
206
- logger.debug("radius: " + radius.toString());
207
- element.style.borderRadius = radius.toString() + "px";
208
- }
209
- });
210
- }
211
-
212
- },
213
-
214
- class Resize extends Effect {
215
- duration = 1000;
216
-
217
- apply(element, scaleFrom, scaleTo) {
218
- var ds = scaleTo - scaleFrom;
219
- this.animate({
220
- duration: this.duration,
221
- timing(timeFraction) {
222
- return timeFraction;
223
- },
224
- draw(progress) {
225
- logger.debug("animation progress: " + progress.toString());
226
- var scale = scaleFrom + (progress * ds / 100);
227
- logger.debug("resize: " + scale.toString());
228
- element.style.transformOrigin = "center";
229
- element.style.transform = "scale(" + scale + "," + scale + ")";
230
- }
231
- });
232
- }
233
-
234
- },
235
-
236
- class WipeLeft extends Effect {
237
- duration = 1000;
238
-
239
- apply(element, scaleFrom, scaleTo) {
240
- var ds = scaleTo - scaleFrom;
241
- this.animate({
242
- duration: this.duration,
243
- timing(timeFraction) {
244
- return timeFraction;
245
- },
246
- draw(progress) {
247
- logger.debug("animation progress: " + progress.toString());
248
- var scale = scaleFrom + (progress * ds / 100);
249
- logger.debug("wipe: " + scale.toString());
250
- element.style.transformOrigin = "right";
251
- element.style.transform = "scaleX(" + scale + ")";
252
- }
253
- });
254
- }
255
-
256
- },
257
-
258
- class WipeRight extends Effect {
259
- duration = 1000;
260
-
261
- apply(element, scaleFrom, scaleTo) {
262
- var ds = scaleTo - scaleFrom;
263
- this.animate({
264
- duration: this.duration,
265
- timing(timeFraction) {
266
- return timeFraction;
267
- },
268
- draw(progress) {
269
- logger.debug("animation progress: " + progress.toString());
270
- var scale = scaleFrom + (progress * ds / 100);
271
- logger.debug("wipe: " + scale.toString());
272
- element.style.transformOrigin = "left";
273
- element.style.transform = "scaleX(" + scale + ")";
274
- }
275
- });
276
- }
277
-
278
- },
279
-
280
- class WipeUp extends Effect {
281
-
282
- duration = 1000;
283
-
284
- apply(element, scaleFrom, scaleTo) {
285
- var ds = scaleTo - scaleFrom;
286
- this.animate({
287
- duration: this.duration,
288
- timing(timeFraction) {
289
- return timeFraction;
290
- },
291
- draw(progress) {
292
- logger.debug("animation progress: " + progress.toString());
293
- var scale = scaleFrom + (progress * ds / 100);
294
- logger.debug("wipe: " + scale.toString());
295
- element.style.transformOrigin = "bottom";
296
- element.style.transform = "scaleY(" + scale + ")";
297
- }
298
- });
299
- }
300
-
301
- },
302
-
303
- class WipeDown extends Effect {
304
- duration = 1000;
305
-
306
- apply(element, scaleFrom, scaleTo) {
307
- var ds = scaleTo - scaleFrom;
308
- this.animate({
309
- duration: this.duration,
310
- timing(timeFraction) {
311
- return timeFraction;
312
- },
313
- draw(progress) {
314
- logger.debug("animation progress: " + progress.toString());
315
- var scale = scaleFrom + (progress * ds / 100);
316
- logger.debug("wipe: " + scale.toString());
317
- element.style.transformOrigin = "top";
318
- element.style.transform = "scaleY(" + scale + ")";
319
- }
320
- });
321
- }
322
- }
323
-
324
- ]);
325
- Package("org.qcobjects.modal.effects", [
326
-
327
- class ModalFade extends Fade {
328
- duration = 500;
329
-
330
- },
331
-
332
- class ModalMoveDown extends Move {
333
- duration = 300;
334
-
335
- },
336
-
337
- class ModalMoveUp extends Move {
338
-
339
- duration = 800;
340
-
341
- }
342
-
343
- ]);
344
-
345
- }).call(null);
@@ -1,79 +0,0 @@
1
- /**
2
- * QCObjects SDK 2.4
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
- "use strict";
26
- (function() {
27
- Package("org.qcobjects.tools.layouts",[
28
-
29
- class BasicLayout extends InheritClass {
30
-
31
- constructor ({component = null, dependencies = []}) {
32
- super({component, dependencies});
33
- }
34
-
35
- load (){
36
- this.dependencies.push(New(SourceCSS,{
37
- external:(CONFIG.get("useLocalSDK"))?(false):(true),
38
- url:(CONFIG.get("useLocalSDK"))?("css/basic-layout.css"):(CONFIG.get("remoteSDKPath")+"css/basic-layout.css")
39
- }));
40
- }
41
-
42
- coloredBorder (){
43
- /*
44
- * A helper function to visualize the layout borders
45
- * Usage: BasicLayout.coloredBorder()
46
- */
47
- setTimeout(function (){
48
- Tag("nav").map(element=>element.style.border="20px solid #3333");
49
- Tag("nav").map(element=>element.style.backgroundColor="#129999");
50
- Tag("component>footer").map(element=>element.style.background="#876");
51
- Tag("component>div").map(element=>element.style.border="3px dashed #fff");
52
- Tag("component>section").map(element=>element.style.border="3px solid #000");
53
- Tag("component>section").map(element=>element.style.backgroundColor="#fffaaa");
54
-
55
- Tag("component>article").map(element=>element.style.border="3px dotted #000");
56
- Tag("component>header").map(element=>element.style.background="#789");
57
- Tag("component>footer").map(element=>element.style.background="#876");
58
- Tag("component>article:nth-child(1)").map(element=>element.style.border="1px solid #444");
59
- Tag("component>article:nth-child(1)").map(element=>element.style.backgroundColor="#555aaa");
60
- Tag("component>article:nth-child(2)").map(element=>element.style.backgroundColor="#aaa333");
61
- Tag("component>article:nth-child(3)").map(element=>element.style.backgroundColor="#54da82");
62
- Tag("*").map(element=>element.style.color="#fff");
63
-
64
-
65
- Tag("component>article").map(element=>Fade.apply(element,0,1));
66
- Tag("component>footer").map(element=>Fade.apply(element,0,1));
67
- Tag("component>header").map(element=>Fade.apply(element,0,1));
68
- Tag("nav").map(element=>{element.style.display="block";element.width=element.offsetParent.scrollWidth;MoveXInFromLeft.apply(element);});
69
- Tag("component>article").map(element=>{element.style.display="block";element.height=element.offsetParent.scrollHeight;MoveYInFromBottom.apply(element);});
70
- Tag("component>article:nth-child(2)").map(element=>{element.style.display="block";element.width=element.offsetParent.scrollWidth;MoveXInFromRight.apply(element);});
71
- },300);
72
- }
73
-
74
-
75
- }
76
-
77
- ]);
78
-
79
- }).call(null);
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes