@innovastudio/contentbox 1.4.55 → 1.4.57
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.
@@ -737,6 +737,8 @@ class SideBar {
|
|
737
737
|
const btnEditTimeline = this.pageQuickSettings.querySelector('.cmd-timeline-edit');
|
738
738
|
if (btnEditTimeline) btnEditTimeline.addEventListener('click', () => {
|
739
739
|
this.builder.timeline.edit();
|
740
|
+
const pop = this.builder.sidebar.pageQuickSettings;
|
741
|
+
this.builder.editor.util.hidePop(pop);
|
740
742
|
});
|
741
743
|
|
742
744
|
if (this.builder.useSidebar) {
|
@@ -4579,6 +4581,7 @@ class EditSection {
|
|
4579
4581
|
activeSection.parentNode.insertBefore(activeSection, currPrev); //Trigger Render event
|
4580
4582
|
|
4581
4583
|
this.builder.settings.onRender();
|
4584
|
+
this.builder.refreshAnim();
|
4582
4585
|
this.builder.scrollTo(activeSection, 600);
|
4583
4586
|
}
|
4584
4587
|
}
|
@@ -4598,6 +4601,7 @@ class EditSection {
|
|
4598
4601
|
activeSection.parentNode.insertBefore(currNext, activeSection); //Trigger Render event
|
4599
4602
|
|
4600
4603
|
this.builder.settings.onRender();
|
4604
|
+
this.builder.refreshAnim();
|
4601
4605
|
this.builder.scrollTo(activeSection, 600);
|
4602
4606
|
}
|
4603
4607
|
|
@@ -4611,6 +4615,7 @@ class EditSection {
|
|
4611
4615
|
activeSection.parentNode.insertBefore(activeSection, refSection); //Trigger Render event
|
4612
4616
|
|
4613
4617
|
this.builder.settings.onRender();
|
4618
|
+
this.builder.refreshAnim();
|
4614
4619
|
this.builder.scrollTo(activeSection, 600);
|
4615
4620
|
}
|
4616
4621
|
|
@@ -4622,6 +4627,7 @@ class EditSection {
|
|
4622
4627
|
activeSection.parentNode.insertBefore(activeSection, last.nextElementSibling); //Trigger Render event
|
4623
4628
|
|
4624
4629
|
this.builder.settings.onRender();
|
4630
|
+
this.builder.refreshAnim();
|
4625
4631
|
this.builder.scrollTo(activeSection, 600);
|
4626
4632
|
}
|
4627
4633
|
|
@@ -4676,6 +4682,7 @@ class EditSection {
|
|
4676
4682
|
}); //Trigger Render event
|
4677
4683
|
|
4678
4684
|
this.builder.settings.onRender();
|
4685
|
+
this.builder.refreshAnim();
|
4679
4686
|
this.builder.hideModal(this.modalEditSection);
|
4680
4687
|
this.builder.scrollTo(section, 600); // Change
|
4681
4688
|
|
@@ -4794,7 +4801,8 @@ class EditSection {
|
|
4794
4801
|
} //Trigger Render event
|
4795
4802
|
|
4796
4803
|
|
4797
|
-
this.builder.settings.onRender();
|
4804
|
+
this.builder.settings.onRender();
|
4805
|
+
this.builder.refreshAnim(); // this.builder.scrollTo(activeSection, 100);
|
4798
4806
|
}
|
4799
4807
|
|
4800
4808
|
boxSpacing(s) {
|
@@ -63686,7 +63694,8 @@ class Image$1 {
|
|
63686
63694
|
let basename = '';
|
63687
63695
|
|
63688
63696
|
if (img.src.indexOf('base64') === -1) {
|
63689
|
-
let
|
63697
|
+
let src = img.getAttribute('src');
|
63698
|
+
let filename = src.substring(src.lastIndexOf('/') + 1);
|
63690
63699
|
basename = dom.baseName(filename);
|
63691
63700
|
} else {
|
63692
63701
|
basename = dom.baseName(img.getAttribute('data-filename'));
|
@@ -90769,11 +90778,10 @@ class ContentBuilder {
|
|
90769
90778
|
this.dom.addClass(row, 'row-outline');
|
90770
90779
|
} //this.getState();
|
90771
90780
|
// Call onContentClick to indicate click on editable content (eg. for plugin usage)
|
90781
|
+
// if (!col.hasAttribute('data-html')) {
|
90772
90782
|
|
90773
90783
|
|
90774
|
-
if (
|
90775
|
-
if (this.opts.onContentClick) this.opts.onContentClick(e);
|
90776
|
-
}
|
90784
|
+
if (this.opts.onContentClick) this.opts.onContentClick(e); // }
|
90777
90785
|
|
90778
90786
|
this.element.click(col, e);
|
90779
90787
|
this.colTool.click(col);
|
@@ -90917,8 +90925,10 @@ class ContentBuilder {
|
|
90917
90925
|
} // Enable resizable on click
|
90918
90926
|
|
90919
90927
|
|
90920
|
-
|
90921
|
-
|
90928
|
+
if (!col.classList.contains('noresize')) {
|
90929
|
+
this.resize = new Resize(col, this);
|
90930
|
+
this.resize.enable();
|
90931
|
+
}
|
90922
90932
|
}
|
90923
90933
|
}
|
90924
90934
|
|
@@ -93967,13 +93977,15 @@ class AnimateScroll {
|
|
93967
93977
|
<div class="div-pin-spacing" style="display:none">
|
93968
93978
|
<div style="padding-top:10px;"><span>${out('Pin Spacing')}</span>: </div>
|
93969
93979
|
<div class="flex-wrap" style="padding:5px 0 10px">
|
93970
|
-
|
93971
|
-
<button title="0" class="cmd-pin-space" data-value="
|
93972
|
-
<button title="20" class="cmd-pin-space" data-value="
|
93973
|
-
<button title="
|
93974
|
-
|
93975
|
-
<
|
93976
|
-
|
93980
|
+
|
93981
|
+
<button title="0" class="cmd-pin-space" data-value="md" style="padding-left:15px;padding-right:15px;height:34px;">${out('MD')}</button>
|
93982
|
+
<button title="20" class="cmd-pin-space" data-value="lg" style="padding-left:15px;padding-right:15px;height:34px;">${out('LG')}</button>
|
93983
|
+
<button title="20" class="cmd-pin-space" data-value="xl" style="padding-left:15px;padding-right:15px;height:34px;">${out('XL')}</button>
|
93984
|
+
|
93985
|
+
<label for="chkPinOverlap" style="margin:0;display:flex;margin-left:15px">
|
93986
|
+
<input id="chkPinOverlap" type="checkbox" style="margin:-1px 6px 0 0">
|
93987
|
+
<span>${out('Overlap')}</span>.
|
93988
|
+
</label>
|
93977
93989
|
</div>
|
93978
93990
|
</div>
|
93979
93991
|
<div class="flex-wrap" style="margin-top:10px;">
|
@@ -95820,14 +95832,13 @@ class AnimateScroll {
|
|
95820
95832
|
this.builder.editor.saveForUndo();
|
95821
95833
|
|
95822
95834
|
if (chkPinSection.checked) {
|
95823
|
-
section.classList.add('section-pin');
|
95824
|
-
|
95835
|
+
section.classList.add('section-pin');
|
95825
95836
|
divPinSpacing.style.display = 'block';
|
95826
95837
|
let elms = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
95827
95838
|
elms.forEach(elm => {
|
95828
95839
|
elm.classList.remove('on');
|
95829
95840
|
});
|
95830
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
95841
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="md"]');
|
95831
95842
|
btn.classList.add('on');
|
95832
95843
|
} else {
|
95833
95844
|
section.classList.remove('section-pin');
|
@@ -95835,6 +95846,22 @@ class AnimateScroll {
|
|
95835
95846
|
} //Trigger Change event
|
95836
95847
|
|
95837
95848
|
|
95849
|
+
this.builder.onChange();
|
95850
|
+
});
|
95851
|
+
const chkPinOverlap = modalAnimateScroll.querySelector('#chkPinOverlap');
|
95852
|
+
chkPinOverlap.addEventListener('click', () => {
|
95853
|
+
const section = this.builder.activeSection;
|
95854
|
+
if (!section) return;
|
95855
|
+
this.builder.editor.saveForUndo();
|
95856
|
+
|
95857
|
+
if (chkPinOverlap.checked) {
|
95858
|
+
section.classList.add('pin-overlap');
|
95859
|
+
} else {
|
95860
|
+
section.classList.remove('pin-overlap');
|
95861
|
+
section.classList.remove('no-spacing'); // backward compatible (clean old)
|
95862
|
+
} //Trigger Change event
|
95863
|
+
|
95864
|
+
|
95838
95865
|
this.builder.onChange();
|
95839
95866
|
});
|
95840
95867
|
const btnPinSpacing = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
@@ -95843,19 +95870,16 @@ class AnimateScroll {
|
|
95843
95870
|
const section = this.builder.activeSection;
|
95844
95871
|
if (!section) return;
|
95845
95872
|
let val = btn.getAttribute('data-value');
|
95846
|
-
this.builder.editor.saveForUndo();
|
95847
|
-
section.classList.remove('
|
95848
|
-
section.classList.remove('pin-space-
|
95849
|
-
section.classList.remove('pin-space-
|
95850
|
-
section.classList.remove('pin-space-
|
95851
|
-
|
95852
|
-
section.classList.remove('pin-space-
|
95853
|
-
|
95854
|
-
if (val === '
|
95855
|
-
if (val === '
|
95856
|
-
if (val === '60') section.classList.add('pin-space-60');
|
95857
|
-
if (val === '80') section.classList.add('pin-space-80');
|
95858
|
-
if (val === '100') section.classList.add('pin-space-100');
|
95873
|
+
this.builder.editor.saveForUndo(); // section.classList.remove('pin-space-20'); // backward compatible (cleanup)
|
95874
|
+
// section.classList.remove('pin-space-40');
|
95875
|
+
// section.classList.remove('pin-space-60');
|
95876
|
+
// section.classList.remove('pin-space-80');
|
95877
|
+
// section.classList.remove('pin-space-100');
|
95878
|
+
|
95879
|
+
section.classList.remove('pin-space-lg');
|
95880
|
+
section.classList.remove('pin-space-xl');
|
95881
|
+
if (val === 'lg') section.classList.add('pin-space-lg');
|
95882
|
+
if (val === 'xl') section.classList.add('pin-space-xl');
|
95859
95883
|
let elms = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
95860
95884
|
elms.forEach(elm => {
|
95861
95885
|
elm.classList.remove('on');
|
@@ -95899,12 +95923,15 @@ class AnimateScroll {
|
|
95899
95923
|
chkLivePreview.addEventListener(this.builder.isTouchSupport ? 'touchstart' : 'click', () => {
|
95900
95924
|
if (chkLivePreview.checked) {
|
95901
95925
|
this.builder.doc.body.removeAttribute('data-skrollrr-off');
|
95926
|
+
localStorage.removeItem('_disableanimation');
|
95902
95927
|
} else {
|
95903
95928
|
this.builder.doc.body.setAttribute('data-skrollrr-off', 'true');
|
95904
95929
|
|
95905
95930
|
if (this.builder.win.skrollrr) {
|
95906
95931
|
this.builder.win.skrollrr.refresh(); // remove lax if data-skrollrr-off=true
|
95907
95932
|
}
|
95933
|
+
|
95934
|
+
localStorage.setItem('_disableanimation', '1');
|
95908
95935
|
}
|
95909
95936
|
|
95910
95937
|
this.refreshPage();
|
@@ -96021,8 +96048,7 @@ class AnimateScroll {
|
|
96021
96048
|
let mainCss = this.builder.mainCss();
|
96022
96049
|
localStorage.setItem('preview-maincss', mainCss);
|
96023
96050
|
let sectionCss = this.builder.sectionCss();
|
96024
|
-
localStorage.setItem('preview-sectioncss', sectionCss);
|
96025
|
-
|
96051
|
+
localStorage.setItem('preview-sectioncss', sectionCss);
|
96026
96052
|
modalPagePreview.querySelector('iframe').src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
|
96027
96053
|
}
|
96028
96054
|
};
|
@@ -96064,27 +96090,6 @@ class AnimateScroll {
|
|
96064
96090
|
} catch (e) {// Do Nothing
|
96065
96091
|
}
|
96066
96092
|
}
|
96067
|
-
/*
|
96068
|
-
adjustMarginBottom() {
|
96069
|
-
let n = 100;
|
96070
|
-
let pins = this.builder.wrapperEl.querySelectorAll('.section-pin.pin-space-20');
|
96071
|
-
n += 20 * pins.length;
|
96072
|
-
pins = this.builder.wrapperEl.querySelectorAll('.section-pin.pin-space-40');
|
96073
|
-
n += 40 * pins.length;
|
96074
|
-
pins = this.builder.wrapperEl.querySelectorAll('.section-pin.pin-space-60');
|
96075
|
-
n += 60 * pins.length;
|
96076
|
-
pins = this.builder.wrapperEl.querySelectorAll('.section-pin.pin-space-80');
|
96077
|
-
n += 80 * pins.length;
|
96078
|
-
pins = this.builder.wrapperEl.querySelectorAll('.section-pin.pin-space-100');
|
96079
|
-
n += 100 * pins.length;
|
96080
|
-
if(this.builder.wrapperEl.querySelector('.section-pin')) {
|
96081
|
-
this.builder.wrapperEl.style.marginBottom = n + 'vh';
|
96082
|
-
} else {
|
96083
|
-
this.builder.wrapperEl.style.marginBottom = '';
|
96084
|
-
}
|
96085
|
-
}
|
96086
|
-
*/
|
96087
|
-
|
96088
96093
|
|
96089
96094
|
openPreview() {
|
96090
96095
|
const modalPagePreview = this.builderStuff.querySelector('.is-modal.page-preview');
|
@@ -96098,7 +96103,7 @@ class AnimateScroll {
|
|
96098
96103
|
modalPagePreview.classList.add('active');
|
96099
96104
|
btnOpenPreviewWindow.classList.add('on');
|
96100
96105
|
const iframe = modalPagePreview.querySelector('iframe');
|
96101
|
-
iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
|
96106
|
+
iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
|
96102
96107
|
|
96103
96108
|
if (localStorage.getItem('_livepreviewscreen') != null) {
|
96104
96109
|
modalPagePreview.classList.remove('is-screen-1920');
|
@@ -96429,28 +96434,29 @@ class AnimateScroll {
|
|
96429
96434
|
elm.classList.remove('on');
|
96430
96435
|
});
|
96431
96436
|
|
96432
|
-
if (activeSection.classList.contains('
|
96433
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value=""]');
|
96434
|
-
btn.classList.add('on');
|
96435
|
-
} else if (activeSection.classList.contains('pin-space-20')) {
|
96436
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="20"]');
|
96437
|
-
btn.classList.add('on');
|
96438
|
-
} else if (activeSection.classList.contains('pin-space-40')) {
|
96439
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="40"]');
|
96437
|
+
if (activeSection.classList.contains('pin-space-lg')) {
|
96438
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="lg"]');
|
96440
96439
|
btn.classList.add('on');
|
96441
|
-
} else if (activeSection.classList.contains('pin-space-
|
96442
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
96443
|
-
btn.classList.add('on');
|
96444
|
-
} else if (activeSection.classList.contains('pin-space-80')) {
|
96445
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="80"]');
|
96446
|
-
btn.classList.add('on');
|
96447
|
-
} else if (activeSection.classList.contains('pin-space-100')) {
|
96448
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="100"]');
|
96440
|
+
} else if (activeSection.classList.contains('pin-space-xl')) {
|
96441
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="xl"]');
|
96449
96442
|
btn.classList.add('on');
|
96450
96443
|
} else {
|
96451
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
96444
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="md"]');
|
96452
96445
|
btn.classList.add('on');
|
96453
96446
|
}
|
96447
|
+
|
96448
|
+
const chkPinOverlap = this.modalAnimateScroll.querySelector('#chkPinOverlap');
|
96449
|
+
|
96450
|
+
if (activeSection.classList.contains('pin-overlap')) {
|
96451
|
+
chkPinOverlap.checked = true;
|
96452
|
+
} else {
|
96453
|
+
chkPinOverlap.checked = false;
|
96454
|
+
|
96455
|
+
if (activeSection.classList.contains('no-spacing')) {
|
96456
|
+
// backward compatible
|
96457
|
+
chkPinOverlap.checked = true;
|
96458
|
+
}
|
96459
|
+
}
|
96454
96460
|
}
|
96455
96461
|
|
96456
96462
|
let activeElement;
|
@@ -98421,11 +98427,15 @@ class Timeline {
|
|
98421
98427
|
</div>
|
98422
98428
|
<div class="flex-wrap div-pin-spacing" style="display:none;margin-left:5px">
|
98423
98429
|
<div class="flex-wrap">
|
98424
|
-
<button title="0" class="cmd-pin-space" data-value="" style="padding-left:15px;padding-right:15px;height:34px;">${out('
|
98425
|
-
<button title="
|
98426
|
-
<button title="20" class="cmd-pin-space" data-value="
|
98430
|
+
<button title="0" class="cmd-pin-space" data-value="md" style="padding-left:15px;padding-right:15px;height:34px;">${out('MD')}</button>
|
98431
|
+
<button title="20" class="cmd-pin-space" data-value="lg" style="padding-left:15px;padding-right:15px;height:34px;">${out('LG')}</button>
|
98432
|
+
<button title="20" class="cmd-pin-space" data-value="xl" style="padding-left:15px;padding-right:15px;height:34px;">${out('XL')}</button>
|
98427
98433
|
</div>
|
98428
|
-
<label for="
|
98434
|
+
<label for="chkPinOverlap" style="margin:0;display:flex;margin-left:15px">
|
98435
|
+
<input id="chkPinOverlap" type="checkbox" style="margin:-1px 6px 0 0">
|
98436
|
+
<span>${out('Overlap')}</span>.
|
98437
|
+
</label>
|
98438
|
+
<label for="chkPinDesktopOnly" style="margin:0;display:flex;margin-left:15px">
|
98429
98439
|
<input id="chkPinDesktopOnly" type="checkbox" style="margin:-1px 6px 0 0">
|
98430
98440
|
<span>${out('Widescreen')}</span>.
|
98431
98441
|
</label>
|
@@ -98634,7 +98644,7 @@ class Timeline {
|
|
98634
98644
|
elms.forEach(elm => {
|
98635
98645
|
elm.classList.remove('on');
|
98636
98646
|
});
|
98637
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
98647
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="md"]');
|
98638
98648
|
btn.classList.add('on');
|
98639
98649
|
} else {
|
98640
98650
|
section.classList.remove('section-pin');
|
@@ -98657,6 +98667,22 @@ class Timeline {
|
|
98657
98667
|
} //Trigger Change event
|
98658
98668
|
|
98659
98669
|
|
98670
|
+
this.builder.onChange();
|
98671
|
+
});
|
98672
|
+
const chkPinOverlap = modalTimeline.querySelector('#chkPinOverlap');
|
98673
|
+
chkPinOverlap.addEventListener('click', () => {
|
98674
|
+
const section = this.builder.activeSection;
|
98675
|
+
if (!section) return;
|
98676
|
+
this.builder.editor.saveForUndo();
|
98677
|
+
|
98678
|
+
if (chkPinOverlap.checked) {
|
98679
|
+
section.classList.add('pin-overlap');
|
98680
|
+
} else {
|
98681
|
+
section.classList.remove('pin-overlap');
|
98682
|
+
section.classList.remove('no-spacing'); // backward compatible (clean old)
|
98683
|
+
} //Trigger Change event
|
98684
|
+
|
98685
|
+
|
98660
98686
|
this.builder.onChange();
|
98661
98687
|
});
|
98662
98688
|
const btnPinSpacing = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
@@ -98665,16 +98691,16 @@ class Timeline {
|
|
98665
98691
|
const section = this.builder.activeSection;
|
98666
98692
|
if (!section) return;
|
98667
98693
|
let val = btn.getAttribute('data-value');
|
98668
|
-
this.builder.editor.saveForUndo();
|
98669
|
-
section.classList.remove('
|
98670
|
-
section.classList.remove('pin-space-
|
98671
|
-
section.classList.remove('pin-space-
|
98672
|
-
section.classList.remove('pin-space-
|
98673
|
-
|
98674
|
-
section.classList.remove('pin-space-
|
98675
|
-
section.classList.remove('pin-space-
|
98676
|
-
if (val === '') section.classList.add('
|
98677
|
-
if (val === '
|
98694
|
+
this.builder.editor.saveForUndo(); // section.classList.remove('pin-space-20'); // backward compatible (cleanup)
|
98695
|
+
// section.classList.remove('pin-space-40');
|
98696
|
+
// section.classList.remove('pin-space-60');
|
98697
|
+
// section.classList.remove('pin-space-80');
|
98698
|
+
// section.classList.remove('pin-space-100');
|
98699
|
+
|
98700
|
+
section.classList.remove('pin-space-lg');
|
98701
|
+
section.classList.remove('pin-space-xl');
|
98702
|
+
if (val === 'lg') section.classList.add('pin-space-lg');
|
98703
|
+
if (val === 'xl') section.classList.add('pin-space-xl');
|
98678
98704
|
let elms = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
98679
98705
|
elms.forEach(elm => {
|
98680
98706
|
elm.classList.remove('on');
|
@@ -98927,14 +98953,18 @@ class Timeline {
|
|
98927
98953
|
this.inpOpacity_2600.value = '';
|
98928
98954
|
this.inpOpacity_2700.value = '';
|
98929
98955
|
this.inpOpacity_2800.value = '';
|
98956
|
+
const chkPinSection = this.modalTimeline.querySelector('#chkPinSection2');
|
98957
|
+
chkPinSection.checked = false;
|
98958
|
+
const divPinSpacing = this.modalTimeline.querySelector('.div-pin-spacing');
|
98959
|
+
divPinSpacing.style.display = 'none';
|
98960
|
+
const btnDisableSmoothAnim = this.modalTimeline.querySelector('.cmd-disable-smoothanim');
|
98961
|
+
btnDisableSmoothAnim.classList.remove('on');
|
98962
|
+
const btnHiddenOnStart = this.modalTimeline.querySelector('.cmd-hidden-onstart');
|
98963
|
+
btnHiddenOnStart.classList.remove('on');
|
98930
98964
|
}
|
98931
98965
|
|
98932
98966
|
read() {
|
98933
98967
|
this.clearSettings();
|
98934
|
-
let activeElement;
|
98935
|
-
let target = this.getTarget();
|
98936
|
-
activeElement = target.element;
|
98937
|
-
if (!activeElement) return;
|
98938
98968
|
const activeSection = this.builder.activeSection;
|
98939
98969
|
|
98940
98970
|
if (activeSection) {
|
@@ -98957,23 +98987,40 @@ class Timeline {
|
|
98957
98987
|
chkPinDesktopOnly.checked = false;
|
98958
98988
|
}
|
98959
98989
|
|
98990
|
+
const chkPinOverlap = this.modalTimeline.querySelector('#chkPinOverlap');
|
98991
|
+
|
98992
|
+
if (activeSection.classList.contains('pin-overlap')) {
|
98993
|
+
chkPinOverlap.checked = true;
|
98994
|
+
} else {
|
98995
|
+
chkPinOverlap.checked = false;
|
98996
|
+
|
98997
|
+
if (activeSection.classList.contains('no-spacing')) {
|
98998
|
+
// backward compatible
|
98999
|
+
chkPinOverlap.checked = true;
|
99000
|
+
}
|
99001
|
+
}
|
99002
|
+
|
98960
99003
|
let elms = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
98961
99004
|
elms.forEach(elm => {
|
98962
99005
|
elm.classList.remove('on');
|
98963
99006
|
});
|
98964
99007
|
|
98965
|
-
if (activeSection.classList.contains('
|
98966
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value=""]');
|
99008
|
+
if (activeSection.classList.contains('pin-space-lg')) {
|
99009
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="lg"]');
|
98967
99010
|
btn.classList.add('on');
|
98968
|
-
} else if (activeSection.classList.contains('pin-space-
|
98969
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
99011
|
+
} else if (activeSection.classList.contains('pin-space-xl')) {
|
99012
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="xl"]');
|
98970
99013
|
btn.classList.add('on');
|
98971
99014
|
} else {
|
98972
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
99015
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="md"]');
|
98973
99016
|
btn.classList.add('on');
|
98974
99017
|
}
|
98975
99018
|
}
|
98976
99019
|
|
99020
|
+
let activeElement;
|
99021
|
+
let target = this.getTarget();
|
99022
|
+
activeElement = target.element;
|
99023
|
+
if (!activeElement) return;
|
98977
99024
|
const btnDisableSmoothAnim = this.modalTimeline.querySelector('.cmd-disable-smoothanim');
|
98978
99025
|
|
98979
99026
|
if (activeElement.hasAttribute('data-smooth-scrolling')) {
|
@@ -99507,6 +99554,59 @@ class Timeline {
|
|
99507
99554
|
activeElement.style.transform = '';
|
99508
99555
|
activeElement.style.transition = '';
|
99509
99556
|
activeElement.style.opacity = '';
|
99557
|
+
/* mark device */
|
99558
|
+
|
99559
|
+
/*
|
99560
|
+
xs: Mobile: <= 414 (iPhone XR)
|
99561
|
+
sm: Tablet Portrait: <= 768 (iPad Mini 768x1024) => <=970
|
99562
|
+
md: Tablet Landscape: <= 1180 (iPad Air 1180x820)
|
99563
|
+
lg: Laptop: <= 1440
|
99564
|
+
xl: Desktop: <= 1920
|
99565
|
+
xxl: Desktop: > 1920
|
99566
|
+
*/
|
99567
|
+
// let XS = false;
|
99568
|
+
|
99569
|
+
if (activeElement.hasAttribute('data-xs-t') || activeElement.hasAttribute('data-xs-t-100') || activeElement.hasAttribute('data-xs-t-200') || activeElement.hasAttribute('data-xs-t-300') || activeElement.hasAttribute('data-xs-t-400') || activeElement.hasAttribute('data-xs-t-500') || activeElement.hasAttribute('data-xs-t-600') || activeElement.hasAttribute('data-xs-t-700') || activeElement.hasAttribute('data-xs-t-800') || activeElement.hasAttribute('data-xs-t-900') || activeElement.hasAttribute('data-xs-t-1000') || activeElement.hasAttribute('data-xs-t-1100') || activeElement.hasAttribute('data-xs-t-1200') || activeElement.hasAttribute('data-xs-t-1300') || activeElement.hasAttribute('data-xs-t-1400') || activeElement.hasAttribute('data-xs-t-1500') || activeElement.hasAttribute('data-xs-t-1600') || activeElement.hasAttribute('data-xs-t-1700') || activeElement.hasAttribute('data-xs-t-1800') || activeElement.hasAttribute('data-xs-t-1900') || activeElement.hasAttribute('data-xs-t-2000') || activeElement.hasAttribute('data-xs-t-2100') || activeElement.hasAttribute('data-xs-t-2200') || activeElement.hasAttribute('data-xs-t-2300') || activeElement.hasAttribute('data-xs-t-2400') || activeElement.hasAttribute('data-xs-t-2500') || activeElement.hasAttribute('data-xs-t-2600') || activeElement.hasAttribute('data-xs-t-2700') || activeElement.hasAttribute('data-xs-t-2800')) {
|
99570
|
+
// XS = true;
|
99571
|
+
activeElement.setAttribute('data-xs', '');
|
99572
|
+
} else {
|
99573
|
+
activeElement.removeAttribute('data-xs');
|
99574
|
+
} // let SM = false;
|
99575
|
+
|
99576
|
+
|
99577
|
+
if (activeElement.hasAttribute('data-sm-t') || activeElement.hasAttribute('data-sm-t-100') || activeElement.hasAttribute('data-sm-t-200') || activeElement.hasAttribute('data-sm-t-300') || activeElement.hasAttribute('data-sm-t-400') || activeElement.hasAttribute('data-sm-t-500') || activeElement.hasAttribute('data-sm-t-600') || activeElement.hasAttribute('data-sm-t-700') || activeElement.hasAttribute('data-sm-t-800') || activeElement.hasAttribute('data-sm-t-900') || activeElement.hasAttribute('data-sm-t-1000') || activeElement.hasAttribute('data-sm-t-1100') || activeElement.hasAttribute('data-sm-t-1200') || activeElement.hasAttribute('data-sm-t-1300') || activeElement.hasAttribute('data-sm-t-1400') || activeElement.hasAttribute('data-sm-t-1500') || activeElement.hasAttribute('data-sm-t-1600') || activeElement.hasAttribute('data-sm-t-1700') || activeElement.hasAttribute('data-sm-t-1800') || activeElement.hasAttribute('data-sm-t-1900') || activeElement.hasAttribute('data-sm-t-2000') || activeElement.hasAttribute('data-sm-t-2100') || activeElement.hasAttribute('data-sm-t-2200') || activeElement.hasAttribute('data-sm-t-2300') || activeElement.hasAttribute('data-sm-t-2400') || activeElement.hasAttribute('data-sm-t-2500') || activeElement.hasAttribute('data-sm-t-2600') || activeElement.hasAttribute('data-sm-t-2700') || activeElement.hasAttribute('data-sm-t-2800')) {
|
99578
|
+
// SM = true;
|
99579
|
+
activeElement.setAttribute('data-sm', '');
|
99580
|
+
} else {
|
99581
|
+
activeElement.removeAttribute('data-sm');
|
99582
|
+
} // let MD = false;
|
99583
|
+
|
99584
|
+
|
99585
|
+
if (activeElement.hasAttribute('data-md-t') || activeElement.hasAttribute('data-md-t-100') || activeElement.hasAttribute('data-md-t-200') || activeElement.hasAttribute('data-md-t-300') || activeElement.hasAttribute('data-md-t-400') || activeElement.hasAttribute('data-md-t-500') || activeElement.hasAttribute('data-md-t-600') || activeElement.hasAttribute('data-md-t-700') || activeElement.hasAttribute('data-md-t-800') || activeElement.hasAttribute('data-md-t-900') || activeElement.hasAttribute('data-md-t-1000') || activeElement.hasAttribute('data-md-t-1100') || activeElement.hasAttribute('data-md-t-1200') || activeElement.hasAttribute('data-md-t-1300') || activeElement.hasAttribute('data-md-t-1400') || activeElement.hasAttribute('data-md-t-1500') || activeElement.hasAttribute('data-md-t-1600') || activeElement.hasAttribute('data-md-t-1700') || activeElement.hasAttribute('data-md-t-1800') || activeElement.hasAttribute('data-md-t-1900') || activeElement.hasAttribute('data-md-t-2000') || activeElement.hasAttribute('data-md-t-2100') || activeElement.hasAttribute('data-md-t-2200') || activeElement.hasAttribute('data-md-t-2300') || activeElement.hasAttribute('data-md-t-2400') || activeElement.hasAttribute('data-md-t-2500') || activeElement.hasAttribute('data-md-t-2600') || activeElement.hasAttribute('data-md-t-2700') || activeElement.hasAttribute('data-md-t-2800')) {
|
99586
|
+
// MD = true;
|
99587
|
+
activeElement.setAttribute('data-md', '');
|
99588
|
+
} else {
|
99589
|
+
activeElement.removeAttribute('data-md');
|
99590
|
+
} // let LG = false;
|
99591
|
+
|
99592
|
+
|
99593
|
+
if (activeElement.hasAttribute('data-lg-t') || activeElement.hasAttribute('data-lg-t-100') || activeElement.hasAttribute('data-lg-t-200') || activeElement.hasAttribute('data-lg-t-300') || activeElement.hasAttribute('data-lg-t-400') || activeElement.hasAttribute('data-lg-t-500') || activeElement.hasAttribute('data-lg-t-600') || activeElement.hasAttribute('data-lg-t-700') || activeElement.hasAttribute('data-lg-t-800') || activeElement.hasAttribute('data-lg-t-900') || activeElement.hasAttribute('data-lg-t-1000') || activeElement.hasAttribute('data-lg-t-1100') || activeElement.hasAttribute('data-lg-t-1200') || activeElement.hasAttribute('data-lg-t-1300') || activeElement.hasAttribute('data-lg-t-1400') || activeElement.hasAttribute('data-lg-t-1500') || activeElement.hasAttribute('data-lg-t-1600') || activeElement.hasAttribute('data-lg-t-1700') || activeElement.hasAttribute('data-lg-t-1800') || activeElement.hasAttribute('data-lg-t-1900') || activeElement.hasAttribute('data-lg-t-2000') || activeElement.hasAttribute('data-lg-t-2100') || activeElement.hasAttribute('data-lg-t-2200') || activeElement.hasAttribute('data-lg-t-2300') || activeElement.hasAttribute('data-lg-t-2400') || activeElement.hasAttribute('data-lg-t-2500') || activeElement.hasAttribute('data-lg-t-2600') || activeElement.hasAttribute('data-lg-t-2700') || activeElement.hasAttribute('data-lg-t-2800')) {
|
99594
|
+
// LG = true;
|
99595
|
+
activeElement.setAttribute('data-lg', '');
|
99596
|
+
} else {
|
99597
|
+
activeElement.removeAttribute('data-lg');
|
99598
|
+
} // let XL = false;
|
99599
|
+
|
99600
|
+
|
99601
|
+
if (activeElement.hasAttribute('data-xl-t') || activeElement.hasAttribute('data-xl-t-100') || activeElement.hasAttribute('data-xl-t-200') || activeElement.hasAttribute('data-xl-t-300') || activeElement.hasAttribute('data-xl-t-400') || activeElement.hasAttribute('data-xl-t-500') || activeElement.hasAttribute('data-xl-t-600') || activeElement.hasAttribute('data-xl-t-700') || activeElement.hasAttribute('data-xl-t-800') || activeElement.hasAttribute('data-xl-t-900') || activeElement.hasAttribute('data-xl-t-1000') || activeElement.hasAttribute('data-xl-t-1100') || activeElement.hasAttribute('data-xl-t-1200') || activeElement.hasAttribute('data-xl-t-1300') || activeElement.hasAttribute('data-xl-t-1400') || activeElement.hasAttribute('data-xl-t-1500') || activeElement.hasAttribute('data-xl-t-1600') || activeElement.hasAttribute('data-xl-t-1700') || activeElement.hasAttribute('data-xl-t-1800') || activeElement.hasAttribute('data-xl-t-1900') || activeElement.hasAttribute('data-xl-t-2000') || activeElement.hasAttribute('data-xl-t-2100') || activeElement.hasAttribute('data-xl-t-2200') || activeElement.hasAttribute('data-xl-t-2300') || activeElement.hasAttribute('data-xl-t-2400') || activeElement.hasAttribute('data-xl-t-2500') || activeElement.hasAttribute('data-xl-t-2600') || activeElement.hasAttribute('data-xl-t-2700') || activeElement.hasAttribute('data-xl-t-2800')) {
|
99602
|
+
// XL = true;
|
99603
|
+
activeElement.setAttribute('data-xl', '');
|
99604
|
+
} else {
|
99605
|
+
activeElement.removeAttribute('data-xl');
|
99606
|
+
}
|
99607
|
+
/* /mark device */
|
99608
|
+
|
99609
|
+
|
99510
99610
|
const btnDisableSmoothAnim = this.modalTimeline.querySelector('.cmd-disable-smoothanim');
|
99511
99611
|
|
99512
99612
|
if (btnDisableSmoothAnim.classList.contains('on')) {
|
@@ -99702,7 +99802,27 @@ class Timeline {
|
|
99702
99802
|
return this.readTarget('bg');
|
99703
99803
|
}
|
99704
99804
|
|
99705
|
-
|
99805
|
+
let css1, css2, css3; // enter start
|
99806
|
+
|
99807
|
+
css1 = activeElement.getAttribute('data-bottom-top');
|
99808
|
+
if (!css1) css1 = activeElement.getAttribute('data-400-bottom');
|
99809
|
+
if (!css1) css1 = activeElement.getAttribute('data-200-bottom');
|
99810
|
+
if (!css1) css1 = activeElement.getAttribute('data--50-bottom'); // leave start
|
99811
|
+
|
99812
|
+
css2 = activeElement.getAttribute('data-top-bottom'); // }
|
99813
|
+
// timeline
|
99814
|
+
|
99815
|
+
css3 = activeElement.getAttribute('data-in');
|
99816
|
+
if (!css3) css3 = activeElement.getAttribute('data-in-150');
|
99817
|
+
if (!css3) css3 = activeElement.getAttribute('data-in-300');
|
99818
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen--150');
|
99819
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen');
|
99820
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen-150');
|
99821
|
+
if (!css3) css3 = activeElement.getAttribute('data-out--300');
|
99822
|
+
if (!css3) css3 = activeElement.getAttribute('data-out--150');
|
99823
|
+
if (!css3) css3 = activeElement.getAttribute('data-out');
|
99824
|
+
|
99825
|
+
if (css1 || css2 || css3 || activeElement.hasAttribute('data-t') || activeElement.hasAttribute('data-t-100') || activeElement.hasAttribute('data-t-200') || activeElement.hasAttribute('data-t-300') || activeElement.hasAttribute('data-t-400') || activeElement.hasAttribute('data-t-500') || activeElement.hasAttribute('data-t-600') || activeElement.hasAttribute('data-t-700') || activeElement.hasAttribute('data-t-800') || activeElement.hasAttribute('data-t-900') || activeElement.hasAttribute('data-t-1000') || activeElement.hasAttribute('data-t-1100') || activeElement.hasAttribute('data-t-1200') || activeElement.hasAttribute('data-t-1300') || activeElement.hasAttribute('data-t-1400') || activeElement.hasAttribute('data-t-1500') || activeElement.hasAttribute('data-t-1600') || activeElement.hasAttribute('data-t-1700') || activeElement.hasAttribute('data-t-1800') || activeElement.hasAttribute('data-t-1900') || activeElement.hasAttribute('data-t-2000') || activeElement.hasAttribute('data-t-2100') || activeElement.hasAttribute('data-t-2200') || activeElement.hasAttribute('data-t-2300') || activeElement.hasAttribute('data-t-2400') || activeElement.hasAttribute('data-t-2500') || activeElement.hasAttribute('data-t-2600') || activeElement.hasAttribute('data-t-2700') || activeElement.hasAttribute('data-t-2800')) {
|
99706
99826
|
return {
|
99707
99827
|
'element': activeElement,
|
99708
99828
|
'name': 'inspectedElement'
|
@@ -99764,7 +99884,27 @@ class Timeline {
|
|
99764
99884
|
if (s === 'section') return false;
|
99765
99885
|
}
|
99766
99886
|
|
99767
|
-
|
99887
|
+
let css1, css2, css3; // enter start
|
99888
|
+
|
99889
|
+
css1 = activeElement.getAttribute('data-bottom-top');
|
99890
|
+
if (!css1) css1 = activeElement.getAttribute('data-400-bottom');
|
99891
|
+
if (!css1) css1 = activeElement.getAttribute('data-200-bottom');
|
99892
|
+
if (!css1) css1 = activeElement.getAttribute('data--50-bottom'); // leave start
|
99893
|
+
|
99894
|
+
css2 = activeElement.getAttribute('data-top-bottom'); // }
|
99895
|
+
// timeline
|
99896
|
+
|
99897
|
+
css3 = activeElement.getAttribute('data-in');
|
99898
|
+
if (!css3) css3 = activeElement.getAttribute('data-in-150');
|
99899
|
+
if (!css3) css3 = activeElement.getAttribute('data-in-300');
|
99900
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen--150');
|
99901
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen');
|
99902
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen-150');
|
99903
|
+
if (!css3) css3 = activeElement.getAttribute('data-out--300');
|
99904
|
+
if (!css3) css3 = activeElement.getAttribute('data-out--150');
|
99905
|
+
if (!css3) css3 = activeElement.getAttribute('data-out');
|
99906
|
+
|
99907
|
+
if (css1 || css2 || css3 || activeElement.hasAttribute('data-t') || activeElement.hasAttribute('data-t-100') || activeElement.hasAttribute('data-t-200') || activeElement.hasAttribute('data-t-300') || activeElement.hasAttribute('data-t-400') || activeElement.hasAttribute('data-t-500') || activeElement.hasAttribute('data-t-600') || activeElement.hasAttribute('data-t-700') || activeElement.hasAttribute('data-t-800') || activeElement.hasAttribute('data-t-900') || activeElement.hasAttribute('data-t-1000') || activeElement.hasAttribute('data-t-1100') || activeElement.hasAttribute('data-t-1200') || activeElement.hasAttribute('data-t-1300') || activeElement.hasAttribute('data-t-1400') || activeElement.hasAttribute('data-t-1500') || activeElement.hasAttribute('data-t-1600') || activeElement.hasAttribute('data-t-1700') || activeElement.hasAttribute('data-t-1800') || activeElement.hasAttribute('data-t-1900') || activeElement.hasAttribute('data-t-2000') || activeElement.hasAttribute('data-t-2100') || activeElement.hasAttribute('data-t-2200') || activeElement.hasAttribute('data-t-2300') || activeElement.hasAttribute('data-t-2400') || activeElement.hasAttribute('data-t-2500') || activeElement.hasAttribute('data-t-2600') || activeElement.hasAttribute('data-t-2700') || activeElement.hasAttribute('data-t-2800')) {
|
99768
99908
|
return {
|
99769
99909
|
'element': activeElement,
|
99770
99910
|
'name': s
|
@@ -99826,6 +99966,7 @@ class Timeline {
|
|
99826
99966
|
modalEditBox.style.display = '';
|
99827
99967
|
const modalEditSection = this.builderStuff.querySelector('.editsection');
|
99828
99968
|
modalEditSection.style.display = '';
|
99969
|
+
localStorage.setItem('_timelinewindow', '1');
|
99829
99970
|
}
|
99830
99971
|
|
99831
99972
|
close() {
|
@@ -99833,6 +99974,7 @@ class Timeline {
|
|
99833
99974
|
|
99834
99975
|
this.builder.doc.body.classList.remove('selection-only');
|
99835
99976
|
document.body.classList.remove('selection-only');
|
99977
|
+
localStorage.removeItem('_timelinewindow');
|
99836
99978
|
}
|
99837
99979
|
|
99838
99980
|
}
|
@@ -99879,6 +100021,7 @@ class ContentBox {
|
|
99879
100021
|
enableContentStyle: true,
|
99880
100022
|
disableStaticSection: false,
|
99881
100023
|
framework: '',
|
100024
|
+
imageRenameOnEdit: true,
|
99882
100025
|
// Old Template System:
|
99883
100026
|
designUrl1: 'assets/designs/basic.js',
|
99884
100027
|
designUrl2: 'assets/designs/examples.js',
|
@@ -102535,6 +102678,7 @@ class ContentBox {
|
|
102535
102678
|
snippetPathReplace: this.settings.snippetPathReplace,
|
102536
102679
|
maxColumns: this.settings.maxColumns,
|
102537
102680
|
maxEmbedImageWidth: this.settings.maxEmbedImageWidth,
|
102681
|
+
imageRenameOnEdit: this.settings.imageRenameOnEdit,
|
102538
102682
|
onSectionAdd: () => {
|
102539
102683
|
this.pageSetup();
|
102540
102684
|
},
|
@@ -103056,11 +103200,22 @@ class ContentBox {
|
|
103056
103200
|
// setTimeout(()=>{
|
103057
103201
|
// pageOverlay.parentNode.removeChild(pageOverlay);
|
103058
103202
|
// }, 10);
|
103203
|
+
// Remember UI
|
103059
103204
|
|
103060
103205
|
|
103061
103206
|
if (localStorage.getItem('_livepreview') != null) {
|
103062
103207
|
this.openPreview();
|
103063
103208
|
}
|
103209
|
+
|
103210
|
+
if (localStorage.getItem('_disableanimation') != null) {
|
103211
|
+
this.doc.body.setAttribute('data-skrollrr-off', 'true');
|
103212
|
+
const chkLivePreview = this.sidebar.pageQuickSettings.querySelector('.cmd-live-preview');
|
103213
|
+
chkLivePreview.checked = false;
|
103214
|
+
}
|
103215
|
+
|
103216
|
+
if (localStorage.getItem('_timelinewindow') != null) {
|
103217
|
+
this.timeline.edit();
|
103218
|
+
}
|
103064
103219
|
}, 300); //give delay for the transition (0.3ms) to finish (see box.css on .is-wrapper)
|
103065
103220
|
|
103066
103221
|
let showProgress = false;
|
@@ -103148,6 +103303,13 @@ class ContentBox {
|
|
103148
103303
|
let controlBox = this.doc.querySelector('.moveable-control-box');
|
103149
103304
|
if (controlBox) controlBox.style.display = 'none';
|
103150
103305
|
}
|
103306
|
+
|
103307
|
+
if (this.editor.activeElement.closest('.scroll-y')) {
|
103308
|
+
this.doc.body.classList.add('temporary-hide-tools');
|
103309
|
+
if (this.editor.moveable) this.editor.moveable.updateRect();
|
103310
|
+
let controlBox = this.doc.querySelector('.moveable-control-box');
|
103311
|
+
if (controlBox) controlBox.style.display = 'none';
|
103312
|
+
}
|
103151
103313
|
}
|
103152
103314
|
}); // Add document Click event
|
103153
103315
|
|
@@ -103580,6 +103742,16 @@ class ContentBox {
|
|
103580
103742
|
if (controlBox) controlBox.style.display = 'none';
|
103581
103743
|
});
|
103582
103744
|
}
|
103745
|
+
|
103746
|
+
let scrollY = section.querySelectorAll('.scroll-y');
|
103747
|
+
scrollY.forEach(elm => {
|
103748
|
+
elm.addEventListener('scroll', () => {
|
103749
|
+
this.doc.body.classList.add('temporary-hide-tools');
|
103750
|
+
if (this.editor.moveable) this.editor.moveable.updateRect();
|
103751
|
+
let controlBox = this.doc.querySelector('.moveable-control-box');
|
103752
|
+
if (controlBox) controlBox.style.display = 'none';
|
103753
|
+
});
|
103754
|
+
});
|
103583
103755
|
}
|
103584
103756
|
|
103585
103757
|
boxSetup(box) {
|