nodality 1.0.215 → 1.0.217
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/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 +1 -1
- package/dist/base.cjs.js.LICENSE.txt +1 -1
- package/dist/base.esm.js +1 -1
- package/dist/base.esm.js.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.cjs.js +1 -1
- package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.esm.js +1 -1
- package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.cjs.js +1 -1
- package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.esm.js +1 -1
- package/dist/beta-mobile-bar.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/card-getter.cjs.js.LICENSE.txt +1 -1
- package/dist/card-getter.esm.js.LICENSE.txt +1 -1
- package/dist/center.cjs.js +1 -1
- package/dist/center.cjs.js.LICENSE.txt +1 -1
- package/dist/center.esm.js +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/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/data-list.cjs.js.LICENSE.txt +1 -1
- package/dist/data-list.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/element-mapper.cjs.js +1 -1
- package/dist/element-mapper.cjs.js.LICENSE.txt +1 -1
- package/dist/element-mapper.esm.js +1 -1
- package/dist/element-mapper.esm.js.LICENSE.txt +1 -1
- package/dist/finalresult.esm.js +1 -1
- package/dist/finalresult.esm.js.LICENSE.txt +1 -1
- package/dist/flex-card.cjs.js +1 -1
- package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-card.esm.js +1 -1
- package/dist/flex-card.esm.js.LICENSE.txt +1 -1
- package/dist/flex-grid.cjs.js +1 -1
- package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-grid.esm.js +1 -1
- package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
- package/dist/flex-row.cjs.js +1 -1
- package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-row.esm.js +1 -1
- package/dist/flex-row.esm.js.LICENSE.txt +1 -1
- package/dist/floating-input.cjs.js +1 -1
- package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
- package/dist/floating-input.esm.js +1 -1
- package/dist/floating-input.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/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
- package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
- package/dist/image-picker.cjs.js +1 -1
- package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
- package/dist/image-picker.esm.js +1 -1
- package/dist/image-picker.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/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/keyframe-animation.cjs.js.LICENSE.txt +1 -1
- package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
- package/dist/link-getter.cjs.js +1 -1
- package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
- package/dist/link-getter.esm.js +1 -1
- package/dist/link-getter.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/meta-adder.cjs.js.LICENSE.txt +1 -1
- package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
- package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
- package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
- package/dist/multiswitcher.cjs.js +1 -1
- package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
- package/dist/multiswitcher.esm.js +1 -1
- package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.cjs.js +1 -1
- package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.esm.js +1 -1
- package/dist/new-nav-bar.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/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/scroll-video.cjs.js.LICENSE.txt +1 -1
- package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
- package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/side-bar.esm.js.LICENSE.txt +1 -1
- package/dist/side-nav-bar.cjs.js +1 -1
- package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/side-nav-bar.esm.js +1 -1
- package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/simple-bar.cjs.js +1 -1
- package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/simple-bar.esm.js +1 -1
- package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
- package/dist/slider-2025.cjs.js +1 -1
- package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
- package/dist/slider-2025.esm.js +1 -1
- package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
- package/dist/spacer.cjs.js.LICENSE.txt +1 -1
- package/dist/spacer.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-field.cjs.js +1 -1
- package/dist/text-field.cjs.js.LICENSE.txt +1 -1
- package/dist/text-field.esm.js +1 -1
- package/dist/text-field.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/theme.cjs.js.LICENSE.txt +1 -1
- package/dist/theme.esm.js.LICENSE.txt +1 -1
- package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
- package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
- package/dist/ulist.cjs.js +1 -1
- package/dist/ulist.cjs.js.LICENSE.txt +1 -1
- package/dist/ulist.esm.js +1 -1
- package/dist/ulist.esm.js.LICENSE.txt +1 -1
- package/dist/video.cjs.js +1 -1
- package/dist/video.cjs.js.LICENSE.txt +1 -1
- package/dist/video.esm.js +1 -1
- package/dist/video.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/zoom-card.cjs.js +1 -1
- package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
- package/dist/zoom-card.esm.js +1 -1
- package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
- package/layout/animator.js +321 -1987
- package/layout/audio.js +1 -5
- package/layout/audionew.js +1 -1
- package/layout/base.js +3 -17
- package/layout/beta-desktop-bar.js +1 -1
- package/layout/beta-mobile-bar.js +2 -9
- package/layout/button.js +7 -30
- package/layout/center.js +3 -38
- package/layout/checkbox.js +1 -5
- package/layout/circle.js +9 -8
- package/layout/code.js +1 -1
- package/layout/container.js +22 -53
- package/layout/dropdown-2025.js +1 -1
- package/layout/flex-card.js +20 -10
- package/layout/flex-grid.js +1 -5
- package/layout/flex-row.js +2 -75
- package/layout/form-components/custom.js +1 -1
- package/layout/form-components/data-list.js +1 -1
- package/layout/form-components/floating-input.js +1 -1
- package/layout/form-components/form-all.js +1 -1
- package/layout/form-components/form.js +1 -1
- package/layout/form-components/image-picker.js +1 -1
- package/layout/form-components/picker.js +1 -1
- package/layout/form-components/radio.js +1 -1
- package/layout/form-components/radiogroup.js +1 -1
- package/layout/form-components/range.js +1 -1
- package/layout/free.js +1 -1
- package/layout/grid-switcher.js +5 -12
- package/layout/grid.js +1 -40
- package/layout/horizontal-scroller.js +1 -1
- package/layout/image.js +24 -115
- package/layout/index.js +1 -1
- package/layout/link.js +19 -64
- package/layout/list.js +1 -1
- package/layout/meta-adder.js +1 -1
- package/layout/modal-2025.js +1 -1
- package/layout/multiswitcher.js +1 -1
- package/layout/nav-bar.js +4 -20
- package/layout/nav-factor/custom-div.js +1 -1
- package/layout/new-nav-bar.js +1 -16
- package/layout/polygon.js +7 -12
- package/layout/prerender-site.js +1 -1
- package/layout/prerender.js +1 -1
- package/layout/progress.js +1 -1
- package/layout/row.js +1 -4
- package/layout/scroll-video.js +1 -1
- package/layout/side-bar.js +1 -1
- package/layout/side-nav-bar.js +1 -1
- package/layout/simple-bar.js +1 -1
- package/layout/slider-2025.js +1 -1
- package/layout/spacer.js +1 -1
- package/layout/stack.js +1 -1
- package/layout/svg.js +1 -1
- package/layout/switcher.js +1 -1
- package/layout/table.js +1 -1
- package/layout/text-field.js +18 -38
- package/layout/text.js +4 -617
- package/layout/ulist.js +1 -25
- package/layout/video.js +1 -1
- package/layout/wrap.js +1 -1
- package/layout/zoom-card.js +1 -1
- package/lib/card-getter.js +1 -1
- package/lib/data.js +1 -1
- package/lib/designer.js +1 -1
- package/lib/element-mapper.js +1 -1
- package/lib/keyframe-animation.js +1 -1
- package/lib/link-getter.js +1 -1
- package/lib/raster-ops.js +1 -1
- package/lib/scroll-video.js +1 -1
- package/lib/seo.js +1 -1
- package/lib/stacker.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/transform-anim.js +1 -1
- package/package.json +1 -1
- package/dist/dropdown.cjs.js +0 -2
- package/dist/dropdown.cjs.js.LICENSE.txt +0 -5
- package/dist/dropdown.esm.js +0 -2
- package/dist/dropdown.esm.js.LICENSE.txt +0 -5
- package/layout/base-2.js +0 -97
- package/layout/box.js +0 -35
- package/layout/cards.js +0 -143
- package/layout/clean-row.js +0 -686
- package/layout/custom.js +0 -297
- package/layout/div-image.js +0 -167
- package/layout/dropdown.js +0 -158
- package/layout/empty-element.js +0 -27
- package/layout/external-stylesheet.js +0 -25
- package/layout/footer.js +0 -89
- package/layout/grid-new.js +0 -301
- package/layout/group.js +0 -129
- package/layout/header.js +0 -181
- package/layout/image-old.js +0 -453
- package/layout/label.js +0 -56
- package/layout/list-OLD.js +0 -6
- package/layout/modernwrap.js +0 -97
- package/layout/multiswitcherBeta.js +0 -69
- package/layout/navBar-OLD.js +0 -266
- package/layout/new-flat-adder.js +0 -47
- package/layout/offset-container.js +0 -394
- package/layout/saved-new-nav-bar.js +0 -437
- package/layout/without-new.js +0 -66
package/layout/navBar-OLD.js
DELETED
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* nodality v1.0.215
|
|
3
|
-
* (c) 2026 Filip Vabrousek
|
|
4
|
-
* License: MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import {Animator} from "./animator.js";
|
|
8
|
-
|
|
9
|
-
class NavBar {
|
|
10
|
-
constructor(){
|
|
11
|
-
this.ele = null;
|
|
12
|
-
this.titleText = "";
|
|
13
|
-
this.hasHamburger = false;
|
|
14
|
-
this.setup();
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
setup(){
|
|
19
|
-
let el = document.createElement("div");
|
|
20
|
-
el.style.backgroundColor = "#fff";
|
|
21
|
-
|
|
22
|
-
el.style.display = "flex";
|
|
23
|
-
el.style.justifyContent = "space-around";
|
|
24
|
-
el.style.alignItems = "center";
|
|
25
|
-
el.style.margin = 0;
|
|
26
|
-
el.style.padding = 0;
|
|
27
|
-
el.style.width = "100%";
|
|
28
|
-
//-------------DEFAULT STYLING----------
|
|
29
|
-
el.style.margin = 0;
|
|
30
|
-
el.style.paddingTop = "1em";
|
|
31
|
-
el.style.paddingBottom = "1em";
|
|
32
|
-
this.ele = el;
|
|
33
|
-
|
|
34
|
-
window.addEventListener("resize", this.adjust.bind(this));
|
|
35
|
-
return this;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
title(text){
|
|
41
|
-
this.titleText = text;
|
|
42
|
-
let h = document.createElement("h2");
|
|
43
|
-
let node = document.createTextNode(text);
|
|
44
|
-
h.style.margin = 0;
|
|
45
|
-
h.style.padding = 0;
|
|
46
|
-
h.style.fontFamily = "Arial";
|
|
47
|
-
h.style.fontSize = "2em";
|
|
48
|
-
h.appendChild(node);
|
|
49
|
-
this.ele.appendChild(h);
|
|
50
|
-
return this;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
image(url){
|
|
55
|
-
let h = document.createElement("img");
|
|
56
|
-
h.setAttribute("src", url);
|
|
57
|
-
h.style.margin = 0;
|
|
58
|
-
h.style.padding = 0;
|
|
59
|
-
h.style.width = 50;
|
|
60
|
-
this.ele.appendChild(h);
|
|
61
|
-
return this;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
items(items){
|
|
65
|
-
this.itemCount = items.length;
|
|
66
|
-
for (var i = 0; i < items.length; i++){
|
|
67
|
-
this.ele.appendChild(items[i].render());
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
this.adjust();
|
|
71
|
-
return this;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
font(family){
|
|
76
|
-
|
|
77
|
-
for (var i = 0; i < this.ele.children; i++){
|
|
78
|
-
this.ele.children[i].style.fontFamily = family;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return this;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
openSymbol(symbol){
|
|
87
|
-
this.symbol = symbol;
|
|
88
|
-
return this;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
/*--------------------------------------------------ADJUST--------------------------------------------------*/
|
|
93
|
-
// set habmurger icon
|
|
94
|
-
adjust(w) {
|
|
95
|
-
let media = window.matchMedia(`(max-width: 600px)`);
|
|
96
|
-
let media2 = window.matchMedia(`(max-device-width: 415px)`);
|
|
97
|
-
|
|
98
|
-
if (media.matches || media2.matches) {
|
|
99
|
-
this.ele.style.flexDirection = "column";
|
|
100
|
-
} else {
|
|
101
|
-
this.ele.style.flexDirection = "row";
|
|
102
|
-
this.ele.style.marginLeft = 0;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const addHamburger = () => {
|
|
106
|
-
var btn = document.createElement("button");
|
|
107
|
-
var node = document.createTextNode(this.symbol ? this.symbol : "☰");
|
|
108
|
-
btn.style.border = "none";
|
|
109
|
-
btn.style.fontWeight = "bold";
|
|
110
|
-
btn.style.color = "#3498db";
|
|
111
|
-
btn.style.backgroundColor = "#fff";
|
|
112
|
-
btn.style.fontSize = media2.matches ? "4em" : "2em";
|
|
113
|
-
btn.appendChild(node);
|
|
114
|
-
btn.style.marginLeft = "auto";
|
|
115
|
-
|
|
116
|
-
// alert("ADDED HABURGER!");
|
|
117
|
-
return btn;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
const adjustFontSize = () => {
|
|
122
|
-
for (var i = 0; i < this.ele.children.length; i++) {
|
|
123
|
-
let el = this.ele.children[i];
|
|
124
|
-
el.style.fontSize = media2.matches ? "2.4em" : "1em";
|
|
125
|
-
|
|
126
|
-
if (el.textContent === "☰") {
|
|
127
|
-
el.style.fontSize = "2em";
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
const toWideScreen = () => {
|
|
133
|
-
for (var i = 0; i < this.ele.children.length; i++) {
|
|
134
|
-
|
|
135
|
-
let child = this.ele.children[i];
|
|
136
|
-
|
|
137
|
-
child.style.marginTop = "0em";
|
|
138
|
-
child.style.display = "block";
|
|
139
|
-
|
|
140
|
-
if (child.textContent === this.titleText) {
|
|
141
|
-
child.style.fontSize = "2em";
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
if (this.ele.childNodes[0].textContent == "☰") {
|
|
146
|
-
this.ele.removeChild(this.ele.childNodes[0]);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
this.ele.style.flexDirection = "row";
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
var added = false;
|
|
155
|
-
|
|
156
|
-
const doInAdjust = () => {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
adjustFontSize();
|
|
161
|
-
|
|
162
|
-
var closed = false;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
if (!this.hasHamburger){
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
var btn = addHamburger();
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
/*console.warn("LENA");
|
|
173
|
-
console.log(this.itemCount);*/
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
if (((this.ele.children.length == this.itemCount + 1) || (this.ele.children.length == this.itemCount))) {
|
|
179
|
-
this.ele.insertBefore(btn, this.ele.firstChild);
|
|
180
|
-
this.hasHamburger = true;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
this.ele.style.flexDirection = "column";
|
|
184
|
-
for (var i = 0; i < this.ele.children.length; i++) {
|
|
185
|
-
if (this.ele.children[i].textContent == "☰"){
|
|
186
|
-
this.ele.children[i].style.display = "block";
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
// MYCHANGE
|
|
190
|
-
}/* else if (this.ele.children[i].textContent == "London tours"){
|
|
191
|
-
this.ele.children[i].style.display = "block";
|
|
192
|
-
this.ele.children[i].style.paddingTop = "0";
|
|
193
|
-
this.ele.children[i].style.position = "absolute";
|
|
194
|
-
} */else {
|
|
195
|
-
this.ele.children[i].style.display = "none";
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
btn.addEventListener("click", () => {
|
|
200
|
-
// alert
|
|
201
|
-
closed = !closed;
|
|
202
|
-
|
|
203
|
-
for (var i = 0; i < this.ele.children.length; i++) {
|
|
204
|
-
if (i != 0) {
|
|
205
|
-
|
|
206
|
-
if (!closed) {
|
|
207
|
-
this.ele.children[i].style.display = "none";
|
|
208
|
-
this.ele.children[i].style.marginTop = "0em";
|
|
209
|
-
} else {
|
|
210
|
-
this.ele.children[i].style.display = "block";
|
|
211
|
-
this.ele.children[i].style.marginTop = "3em";
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
this.hasHamburger = true;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
const adjust = () => {
|
|
224
|
-
if (media.matches || media2.matches) {
|
|
225
|
-
doInAdjust();
|
|
226
|
-
} else {
|
|
227
|
-
toWideScreen();
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
if (media.matches || media2.matches) {
|
|
232
|
-
doInAdjust();
|
|
233
|
-
} else {
|
|
234
|
-
toWideScreen();
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
window.addEventListener("resize", adjust);
|
|
240
|
-
return this;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/*--------------------------------------------------ADJUST--------------------------------------------------*/
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
render(div){
|
|
255
|
-
if (div){
|
|
256
|
-
document.querySelector(div).style.padding = 0;
|
|
257
|
-
document.querySelector(div).style.margin = 0;
|
|
258
|
-
document.querySelector(div).appendChild(this.ele);
|
|
259
|
-
} else {
|
|
260
|
-
return this.ele;
|
|
261
|
-
}
|
|
262
|
-
return this.ele;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export { NavBar };
|
package/layout/new-flat-adder.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* nodality v1.0.215
|
|
3
|
-
* (c) 2026 Filip Vabrousek
|
|
4
|
-
* License: MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import {Animator} from "./animator.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class NewFlatAdder {
|
|
11
|
-
constructor(){
|
|
12
|
-
this.res = null;
|
|
13
|
-
this.setup();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
setup(){
|
|
17
|
-
this.res = document.createElement("div");
|
|
18
|
-
return this;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
items(arr){
|
|
22
|
-
for (var i = 0; i < arr.length; i++){
|
|
23
|
-
console.log(arr[i].render().render());
|
|
24
|
-
this.res.appendChild(arr[i].render().render());
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return this;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
flatItems(arr){
|
|
31
|
-
for (var i = 0; i < arr.length; i++){
|
|
32
|
-
|
|
33
|
-
this.res.appendChild(arr[i].render());
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return this;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
render(el){
|
|
40
|
-
if (el){
|
|
41
|
-
document.querySelector(el).appendChild(this.res);
|
|
42
|
-
} else {
|
|
43
|
-
return this.res;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export { NewFlatAdder };
|
|
@@ -1,394 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* nodality v1.0.215
|
|
3
|
-
* (c) 2026 Filip Vabrousek
|
|
4
|
-
* License: MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import {Animator} from "./animator.js";
|
|
8
|
-
|
|
9
|
-
class OffsetContainer extends Animator{
|
|
10
|
-
constructor() {
|
|
11
|
-
super();
|
|
12
|
-
this.res = null;
|
|
13
|
-
this.code = [];
|
|
14
|
-
//this.setup();
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
toCode(){
|
|
18
|
-
return this.code;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
resetColumns(){
|
|
23
|
-
this.res.style.gridTemplateColumns = "";
|
|
24
|
-
this.res.style.gridTemplateRows = "";
|
|
25
|
-
return this;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
set(obj){
|
|
29
|
-
obj.align && this.flexAlign(obj.align);
|
|
30
|
-
obj.toStart && this.toStart(obj.toStart);
|
|
31
|
-
obj.columns && this.columns(obj.columns);
|
|
32
|
-
obj.width && (this.res.style.width = obj.width);
|
|
33
|
-
obj.border && (this.res.style.border = obj.border);
|
|
34
|
-
obj.simpleCenter && this.deprecatedOption("simpleCenter", 'center: true');
|
|
35
|
-
// obj.simpleCenter && (stra += `center: "${obj.simpleCenter}",`);
|
|
36
|
-
|
|
37
|
-
if (obj.field) {
|
|
38
|
-
this.res.style.gridTemplateRows = obj.field.rows;
|
|
39
|
-
this.res.style.gridTemplateColumns = obj.field.columns;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return this;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// https://youtube.com/shorts/u7q1Qj1uuD8?feature=share
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
columns(cols){
|
|
52
|
-
this.res.style.gridTemplateColumns = `repeat(${cols}, 1fr)`;
|
|
53
|
-
return this;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
toStart(perc){
|
|
57
|
-
/*this.res.style.display = "flex";
|
|
58
|
-
this.res.style.justifyContent = "flex-start";
|
|
59
|
-
this.res.style.alignItems = "flex-start";*/
|
|
60
|
-
this.res.style.display = "grid";
|
|
61
|
-
this.res.style.placeItems = "flex-start";
|
|
62
|
-
this.res.style.justifyContent = "flex-start";
|
|
63
|
-
return this; // 224505 15/03 Nice
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
flexAlign(perc){
|
|
67
|
-
/*this.res.style.display = "flex";
|
|
68
|
-
this.res.style.justifyContent = "flex-start";
|
|
69
|
-
this.res.style.alignItems = "flex-start";*/
|
|
70
|
-
this.res.style.display = "grid";
|
|
71
|
-
this.res.style.placeItems = "flex-start";
|
|
72
|
-
this.res.style.alignItems = "center";
|
|
73
|
-
return this; // 224505 15/03 Nice
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// https://youtube.com/shorts/u7q1Qj1uuD8?feature=share
|
|
77
|
-
add(els){
|
|
78
|
-
|
|
79
|
-
this.code.push("new OffsetContainer() \n");
|
|
80
|
-
this.code.push(".setup({ class: 'wow', center: true, reset: true }) \n");
|
|
81
|
-
// this.code.push(".margin('auto', 0, 'auto', 0) \n");
|
|
82
|
-
this.code.push(".add([ \n");
|
|
83
|
-
// 155732 I can drag
|
|
84
|
-
|
|
85
|
-
/* new OffsetContainer()
|
|
86
|
-
.setup({ class: "wow", center: true, reset: true })
|
|
87
|
-
.margin("auto", 0, "auto", 0)*/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
for (var i = 0; i < els.length; i++){
|
|
92
|
-
|
|
93
|
-
if (els[i] === undefined){
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
let item = els[i].render();//.render();
|
|
98
|
-
|
|
99
|
-
if (this.options.reset){
|
|
100
|
-
item.style.gridArea = "1/1";
|
|
101
|
-
}
|
|
102
|
-
this.res.appendChild(item);
|
|
103
|
-
|
|
104
|
-
if (els[i].toCode()){
|
|
105
|
-
// console.log("EMO");
|
|
106
|
-
|
|
107
|
-
if (els[i].toCode() instanceof Array){ // 114341
|
|
108
|
-
|
|
109
|
-
if (i === 0){
|
|
110
|
-
|
|
111
|
-
//console.log(els[i].toCode());
|
|
112
|
-
if (els[i].toCode()[0].startsWith(" ,new")){
|
|
113
|
-
//console.log("---");
|
|
114
|
-
els[i].toCode()[0] = els[i].toCode()[0].replace(" ,new", "new");
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
const joined = els[i].toCode().flatMap(l => l).join("");
|
|
118
|
-
//console.log(joined);
|
|
119
|
-
this.code.push(`${joined}`);
|
|
120
|
-
}
|
|
121
|
-
} else {
|
|
122
|
-
const joined = els[i].toCode().flatMap(l => l).join("");
|
|
123
|
-
this.code.push(`${joined}`);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
} else {
|
|
128
|
-
this.code.push(`${els[i].toCode()}`);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (i == els.length - 1){
|
|
134
|
-
if (this.code[this.code.length - 1].endsWith(",")){
|
|
135
|
-
// alert("IJ")
|
|
136
|
-
this.code[this.code.length - 1] = this.code[this.code.length - 1].replace(/(^[,\s]+)|([,\s]+$)/g, '')
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// 15:05:18 06/03/2023
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
this.code.push("]),");
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
return this;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
setWidth(w){
|
|
158
|
-
|
|
159
|
-
this.res.style.width = "100vw";
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
setHeight(w){
|
|
163
|
-
|
|
164
|
-
this.res.style.height = `${w}`;
|
|
165
|
-
return this;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
/*toZStack(){
|
|
171
|
-
this.res.style.display = "grid";
|
|
172
|
-
let st = this.res.style;
|
|
173
|
-
|
|
174
|
-
this.res.style.display = "flex";
|
|
175
|
-
st.justifyContent = "center";
|
|
176
|
-
st.alignItems = "center";
|
|
177
|
-
}*/
|
|
178
|
-
|
|
179
|
-
setup(options) {
|
|
180
|
-
this.options = options;
|
|
181
|
-
let container = document.createElement("div");
|
|
182
|
-
this.res = container;
|
|
183
|
-
this.res.style.margin = 0;
|
|
184
|
-
this.res.style.padding = 0;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
// this.res.setAttribute("class", options.id);
|
|
188
|
-
|
|
189
|
-
this.res.setAttribute("class", options.class);
|
|
190
|
-
|
|
191
|
-
if (options.hideOverflow === true){
|
|
192
|
-
this.res.style.overflow = "hidden";
|
|
193
|
-
this.res.style.overflowY = "scroll";
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
this.res.style.display = "grid";
|
|
199
|
-
this.res.style.flexDirection = "column";
|
|
200
|
-
this.res.style.justifyContent = "center";
|
|
201
|
-
this.res.style.alignItems = "center";
|
|
202
|
-
|
|
203
|
-
this.res.style.gridColumnStart = 1;
|
|
204
|
-
this.res.style.gridRowStart = 1;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
this.res.style.gridTemplateColumns = "1fr 1fr 1fr 1fr 1fr 1fr";
|
|
209
|
-
this.res.style.gridTemplateRows = "1fr 1fr 1fr";
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
if (options.height){
|
|
213
|
-
this.res.style.height = options.height;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
if (options.width){
|
|
218
|
-
this.res.style.width = options.width;
|
|
219
|
-
this.res.style.marginLeft = "auto";
|
|
220
|
-
this.res.style.marginRight = "auto";
|
|
221
|
-
|
|
222
|
-
let phone = window.matchMedia("(max-device-width: 415px)");
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
if (phone.matches){
|
|
226
|
-
this.res.style.width = "95%";
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
if (options.reset){
|
|
235
|
-
this.res.style.gridTemplateColumns = "";
|
|
236
|
-
this.res.style.gridTemplateRows = "";
|
|
237
|
-
// this.res.style.placeItems = "center";
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
return this;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
setTemplate(rows, cols){
|
|
248
|
-
this.res.style.gridTemplateRows = rows;
|
|
249
|
-
this.res.style.gridTemplateColumns = cols;
|
|
250
|
-
return this;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
height(h){
|
|
254
|
-
this.res.style.width = "auto";
|
|
255
|
-
this.res.style.height = `${h}`;
|
|
256
|
-
return this;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
size(w, h){
|
|
260
|
-
this.w = w;
|
|
261
|
-
this.h = h;
|
|
262
|
-
|
|
263
|
-
if (this.w){
|
|
264
|
-
this.res.style.width = this.w;
|
|
265
|
-
} else {
|
|
266
|
-
this.res.style.width = window.innerWidth;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
if (this.h){
|
|
270
|
-
this.res.style.height = this.h;
|
|
271
|
-
} else {
|
|
272
|
-
this.res.style.height = window.innerHeight;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
return this;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
background(color) {
|
|
280
|
-
this.res.style.background = color;
|
|
281
|
-
return this;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
corner(corner) {
|
|
285
|
-
this.res.style.borderRadius = corner;
|
|
286
|
-
return this;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
padding(L, T, R, B){
|
|
290
|
-
this.res.style.paddingLeft = L;
|
|
291
|
-
this.res.style.paddingTop = T;
|
|
292
|
-
this.res.style.paddingRight = R;
|
|
293
|
-
this.res.style.paddingBottom = B;
|
|
294
|
-
return this;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
margin(L, T, R, B){
|
|
298
|
-
this.res.style.marginLeft = L;
|
|
299
|
-
this.res.style.marginTop = T;
|
|
300
|
-
this.res.style.marginRight = R;
|
|
301
|
-
this.res.style.marginBottom = B;
|
|
302
|
-
return this;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
itemWidth(w){
|
|
306
|
-
for (var i = 0; i < this.res.childNodes.length; i++){
|
|
307
|
-
let el = this.res.childNodes[i];
|
|
308
|
-
el.style.width = w;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
return this;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
apply(arr) {
|
|
316
|
-
const goThroughStyles = () => {
|
|
317
|
-
for (var i = 0; i < arr.length; i++) {
|
|
318
|
-
let el = arr[i];
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
let query = window.matchMedia(`(max-width: ${el.width}px)`);
|
|
323
|
-
if (el.device){
|
|
324
|
-
query = window.matchMedia(`(max-device-width: ${el.width}px)`);
|
|
325
|
-
alert(el.device);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
if (query.matches) {
|
|
331
|
-
Object.assign(this.res.style, el.styles);
|
|
332
|
-
// alert(el.style.styles.color);
|
|
333
|
-
} else {
|
|
334
|
-
//Object.assign(this.res.style, arr[0].styles);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
// setFirst
|
|
340
|
-
let query = window.matchMedia(`(max-width: ${arr[0].width}px)`);
|
|
341
|
-
|
|
342
|
-
if (arr[0].device){
|
|
343
|
-
query = window.matchMedia(`(max-device-width: ${arr[0].width}px)`);
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
if (!query.matches){
|
|
348
|
-
Object.assign(this.res.style, arr[0].styles);
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
goThroughStyles();
|
|
352
|
-
window.addEventListener("resize", goThroughStyles);
|
|
353
|
-
return this;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
/*intoJSXO(obj){
|
|
365
|
-
return <div ref={ref => {
|
|
366
|
-
ref && ref.appendChild(obj)
|
|
367
|
-
}} />;
|
|
368
|
-
return this;
|
|
369
|
-
}*/
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
render(el) {
|
|
373
|
-
if (el) {
|
|
374
|
-
document.querySelector("body").style.margin = 0;
|
|
375
|
-
document.querySelector("body").style.padding = 0;
|
|
376
|
-
document.querySelector(el).appendChild(this.res);
|
|
377
|
-
} else {
|
|
378
|
-
return this.res;
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
export { OffsetContainer };
|