nodality 1.0.0-beta.98 → 1.0.0
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/dist/KeyframeAnimation.cjs.js.LICENSE.txt +1 -1
- package/dist/KeyframeAnimation.esm.js.LICENSE.txt +1 -1
- package/dist/animator.cjs.js +1 -1
- package/dist/animator.cjs.js.LICENSE.txt +1 -1
- package/dist/animator.esm.js +1 -1
- package/dist/animator.esm.js.LICENSE.txt +1 -1
- package/dist/audionew.cjs.js +1 -1
- package/dist/audionew.cjs.js.LICENSE.txt +1 -1
- package/dist/audionew.esm.js +1 -1
- package/dist/audionew.esm.js.LICENSE.txt +1 -1
- package/dist/base.cjs.js.LICENSE.txt +1 -1
- package/dist/base.esm.js.LICENSE.txt +1 -1
- package/dist/betaDesktopBar.esm.js +1 -1
- package/dist/betaDesktopBar.esm.js.LICENSE.txt +1 -1
- package/dist/betaMobileBar.esm.js +1 -1
- package/dist/betaMobileBar.esm.js.LICENSE.txt +1 -1
- package/dist/bundle.umd.js +1 -1
- package/dist/bundle.umd.js.LICENSE.txt +1 -1
- package/dist/button.cjs.js +1 -1
- package/dist/button.cjs.js.LICENSE.txt +1 -1
- package/dist/button.esm.js +1 -1
- package/dist/button.esm.js.LICENSE.txt +1 -1
- package/dist/cardGetter.cjs.js.LICENSE.txt +1 -1
- package/dist/cardGetter.esm.js.LICENSE.txt +1 -1
- package/dist/center.cjs.js.LICENSE.txt +1 -1
- package/dist/center.esm.js.LICENSE.txt +1 -1
- package/dist/checkbox.cjs.js +1 -1
- package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
- package/dist/checkbox.esm.js +1 -1
- package/dist/checkbox.esm.js.LICENSE.txt +1 -1
- package/dist/circle.cjs.js +1 -1
- package/dist/circle.cjs.js.LICENSE.txt +1 -1
- package/dist/circle.esm.js +1 -1
- package/dist/circle.esm.js.LICENSE.txt +1 -1
- package/dist/code.cjs.js +1 -1
- package/dist/code.cjs.js.LICENSE.txt +1 -1
- package/dist/code.esm.js +1 -1
- package/dist/code.esm.js.LICENSE.txt +1 -1
- package/dist/container.cjs.js +1 -1
- package/dist/container.cjs.js.LICENSE.txt +1 -1
- package/dist/container.esm.js +1 -1
- package/dist/container.esm.js.LICENSE.txt +1 -1
- package/dist/datalist.cjs.js.LICENSE.txt +1 -1
- package/dist/datalist.esm.js.LICENSE.txt +1 -1
- package/dist/designer.cjs.js +1 -1
- package/dist/designer.cjs.js.LICENSE.txt +1 -1
- package/dist/designer.esm.js +1 -1
- package/dist/designer.esm.js.LICENSE.txt +1 -1
- package/dist/dropdown.cjs.js +1 -1
- package/dist/dropdown.cjs.js.LICENSE.txt +1 -1
- package/dist/dropdown.esm.js +1 -1
- package/dist/dropdown.esm.js.LICENSE.txt +1 -1
- package/dist/elementMapper.cjs.js +1 -1
- package/dist/elementMapper.cjs.js.LICENSE.txt +1 -1
- package/dist/elementMapper.esm.js +1 -1
- package/dist/elementMapper.esm.js.LICENSE.txt +1 -1
- package/dist/finalresult.esm.js +1 -1
- package/dist/finalresult.esm.js.LICENSE.txt +1 -1
- package/dist/flexCard.cjs.js +1 -1
- package/dist/flexCard.cjs.js.LICENSE.txt +1 -1
- package/dist/flexCard.esm.js +1 -1
- package/dist/flexCard.esm.js.LICENSE.txt +1 -1
- package/dist/flexGrid.cjs.js +1 -1
- package/dist/flexGrid.cjs.js.LICENSE.txt +1 -1
- package/dist/flexGrid.esm.js +1 -1
- package/dist/flexGrid.esm.js.LICENSE.txt +1 -1
- package/dist/flexRow.cjs.js +1 -1
- package/dist/flexRow.cjs.js.LICENSE.txt +1 -1
- package/dist/flexRow.esm.js +1 -1
- package/dist/flexRow.esm.js.LICENSE.txt +1 -1
- package/dist/floatingInput.cjs.js +1 -1
- package/dist/floatingInput.cjs.js.LICENSE.txt +1 -1
- package/dist/floatingInput.esm.js +1 -1
- package/dist/floatingInput.esm.js.LICENSE.txt +1 -1
- package/dist/free.cjs.js +1 -1
- package/dist/free.cjs.js.LICENSE.txt +1 -1
- package/dist/free.esm.js +1 -1
- package/dist/free.esm.js.LICENSE.txt +1 -1
- package/dist/horizontalScroller.esm.js.LICENSE.txt +1 -1
- package/dist/image.cjs.js +1 -1
- package/dist/image.cjs.js.LICENSE.txt +1 -1
- package/dist/image.esm.js +1 -1
- package/dist/image.esm.js.LICENSE.txt +1 -1
- package/dist/imagePicker.cjs.js +1 -1
- package/dist/imagePicker.cjs.js.LICENSE.txt +1 -1
- package/dist/imagePicker.esm.js +1 -1
- package/dist/imagePicker.esm.js.LICENSE.txt +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.LICENSE.txt +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.LICENSE.txt +1 -1
- package/dist/link.cjs.js +1 -1
- package/dist/link.cjs.js.LICENSE.txt +1 -1
- package/dist/link.esm.js +1 -1
- package/dist/link.esm.js.LICENSE.txt +1 -1
- package/dist/linkGetter.cjs.js +1 -1
- package/dist/linkGetter.cjs.js.LICENSE.txt +1 -1
- package/dist/linkGetter.esm.js +1 -1
- package/dist/linkGetter.esm.js.LICENSE.txt +1 -1
- package/dist/metaAdder.cjs.js.LICENSE.txt +1 -1
- package/dist/metaAdder.esm.js.LICENSE.txt +1 -1
- package/dist/modal2025.cjs.js.LICENSE.txt +1 -1
- package/dist/modal2025.esm.js.LICENSE.txt +1 -1
- package/dist/multiswitchers.esm.js +1 -1
- package/dist/multiswitchers.esm.js.LICENSE.txt +1 -1
- package/dist/newNavBar.cjs.js +1 -1
- package/dist/newNavBar.cjs.js.LICENSE.txt +1 -1
- package/dist/newNavBar.esm.js +1 -1
- package/dist/newNavBar.esm.js.LICENSE.txt +1 -1
- package/dist/picker.cjs.js +1 -1
- package/dist/picker.cjs.js.LICENSE.txt +1 -1
- package/dist/picker.esm.js +1 -1
- package/dist/picker.esm.js.LICENSE.txt +1 -1
- package/dist/polygon.cjs.js +1 -1
- package/dist/polygon.cjs.js.LICENSE.txt +1 -1
- package/dist/polygon.esm.js +1 -1
- package/dist/polygon.esm.js.LICENSE.txt +1 -1
- package/dist/progress.cjs.js.LICENSE.txt +1 -1
- package/dist/progress.esm.js.LICENSE.txt +1 -1
- package/dist/radio.cjs.js.LICENSE.txt +1 -1
- package/dist/radio.esm.js.LICENSE.txt +1 -1
- package/dist/range.cjs.js.LICENSE.txt +1 -1
- package/dist/range.esm.js.LICENSE.txt +1 -1
- package/dist/scrollvideo.cjs.js.LICENSE.txt +1 -1
- package/dist/scrollvideo.esm.js.LICENSE.txt +1 -1
- package/dist/sideBar.cjs.js +1 -1
- package/dist/sideBar.cjs.js.LICENSE.txt +1 -1
- package/dist/sideBar.esm.js +1 -1
- package/dist/sideBar.esm.js.LICENSE.txt +1 -1
- package/dist/sideNavBar.cjs.js +1 -1
- package/dist/sideNavBar.cjs.js.LICENSE.txt +1 -1
- package/dist/sideNavBar.esm.js +1 -1
- package/dist/sideNavBar.esm.js.LICENSE.txt +1 -1
- package/dist/simpleBar.cjs.js +1 -1
- package/dist/simpleBar.cjs.js.LICENSE.txt +1 -1
- package/dist/simpleBar.esm.js +1 -1
- package/dist/simpleBar.esm.js.LICENSE.txt +1 -1
- package/dist/stack.cjs.js.LICENSE.txt +1 -1
- package/dist/stack.esm.js.LICENSE.txt +1 -1
- package/dist/stacker.cjs.js.LICENSE.txt +1 -1
- package/dist/stacker.esm.js.LICENSE.txt +1 -1
- package/dist/table.cjs.js +1 -1
- package/dist/table.cjs.js.LICENSE.txt +1 -1
- package/dist/table.esm.js +1 -1
- package/dist/table.esm.js.LICENSE.txt +1 -1
- package/dist/text.cjs.js +1 -1
- package/dist/text.cjs.js.LICENSE.txt +1 -1
- package/dist/text.esm.js +1 -1
- package/dist/text.esm.js.LICENSE.txt +1 -1
- package/dist/textField.cjs.js +1 -1
- package/dist/textField.cjs.js.LICENSE.txt +1 -1
- package/dist/textField.esm.js +1 -1
- package/dist/textField.esm.js.LICENSE.txt +1 -1
- package/dist/transformanim.cjs.js.LICENSE.txt +1 -1
- package/dist/transformanim.esm.js.LICENSE.txt +1 -1
- package/dist/wrap.cjs.js.LICENSE.txt +1 -1
- package/dist/wrap.esm.js.LICENSE.txt +1 -1
- package/dist/zoomCard.cjs.js +1 -1
- package/dist/zoomCard.cjs.js.LICENSE.txt +1 -1
- package/dist/zoomCard.esm.js +1 -1
- package/dist/zoomCard.esm.js.LICENSE.txt +1 -1
- package/layout/DEPRECATED-PARAGRAPH.js +1 -1
- package/layout/animator.js +46 -6
- package/layout/audio.js +1 -1
- package/layout/audionew.js +1 -1
- package/layout/base-2.js +1 -1
- package/layout/base.js +1 -1
- package/layout/betaDesktopBar.js +6 -4
- package/layout/betaMobileBar.js +2 -2
- package/layout/box.js +1 -1
- package/layout/button.js +1 -1
- package/layout/cards.js +1 -1
- package/layout/center.js +1 -1
- package/layout/checkbox.js +1 -1
- package/layout/circle.js +1 -1
- package/layout/cleanRow.js +1 -1
- package/layout/code.js +1 -1
- package/layout/container.js +4 -1
- package/layout/custom.js +1 -1
- package/layout/divImage.js +1 -1
- package/layout/dropdown.js +1 -1
- package/layout/dropdown2025.js +2 -2
- package/layout/emptyElement.js +1 -1
- package/layout/externalStylesheet.js +1 -1
- package/layout/flexCard.js +1 -1
- package/layout/flexGrid.js +1 -1
- package/layout/flexrow.js +5 -1
- package/layout/footer.js +1 -1
- package/layout/formComponents/custom.js +1 -1
- package/layout/formComponents/dataList.js +1 -1
- package/layout/formComponents/floatingInput.js +1 -1
- package/layout/formComponents/form-all.js +1 -1
- package/layout/formComponents/form.js +1 -1
- package/layout/formComponents/imagePicker.js +1 -1
- package/layout/formComponents/picker.js +1 -1
- package/layout/formComponents/radio.js +1 -1
- package/layout/formComponents/radiogroup.js +1 -1
- package/layout/formComponents/range.js +1 -1
- package/layout/free.js +1 -1
- package/layout/grid-new.js +1 -1
- package/layout/grid.js +1 -1
- package/layout/gridSwitcher.js +1 -1
- package/layout/group.js +1 -1
- package/layout/header.js +1 -1
- package/layout/horizontalScroller.js +1 -1
- package/layout/image-old.js +1 -1
- package/layout/image.js +1 -1
- package/layout/index.js +1 -1
- package/layout/label.js +1 -1
- package/layout/link.js +63 -5
- package/layout/list-OLD.js +1 -1
- package/layout/list.js +1 -1
- package/layout/metaAdder.js +1 -1
- package/layout/modal2025.js +1 -1
- package/layout/modernwrap.js +1 -1
- package/layout/multiswitcher.js +1 -1
- package/layout/multiswitcherBeta.js +1 -1
- package/layout/navBar-OLD.js +1 -1
- package/layout/navBar.js +1 -1
- package/layout/navFactor/customDiv.js +1 -1
- package/layout/newFlatAdder.js +1 -1
- package/layout/newNavBar copy 2.js +1 -1
- package/layout/newNavBar copy.js +1 -1
- package/layout/newNavBar.js +2 -2
- package/layout/offsetContainer.js +1 -1
- package/layout/polygon.js +1 -1
- package/layout/progress.js +1 -1
- package/layout/row.js +1 -1
- package/layout/savedNewNavBar.js +1 -1
- package/layout/scrollvideo.js +1 -1
- package/layout/sideBar.js +2 -1
- package/layout/sideNavBar.js +71 -4
- package/layout/simpleBar.js +1 -1
- package/layout/slider2025.js +1 -1
- package/layout/spacer.js +1 -1
- package/layout/stack.js +1 -1
- package/layout/styler.js +1 -1
- package/layout/switcher.js +1 -1
- package/layout/table.js +6 -1
- package/layout/text.js +1 -5
- package/layout/textField.js +1 -1
- package/layout/ulist.js +1 -1
- package/layout/video.js +1 -1
- package/layout/withoutNew.js +1 -1
- package/layout/wrap.js +1 -1
- package/layout/zoomCard.js +1 -1
- package/lib/AppleAnim.js +1 -1
- package/lib/KeyframeAnimation.js +1 -1
- package/lib/Stacker.js +1 -1
- package/lib/TransformAnim.js +1 -1
- package/lib/cardGetter.js +1 -1
- package/lib/designer.js +72 -12
- package/lib/elementMapper.js +120 -101
- package/lib/linkGetter.js +1 -1
- package/lib/scrollvideo.js +1 -1
- package/package.json +20 -6
package/layout/table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.0
|
|
2
|
+
* nodality v1.0.0
|
|
3
3
|
* (c) 2025 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -64,6 +64,11 @@ class Table extends Animator {
|
|
|
64
64
|
) {
|
|
65
65
|
if (obj.gradient) {
|
|
66
66
|
this.globalGradient = obj.gradient.op.gradient;
|
|
67
|
+
|
|
68
|
+
if (obj.gradient.op.direction === "radial") {
|
|
69
|
+
this.globalGradient = "radial-gradient(circle at center, orange, green)";
|
|
70
|
+
}
|
|
71
|
+
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
if (obj.stroke) {
|
package/layout/text.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.0
|
|
2
|
+
* nodality v1.0.0
|
|
3
3
|
* (c) 2025 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -63,9 +63,7 @@ class Text extends Animator {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
toCode(){
|
|
66
|
-
|
|
67
66
|
if (this.excludeFromCodeTrue){
|
|
68
|
-
// this.code = ["new Text('').set({})"];
|
|
69
67
|
return [""];
|
|
70
68
|
}
|
|
71
69
|
|
|
@@ -77,8 +75,6 @@ class Text extends Animator {
|
|
|
77
75
|
.stringify(cleanedObj, null, 4)
|
|
78
76
|
.replace(/"([^"]+)":/g, '$1:');
|
|
79
77
|
|
|
80
|
-
console.log("OCO")
|
|
81
|
-
console.log(objString);
|
|
82
78
|
return [`new Text("${this.text}").set(${objString})`];
|
|
83
79
|
}
|
|
84
80
|
|
package/layout/textField.js
CHANGED
package/layout/ulist.js
CHANGED
package/layout/video.js
CHANGED
package/layout/withoutNew.js
CHANGED
package/layout/wrap.js
CHANGED
package/layout/zoomCard.js
CHANGED
package/lib/AppleAnim.js
CHANGED
package/lib/KeyframeAnimation.js
CHANGED
package/lib/Stacker.js
CHANGED
package/lib/TransformAnim.js
CHANGED
package/lib/cardGetter.js
CHANGED
package/lib/designer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.0
|
|
2
|
+
* nodality v1.0.0
|
|
3
3
|
* (c) 2025 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -421,7 +421,6 @@ customOptions.forEach(item => {
|
|
|
421
421
|
//customOptions = updated;
|
|
422
422
|
|
|
423
423
|
|
|
424
|
-
|
|
425
424
|
for (var i = 0; i < arr.length; i++) {
|
|
426
425
|
let el = arr[i];
|
|
427
426
|
let ela = null;
|
|
@@ -513,9 +512,9 @@ customOptions.forEach(item => {
|
|
|
513
512
|
values: [ // This can be empty or have any order of values
|
|
514
513
|
"ty:-20px",
|
|
515
514
|
"scale(3)",
|
|
516
|
-
"rotate(
|
|
517
|
-
"skew(
|
|
518
|
-
"perspective(
|
|
515
|
+
"rotate(3deg)",
|
|
516
|
+
"skew(3deg, 0deg)",
|
|
517
|
+
"perspective(100px)",
|
|
519
518
|
"matrix(1, 0, 0, 1, 50, 50)"
|
|
520
519
|
],
|
|
521
520
|
}
|
|
@@ -760,15 +759,16 @@ customOptions.forEach(item => {
|
|
|
760
759
|
|
|
761
760
|
else {
|
|
762
761
|
opts = [ // This can be empty or have any order of values
|
|
763
|
-
"ty
|
|
764
|
-
"
|
|
765
|
-
|
|
762
|
+
"ty:20px",
|
|
763
|
+
"tx:30px",
|
|
764
|
+
// "scale(3)",
|
|
765
|
+
"rotate(3deg)",
|
|
766
766
|
"skew(40deg, 0deg)",
|
|
767
|
-
|
|
768
|
-
|
|
767
|
+
// "perspective(500px)",
|
|
768
|
+
// "matrix(1, 0, 0, 1, 50, 50)"
|
|
769
769
|
];
|
|
770
770
|
}
|
|
771
|
-
|
|
771
|
+
/*
|
|
772
772
|
if (duration === "default"){
|
|
773
773
|
duration = "MEDIUM";
|
|
774
774
|
}
|
|
@@ -779,7 +779,7 @@ if (duration === "default"){
|
|
|
779
779
|
duration = "6s-ease-in-out";
|
|
780
780
|
} else if (duration === "SLOW"){
|
|
781
781
|
duration = "10s-ease-in-out";
|
|
782
|
-
}
|
|
782
|
+
} */
|
|
783
783
|
|
|
784
784
|
|
|
785
785
|
if (/*q == i*/ true){ // 23:07.20 Nice!!!! 23:04 bef
|
|
@@ -835,6 +835,66 @@ console.log(duration);
|
|
|
835
835
|
console.log(`----------------------------LLL ${i} ${customOptions.length}`);
|
|
836
836
|
|
|
837
837
|
|
|
838
|
+
|
|
839
|
+
function replaceMedium(obj) {
|
|
840
|
+
/*for (let key in obj) {
|
|
841
|
+
if (typeof obj[key] === "object") {
|
|
842
|
+
replaceMedium(obj[key]); // dive deeper
|
|
843
|
+
} else if (obj[key] === "medium") {
|
|
844
|
+
obj[key] = "6s-ease-in-out";
|
|
845
|
+
} else if (obj[key] === "fast") {
|
|
846
|
+
obj[key] = "3s-ease-in-out";
|
|
847
|
+
} else if (obj[key] === "slow") {
|
|
848
|
+
obj[key] = "9s-ease-in-out";
|
|
849
|
+
} else if (obj[key] === "default"){
|
|
850
|
+
alert("PP")
|
|
851
|
+
delete obj[key];
|
|
852
|
+
}
|
|
853
|
+
}*/
|
|
854
|
+
|
|
855
|
+
/* for (let key of Object.keys(obj)) {
|
|
856
|
+
if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
857
|
+
replaceMedium(obj[key]); // dive deeper
|
|
858
|
+
} else if (obj[key] && obj[key].toLowerCase() === "medium") {
|
|
859
|
+
obj[key] = "6s-ease-in-out";
|
|
860
|
+
} else if (obj[key] && obj[key].toLowerCase() === "fast") {
|
|
861
|
+
obj[key] = "3s-ease-in-out";
|
|
862
|
+
} else if (obj[key] && obj[key].toLowerCase() === "slow") {
|
|
863
|
+
obj[key] = "9s-ease-in-out";
|
|
864
|
+
} else if (obj[key] && obj[key].toLowerCase() === "default") {
|
|
865
|
+
// alert("PP");
|
|
866
|
+
delete obj[key]; // works now
|
|
867
|
+
}
|
|
868
|
+
}*/
|
|
869
|
+
|
|
870
|
+
for (let key of Object.keys(obj)) {
|
|
871
|
+
if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
872
|
+
replaceMedium(obj[key]); // dive deeper
|
|
873
|
+
} else if (typeof obj[key] === "string") {
|
|
874
|
+
switch (obj[key].toLowerCase()) {
|
|
875
|
+
case "medium":
|
|
876
|
+
obj[key] = "6s-ease-in-out";
|
|
877
|
+
break;
|
|
878
|
+
case "fast":
|
|
879
|
+
obj[key] = "3s-ease-in-out";
|
|
880
|
+
break;
|
|
881
|
+
case "slow":
|
|
882
|
+
obj[key] = "9s-ease-in-out";
|
|
883
|
+
break;
|
|
884
|
+
case "default":
|
|
885
|
+
delete obj[key];
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
replaceMedium(customOptions);
|
|
893
|
+
|
|
894
|
+
console.log("SENDING CUSTOM OPTIONS");
|
|
895
|
+
|
|
896
|
+
console.log(customOptions);
|
|
897
|
+
|
|
838
898
|
const matchEls = ["h1", "h2", "h3", "h4", "h5", "h6", "p"].includes(el.type) || el.type === "img" || el.type === "a";
|
|
839
899
|
|
|
840
900
|
if (matchEls) {
|
package/lib/elementMapper.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.0
|
|
2
|
+
* nodality v1.0.0
|
|
3
3
|
* (c) 2025 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -772,13 +772,14 @@ if (obj.el.dropdown){
|
|
|
772
772
|
breakpoints: [ // 172800 almost
|
|
773
773
|
{
|
|
774
774
|
at: "0px", view: new MobileBar().set({
|
|
775
|
-
background: "
|
|
775
|
+
background: "#ecf0f1",
|
|
776
776
|
mar: [{ "a": 21 }],
|
|
777
|
-
brand: new Text("
|
|
777
|
+
brand: new Text("Company").set({size: "S6", font: "Helvetica"}),
|
|
778
778
|
hamburgerColour: "#3498db",
|
|
779
779
|
radius: "1rem",
|
|
780
780
|
}).add([
|
|
781
|
-
|
|
781
|
+
|
|
782
|
+
new Link().set({text: "About", url: "#a"}),//.render()
|
|
782
783
|
|
|
783
784
|
|
|
784
785
|
|
|
@@ -795,7 +796,7 @@ if (obj.el.dropdown){
|
|
|
795
796
|
height: "auto",
|
|
796
797
|
|
|
797
798
|
}).add([
|
|
798
|
-
new Text("
|
|
799
|
+
new Text("More")
|
|
799
800
|
.set({
|
|
800
801
|
cursor: "hand",
|
|
801
802
|
icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -807,7 +808,7 @@ if (obj.el.dropdown){
|
|
|
807
808
|
|
|
808
809
|
}),
|
|
809
810
|
|
|
810
|
-
new Text("
|
|
811
|
+
new Text("Our story")
|
|
811
812
|
.set({
|
|
812
813
|
cursor: "hand",
|
|
813
814
|
// icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -819,7 +820,7 @@ if (obj.el.dropdown){
|
|
|
819
820
|
|
|
820
821
|
}),
|
|
821
822
|
|
|
822
|
-
new Text("
|
|
823
|
+
new Text("Team")
|
|
823
824
|
.set({
|
|
824
825
|
cursor: "hand",
|
|
825
826
|
// icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -835,14 +836,14 @@ if (obj.el.dropdown){
|
|
|
835
836
|
|
|
836
837
|
|
|
837
838
|
|
|
838
|
-
new Link("B").set({text: "
|
|
839
|
-
new Link("C").set({text: "
|
|
839
|
+
new Link("B").set({text: "About", url: "#b"}),//.render()
|
|
840
|
+
new Link("C").set({text: "Contact", url: "https://www.abcnews.com"})//.render()
|
|
840
841
|
])//.addNavItem(new Link("C").set({}).render())
|
|
841
842
|
},
|
|
842
843
|
|
|
843
844
|
{
|
|
844
845
|
at: "1200px", view: new DesktopBar().set({
|
|
845
|
-
background: "
|
|
846
|
+
background: "#ecf0f1",
|
|
846
847
|
mar: [{ "a": 21 }],
|
|
847
848
|
maxHeight: "100px",
|
|
848
849
|
radius: "1rem"
|
|
@@ -851,7 +852,7 @@ if (obj.el.dropdown){
|
|
|
851
852
|
})
|
|
852
853
|
// .setBrand(new Text("A").set({}).render())
|
|
853
854
|
.add([
|
|
854
|
-
new Text("
|
|
855
|
+
new Text("Company").set({size: "S6", font: "Helvetica"}),
|
|
855
856
|
new Spacer(true),
|
|
856
857
|
|
|
857
858
|
// new Link("O").set({text: "O", url: "#a"}),
|
|
@@ -868,7 +869,7 @@ if (obj.el.dropdown){
|
|
|
868
869
|
radius: "30px",
|
|
869
870
|
width: "130px"
|
|
870
871
|
}).add([
|
|
871
|
-
new Text("
|
|
872
|
+
new Text("More")
|
|
872
873
|
.set({
|
|
873
874
|
cursor: "hand",
|
|
874
875
|
icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -883,7 +884,7 @@ if (obj.el.dropdown){
|
|
|
883
884
|
|
|
884
885
|
new Wrapper().set({
|
|
885
886
|
flexDir: "column",
|
|
886
|
-
|
|
887
|
+
// background: "orange",
|
|
887
888
|
mar: [{"t": "10px"}],
|
|
888
889
|
radius: ".3rem"}).add([
|
|
889
890
|
|
|
@@ -891,7 +892,7 @@ new Wrapper().set({
|
|
|
891
892
|
|
|
892
893
|
new Link("")
|
|
893
894
|
.set({
|
|
894
|
-
text: "
|
|
895
|
+
text: "Who we are", // BEWARE
|
|
895
896
|
url: "jk",
|
|
896
897
|
cursor: "hand",
|
|
897
898
|
// icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -904,7 +905,7 @@ new Wrapper().set({
|
|
|
904
905
|
|
|
905
906
|
new Link("")
|
|
906
907
|
.set({
|
|
907
|
-
text: "
|
|
908
|
+
text: "Info",
|
|
908
909
|
url: "#u",
|
|
909
910
|
cursor: "hand",
|
|
910
911
|
// icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -918,7 +919,7 @@ new Wrapper().set({
|
|
|
918
919
|
|
|
919
920
|
new Link("")
|
|
920
921
|
.set({
|
|
921
|
-
text: "
|
|
922
|
+
text: "About",
|
|
922
923
|
url: "#u",
|
|
923
924
|
cursor: "hand",
|
|
924
925
|
// icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -947,9 +948,9 @@ new Wrapper().set({
|
|
|
947
948
|
|
|
948
949
|
|
|
949
950
|
|
|
950
|
-
new Link(
|
|
951
|
-
new Link(
|
|
952
|
-
new Link(
|
|
951
|
+
new Link().set({ text: "About", url: "#a"}),//.render()
|
|
952
|
+
new Link().set({ text: "Services", url: "#a"}),//.render()
|
|
953
|
+
new Link().set({ text: "Contact", url: "#a"})//.render()
|
|
953
954
|
// new Link("C").set({})//.render()
|
|
954
955
|
])
|
|
955
956
|
/*.addNavItem(
|
|
@@ -1012,82 +1013,91 @@ new Wrapper().set({
|
|
|
1012
1013
|
font: "Arial",
|
|
1013
1014
|
pad: [{a:20}],
|
|
1014
1015
|
bold: true,
|
|
1015
|
-
|
|
1016
|
+
tags: {open: "sidebar:open", close: "sidebar:closed"},
|
|
1017
|
+
align: "left", // 21:04:58
|
|
1018
|
+
hover: {
|
|
1019
|
+
color: "wheat",
|
|
1020
|
+
animation: 0.3
|
|
1021
|
+
}
|
|
1016
1022
|
}));
|
|
1017
1023
|
|
|
1018
1024
|
|
|
1019
1025
|
const dropdown = new Dropdown().set({
|
|
1020
1026
|
behaviour: "mouseover",
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1027
|
+
pad: [{ "a": 40 }],
|
|
1028
|
+
//socenter: true,
|
|
1029
|
+
padding: "10px",
|
|
1030
|
+
// border: "1px solid black",
|
|
1031
|
+
animation: { // also works without animation block
|
|
1032
|
+
range: ["0px", "1900px"],
|
|
1033
|
+
op: {
|
|
1034
|
+
name: "animation",
|
|
1035
|
+
color: "green", // 102410 19/11/24 staggered
|
|
1036
|
+
width: "1px",
|
|
1037
|
+
keyframesOpen: [ // staggered effect
|
|
1038
|
+
{ transform: `translate(100%, ${1 * 10}%)`, opacity: 0 },
|
|
1039
|
+
{ transform: `translate(0%)`, opacity: 1 }
|
|
1040
|
+
],
|
|
1041
|
+
keyframesClose: [ // put where approprriate
|
|
1042
|
+
{ transform: 'translate(0%)', opacity: 1 },
|
|
1043
|
+
{ transform: `translate(100%, ${1 * 10}%)`, opacity: 0 }
|
|
1044
|
+
],
|
|
1045
|
+
openOptions: {
|
|
1046
|
+
duration: 300,
|
|
1047
|
+
fill: 'forwards',
|
|
1048
|
+
delay: 1000 // 1000
|
|
1049
|
+
},
|
|
1050
|
+
closeOptions: {
|
|
1051
|
+
duration: 1, // 1 should be acceptable here when I close
|
|
1052
|
+
fill: 'forwards',
|
|
1053
|
+
delay: 1000 // 1000 why does 3000 work during open but not during close??
|
|
1054
|
+
},
|
|
1055
|
+
},
|
|
1048
1056
|
},
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1057
|
+
}).add([
|
|
1058
|
+
new Text("More")
|
|
1059
|
+
.set({
|
|
1060
|
+
cursor: "hand",
|
|
1061
|
+
icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
1062
|
+
fluidc: "S6",
|
|
1063
|
+
pad: [{ l: 10, r: 10 }],
|
|
1064
|
+
font: "Arial",
|
|
1065
|
+
align: "center",
|
|
1066
|
+
weight: "bold",
|
|
1067
|
+
|
|
1068
|
+
})
|
|
1069
|
+
|
|
1070
|
+
,
|
|
1071
|
+
new Wrapper()
|
|
1072
|
+
.set({
|
|
1073
|
+
centerColumn: true,
|
|
1074
|
+
radius: "0.7rem", background: "#1abc9c",
|
|
1075
|
+
makeResponsiveBehaviour: "undefined",
|
|
1076
|
+
})
|
|
1077
|
+
.add([
|
|
1078
|
+
|
|
1079
|
+
new Link()
|
|
1080
|
+
.set({
|
|
1081
|
+
pad: [{ a: 10 }],
|
|
1082
|
+
font: "Arial",
|
|
1083
|
+
hover: { color: "wheat", animation: 0.3 },
|
|
1084
|
+
bold: true,
|
|
1085
|
+
link: "https://www.apple.com",
|
|
1086
|
+
text: "Second",
|
|
1087
|
+
icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/32/32339.png" },
|
|
1088
|
+
})
|
|
1089
|
+
,
|
|
1090
|
+
new Link()
|
|
1091
|
+
.set({
|
|
1092
|
+
pad: [{ a: 10 }],
|
|
1093
|
+
font: "Arial",
|
|
1094
|
+
hover: { color: "wheat", animation: 0.3 },
|
|
1095
|
+
bold: true,
|
|
1096
|
+
link: "https://www.apple.com",
|
|
1097
|
+
text: "Third",
|
|
1098
|
+
icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/32/32339.png" },
|
|
1099
|
+
})
|
|
1100
|
+
])]);
|
|
1091
1101
|
|
|
1092
1102
|
|
|
1093
1103
|
|
|
@@ -1099,12 +1109,17 @@ new Wrapper().set({
|
|
|
1099
1109
|
text: i.title,
|
|
1100
1110
|
link: i.link,
|
|
1101
1111
|
isNavA: true,
|
|
1102
|
-
url: "#
|
|
1112
|
+
url: "#myURL",
|
|
1103
1113
|
id: "#" + i.title.toLowerCase(),
|
|
1104
1114
|
font: "Arial",
|
|
1105
1115
|
pad: [{a:20}],
|
|
1106
1116
|
bold: true,
|
|
1117
|
+
tags: {open: "sidebar:open", close: "sidebar:closed"},
|
|
1107
1118
|
align: "left", // 21:04:58
|
|
1119
|
+
hover: {
|
|
1120
|
+
color: "wheat",
|
|
1121
|
+
animation: 0.3
|
|
1122
|
+
},
|
|
1108
1123
|
animation: { // also works without animation block
|
|
1109
1124
|
range: ["0px", "1900px"],
|
|
1110
1125
|
op: {
|
|
@@ -1143,14 +1158,14 @@ if (obj.el.dropdown){
|
|
|
1143
1158
|
|
|
1144
1159
|
// Always require link wrapper
|
|
1145
1160
|
const linkWrapper = new Wrapper().set({column: true}).add([
|
|
1146
|
-
new Text("
|
|
1161
|
+
new Text("Sidebar")
|
|
1147
1162
|
.set({
|
|
1148
|
-
|
|
1163
|
+
size: "S6",
|
|
1149
1164
|
font: "Arial",
|
|
1150
1165
|
id: "#olod",
|
|
1151
1166
|
italic: true,
|
|
1152
1167
|
animation: {range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}},
|
|
1153
|
-
pad: [{l:
|
|
1168
|
+
pad: [{l:20}, {t:20}], // Insert in the right plce
|
|
1154
1169
|
// pad: {sides: ["all"], value: "1rem"}
|
|
1155
1170
|
}),
|
|
1156
1171
|
|
|
@@ -1159,7 +1174,7 @@ if (obj.el.dropdown){
|
|
|
1159
1174
|
obj.el.animation ? animatedLinks[2] : links[2],
|
|
1160
1175
|
(obj.el.animation && obj.el.dropdown) ? animatedLinks[3] : new Text("").set({}).excludeFromCode(),
|
|
1161
1176
|
|
|
1162
|
-
new Text("
|
|
1177
|
+
new Text("Company, 2025")
|
|
1163
1178
|
.set({ // no ID, no animation
|
|
1164
1179
|
pad: [{a: 20}],
|
|
1165
1180
|
animation: {range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}},
|
|
@@ -1196,6 +1211,8 @@ if (obj.el.dropdown){
|
|
|
1196
1211
|
background: "#ecf0f1",
|
|
1197
1212
|
hamColour: {opened: "#1abc9c", closed: "#e67e22"},
|
|
1198
1213
|
mobileSize: "1.2em",
|
|
1214
|
+
fixed: true,
|
|
1215
|
+
tags: {open: "sidebar:open", close: "sidebar:closed"}
|
|
1199
1216
|
}).items(obj.el.offcanvas ? offCanvas : linkWrapper );
|
|
1200
1217
|
|
|
1201
1218
|
|
|
@@ -1224,7 +1241,7 @@ if (obj.el.dropdown){
|
|
|
1224
1241
|
templateCols = null;
|
|
1225
1242
|
}
|
|
1226
1243
|
5
|
|
1227
|
-
if (ft.op.value === "
|
|
1244
|
+
if (ft.op.value === "img-overlay-text"){ // 17:43:03
|
|
1228
1245
|
spanObjects = {
|
|
1229
1246
|
text: {row: "1 / span 2", col: "3 / span 2"},
|
|
1230
1247
|
image: {row: "2 / span 3", col: "3 / 3"}
|
|
@@ -1232,7 +1249,7 @@ if (obj.el.dropdown){
|
|
|
1232
1249
|
}
|
|
1233
1250
|
|
|
1234
1251
|
// react on by value to control amount
|
|
1235
|
-
if (ft.op.value === "
|
|
1252
|
+
if (ft.op.value === "img-leftof-text") { // no 3-6
|
|
1236
1253
|
spanObjects = {
|
|
1237
1254
|
text: {row: "1", col: "1 / 3"},
|
|
1238
1255
|
image: {row: "1", col: "3 / 4"}
|
|
@@ -1253,16 +1270,17 @@ if (obj.el.dropdown){
|
|
|
1253
1270
|
new Text("I am free")
|
|
1254
1271
|
.set({
|
|
1255
1272
|
border: "3px solid green",
|
|
1256
|
-
|
|
1257
|
-
|
|
1273
|
+
font: "Arial", // 23:11:24 08/11/24 "font" works also?
|
|
1274
|
+
size: "S1",
|
|
1258
1275
|
color: "#1abc9c",
|
|
1259
1276
|
gpos: spanObjects != null ? (spanObjects.text) : null, // "span 2" can also work here as string
|
|
1260
1277
|
zIndex: 1
|
|
1261
1278
|
}),
|
|
1262
1279
|
|
|
1263
|
-
new Image(
|
|
1280
|
+
new Image()
|
|
1264
1281
|
.set({
|
|
1265
|
-
|
|
1282
|
+
url: "https://upload.wikimedia.org/wikipedia/commons/a/ac/MSC_World_Europa_-_Saint-Nazaire_-_June_2022.jpg",
|
|
1283
|
+
// url: "https://www.cruisemapper.com/images/ships/2183-e9681865a61.jpg",
|
|
1266
1284
|
width: "400px",
|
|
1267
1285
|
height: "auto",
|
|
1268
1286
|
gpos: spanObjects != null ? (spanObjects.image) : null,
|
|
@@ -1500,7 +1518,8 @@ const blast = this.filtero("blast", el.id, obj.customOptions);
|
|
|
1500
1518
|
background: "#3498db",
|
|
1501
1519
|
pad: [{ lr: "0.5rem", tb: "1rem" }],
|
|
1502
1520
|
radius: "0.4rem",
|
|
1503
|
-
color: "white"
|
|
1521
|
+
color: "white",
|
|
1522
|
+
mar: [{"a": 21}]
|
|
1504
1523
|
})
|
|
1505
1524
|
])`;
|
|
1506
1525
|
|