@innovastudio/contentbox 1.4.55 → 1.4.56
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'));
|
@@ -90917,8 +90926,10 @@ class ContentBuilder {
|
|
90917
90926
|
} // Enable resizable on click
|
90918
90927
|
|
90919
90928
|
|
90920
|
-
|
90921
|
-
|
90929
|
+
if (!col.classList.contains('noresize')) {
|
90930
|
+
this.resize = new Resize(col, this);
|
90931
|
+
this.resize.enable();
|
90932
|
+
}
|
90922
90933
|
}
|
90923
90934
|
}
|
90924
90935
|
|
@@ -93967,13 +93978,15 @@ class AnimateScroll {
|
|
93967
93978
|
<div class="div-pin-spacing" style="display:none">
|
93968
93979
|
<div style="padding-top:10px;"><span>${out('Pin Spacing')}</span>: </div>
|
93969
93980
|
<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
|
-
|
93981
|
+
|
93982
|
+
<button title="0" class="cmd-pin-space" data-value="md" style="padding-left:15px;padding-right:15px;height:34px;">${out('MD')}</button>
|
93983
|
+
<button title="20" class="cmd-pin-space" data-value="lg" style="padding-left:15px;padding-right:15px;height:34px;">${out('LG')}</button>
|
93984
|
+
<button title="20" class="cmd-pin-space" data-value="xl" style="padding-left:15px;padding-right:15px;height:34px;">${out('XL')}</button>
|
93985
|
+
|
93986
|
+
<label for="chkPinOverlap" style="margin:0;display:flex;margin-left:15px">
|
93987
|
+
<input id="chkPinOverlap" type="checkbox" style="margin:-1px 6px 0 0">
|
93988
|
+
<span>${out('Overlap')}</span>.
|
93989
|
+
</label>
|
93977
93990
|
</div>
|
93978
93991
|
</div>
|
93979
93992
|
<div class="flex-wrap" style="margin-top:10px;">
|
@@ -95820,14 +95833,13 @@ class AnimateScroll {
|
|
95820
95833
|
this.builder.editor.saveForUndo();
|
95821
95834
|
|
95822
95835
|
if (chkPinSection.checked) {
|
95823
|
-
section.classList.add('section-pin');
|
95824
|
-
|
95836
|
+
section.classList.add('section-pin');
|
95825
95837
|
divPinSpacing.style.display = 'block';
|
95826
95838
|
let elms = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
95827
95839
|
elms.forEach(elm => {
|
95828
95840
|
elm.classList.remove('on');
|
95829
95841
|
});
|
95830
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
95842
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="md"]');
|
95831
95843
|
btn.classList.add('on');
|
95832
95844
|
} else {
|
95833
95845
|
section.classList.remove('section-pin');
|
@@ -95835,6 +95847,22 @@ class AnimateScroll {
|
|
95835
95847
|
} //Trigger Change event
|
95836
95848
|
|
95837
95849
|
|
95850
|
+
this.builder.onChange();
|
95851
|
+
});
|
95852
|
+
const chkPinOverlap = modalAnimateScroll.querySelector('#chkPinOverlap');
|
95853
|
+
chkPinOverlap.addEventListener('click', () => {
|
95854
|
+
const section = this.builder.activeSection;
|
95855
|
+
if (!section) return;
|
95856
|
+
this.builder.editor.saveForUndo();
|
95857
|
+
|
95858
|
+
if (chkPinOverlap.checked) {
|
95859
|
+
section.classList.add('pin-overlap');
|
95860
|
+
} else {
|
95861
|
+
section.classList.remove('pin-overlap');
|
95862
|
+
section.classList.remove('no-spacing'); // backward compatible (clean old)
|
95863
|
+
} //Trigger Change event
|
95864
|
+
|
95865
|
+
|
95838
95866
|
this.builder.onChange();
|
95839
95867
|
});
|
95840
95868
|
const btnPinSpacing = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
@@ -95843,19 +95871,16 @@ class AnimateScroll {
|
|
95843
95871
|
const section = this.builder.activeSection;
|
95844
95872
|
if (!section) return;
|
95845
95873
|
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');
|
95874
|
+
this.builder.editor.saveForUndo(); // section.classList.remove('pin-space-20'); // backward compatible (cleanup)
|
95875
|
+
// section.classList.remove('pin-space-40');
|
95876
|
+
// section.classList.remove('pin-space-60');
|
95877
|
+
// section.classList.remove('pin-space-80');
|
95878
|
+
// section.classList.remove('pin-space-100');
|
95879
|
+
|
95880
|
+
section.classList.remove('pin-space-lg');
|
95881
|
+
section.classList.remove('pin-space-xl');
|
95882
|
+
if (val === 'lg') section.classList.add('pin-space-lg');
|
95883
|
+
if (val === 'xl') section.classList.add('pin-space-xl');
|
95859
95884
|
let elms = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
95860
95885
|
elms.forEach(elm => {
|
95861
95886
|
elm.classList.remove('on');
|
@@ -95899,12 +95924,15 @@ class AnimateScroll {
|
|
95899
95924
|
chkLivePreview.addEventListener(this.builder.isTouchSupport ? 'touchstart' : 'click', () => {
|
95900
95925
|
if (chkLivePreview.checked) {
|
95901
95926
|
this.builder.doc.body.removeAttribute('data-skrollrr-off');
|
95927
|
+
localStorage.removeItem('_disableanimation');
|
95902
95928
|
} else {
|
95903
95929
|
this.builder.doc.body.setAttribute('data-skrollrr-off', 'true');
|
95904
95930
|
|
95905
95931
|
if (this.builder.win.skrollrr) {
|
95906
95932
|
this.builder.win.skrollrr.refresh(); // remove lax if data-skrollrr-off=true
|
95907
95933
|
}
|
95934
|
+
|
95935
|
+
localStorage.setItem('_disableanimation', '1');
|
95908
95936
|
}
|
95909
95937
|
|
95910
95938
|
this.refreshPage();
|
@@ -96021,8 +96049,7 @@ class AnimateScroll {
|
|
96021
96049
|
let mainCss = this.builder.mainCss();
|
96022
96050
|
localStorage.setItem('preview-maincss', mainCss);
|
96023
96051
|
let sectionCss = this.builder.sectionCss();
|
96024
|
-
localStorage.setItem('preview-sectioncss', sectionCss);
|
96025
|
-
|
96052
|
+
localStorage.setItem('preview-sectioncss', sectionCss);
|
96026
96053
|
modalPagePreview.querySelector('iframe').src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
|
96027
96054
|
}
|
96028
96055
|
};
|
@@ -96064,27 +96091,6 @@ class AnimateScroll {
|
|
96064
96091
|
} catch (e) {// Do Nothing
|
96065
96092
|
}
|
96066
96093
|
}
|
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
96094
|
|
96089
96095
|
openPreview() {
|
96090
96096
|
const modalPagePreview = this.builderStuff.querySelector('.is-modal.page-preview');
|
@@ -96098,7 +96104,7 @@ class AnimateScroll {
|
|
96098
96104
|
modalPagePreview.classList.add('active');
|
96099
96105
|
btnOpenPreviewWindow.classList.add('on');
|
96100
96106
|
const iframe = modalPagePreview.querySelector('iframe');
|
96101
|
-
iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
|
96107
|
+
iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
|
96102
96108
|
|
96103
96109
|
if (localStorage.getItem('_livepreviewscreen') != null) {
|
96104
96110
|
modalPagePreview.classList.remove('is-screen-1920');
|
@@ -96429,28 +96435,29 @@ class AnimateScroll {
|
|
96429
96435
|
elm.classList.remove('on');
|
96430
96436
|
});
|
96431
96437
|
|
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"]');
|
96440
|
-
btn.classList.add('on');
|
96441
|
-
} else if (activeSection.classList.contains('pin-space-60')) {
|
96442
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="60"]');
|
96438
|
+
if (activeSection.classList.contains('pin-space-lg')) {
|
96439
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="lg"]');
|
96443
96440
|
btn.classList.add('on');
|
96444
|
-
} else if (activeSection.classList.contains('pin-space-
|
96445
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
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"]');
|
96441
|
+
} else if (activeSection.classList.contains('pin-space-xl')) {
|
96442
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="xl"]');
|
96449
96443
|
btn.classList.add('on');
|
96450
96444
|
} else {
|
96451
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
96445
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="md"]');
|
96452
96446
|
btn.classList.add('on');
|
96453
96447
|
}
|
96448
|
+
|
96449
|
+
const chkPinOverlap = this.modalAnimateScroll.querySelector('#chkPinOverlap');
|
96450
|
+
|
96451
|
+
if (activeSection.classList.contains('pin-overlap')) {
|
96452
|
+
chkPinOverlap.checked = true;
|
96453
|
+
} else {
|
96454
|
+
chkPinOverlap.checked = false;
|
96455
|
+
|
96456
|
+
if (activeSection.classList.contains('no-spacing')) {
|
96457
|
+
// backward compatible
|
96458
|
+
chkPinOverlap.checked = true;
|
96459
|
+
}
|
96460
|
+
}
|
96454
96461
|
}
|
96455
96462
|
|
96456
96463
|
let activeElement;
|
@@ -98421,11 +98428,15 @@ class Timeline {
|
|
98421
98428
|
</div>
|
98422
98429
|
<div class="flex-wrap div-pin-spacing" style="display:none;margin-left:5px">
|
98423
98430
|
<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="
|
98431
|
+
<button title="0" class="cmd-pin-space" data-value="md" style="padding-left:15px;padding-right:15px;height:34px;">${out('MD')}</button>
|
98432
|
+
<button title="20" class="cmd-pin-space" data-value="lg" style="padding-left:15px;padding-right:15px;height:34px;">${out('LG')}</button>
|
98433
|
+
<button title="20" class="cmd-pin-space" data-value="xl" style="padding-left:15px;padding-right:15px;height:34px;">${out('XL')}</button>
|
98427
98434
|
</div>
|
98428
|
-
<label for="
|
98435
|
+
<label for="chkPinOverlap" style="margin:0;display:flex;margin-left:15px">
|
98436
|
+
<input id="chkPinOverlap" type="checkbox" style="margin:-1px 6px 0 0">
|
98437
|
+
<span>${out('Overlap')}</span>.
|
98438
|
+
</label>
|
98439
|
+
<label for="chkPinDesktopOnly" style="margin:0;display:flex;margin-left:15px">
|
98429
98440
|
<input id="chkPinDesktopOnly" type="checkbox" style="margin:-1px 6px 0 0">
|
98430
98441
|
<span>${out('Widescreen')}</span>.
|
98431
98442
|
</label>
|
@@ -98634,7 +98645,7 @@ class Timeline {
|
|
98634
98645
|
elms.forEach(elm => {
|
98635
98646
|
elm.classList.remove('on');
|
98636
98647
|
});
|
98637
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
98648
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="md"]');
|
98638
98649
|
btn.classList.add('on');
|
98639
98650
|
} else {
|
98640
98651
|
section.classList.remove('section-pin');
|
@@ -98657,6 +98668,22 @@ class Timeline {
|
|
98657
98668
|
} //Trigger Change event
|
98658
98669
|
|
98659
98670
|
|
98671
|
+
this.builder.onChange();
|
98672
|
+
});
|
98673
|
+
const chkPinOverlap = modalTimeline.querySelector('#chkPinOverlap');
|
98674
|
+
chkPinOverlap.addEventListener('click', () => {
|
98675
|
+
const section = this.builder.activeSection;
|
98676
|
+
if (!section) return;
|
98677
|
+
this.builder.editor.saveForUndo();
|
98678
|
+
|
98679
|
+
if (chkPinOverlap.checked) {
|
98680
|
+
section.classList.add('pin-overlap');
|
98681
|
+
} else {
|
98682
|
+
section.classList.remove('pin-overlap');
|
98683
|
+
section.classList.remove('no-spacing'); // backward compatible (clean old)
|
98684
|
+
} //Trigger Change event
|
98685
|
+
|
98686
|
+
|
98660
98687
|
this.builder.onChange();
|
98661
98688
|
});
|
98662
98689
|
const btnPinSpacing = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
@@ -98665,16 +98692,16 @@ class Timeline {
|
|
98665
98692
|
const section = this.builder.activeSection;
|
98666
98693
|
if (!section) return;
|
98667
98694
|
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 === '
|
98695
|
+
this.builder.editor.saveForUndo(); // section.classList.remove('pin-space-20'); // backward compatible (cleanup)
|
98696
|
+
// section.classList.remove('pin-space-40');
|
98697
|
+
// section.classList.remove('pin-space-60');
|
98698
|
+
// section.classList.remove('pin-space-80');
|
98699
|
+
// section.classList.remove('pin-space-100');
|
98700
|
+
|
98701
|
+
section.classList.remove('pin-space-lg');
|
98702
|
+
section.classList.remove('pin-space-xl');
|
98703
|
+
if (val === 'lg') section.classList.add('pin-space-lg');
|
98704
|
+
if (val === 'xl') section.classList.add('pin-space-xl');
|
98678
98705
|
let elms = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
98679
98706
|
elms.forEach(elm => {
|
98680
98707
|
elm.classList.remove('on');
|
@@ -98927,14 +98954,18 @@ class Timeline {
|
|
98927
98954
|
this.inpOpacity_2600.value = '';
|
98928
98955
|
this.inpOpacity_2700.value = '';
|
98929
98956
|
this.inpOpacity_2800.value = '';
|
98957
|
+
const chkPinSection = this.modalTimeline.querySelector('#chkPinSection2');
|
98958
|
+
chkPinSection.checked = false;
|
98959
|
+
const divPinSpacing = this.modalTimeline.querySelector('.div-pin-spacing');
|
98960
|
+
divPinSpacing.style.display = 'none';
|
98961
|
+
const btnDisableSmoothAnim = this.modalTimeline.querySelector('.cmd-disable-smoothanim');
|
98962
|
+
btnDisableSmoothAnim.classList.remove('on');
|
98963
|
+
const btnHiddenOnStart = this.modalTimeline.querySelector('.cmd-hidden-onstart');
|
98964
|
+
btnHiddenOnStart.classList.remove('on');
|
98930
98965
|
}
|
98931
98966
|
|
98932
98967
|
read() {
|
98933
98968
|
this.clearSettings();
|
98934
|
-
let activeElement;
|
98935
|
-
let target = this.getTarget();
|
98936
|
-
activeElement = target.element;
|
98937
|
-
if (!activeElement) return;
|
98938
98969
|
const activeSection = this.builder.activeSection;
|
98939
98970
|
|
98940
98971
|
if (activeSection) {
|
@@ -98957,23 +98988,40 @@ class Timeline {
|
|
98957
98988
|
chkPinDesktopOnly.checked = false;
|
98958
98989
|
}
|
98959
98990
|
|
98991
|
+
const chkPinOverlap = this.modalTimeline.querySelector('#chkPinOverlap');
|
98992
|
+
|
98993
|
+
if (activeSection.classList.contains('pin-overlap')) {
|
98994
|
+
chkPinOverlap.checked = true;
|
98995
|
+
} else {
|
98996
|
+
chkPinOverlap.checked = false;
|
98997
|
+
|
98998
|
+
if (activeSection.classList.contains('no-spacing')) {
|
98999
|
+
// backward compatible
|
99000
|
+
chkPinOverlap.checked = true;
|
99001
|
+
}
|
99002
|
+
}
|
99003
|
+
|
98960
99004
|
let elms = divPinSpacing.querySelectorAll('.cmd-pin-space');
|
98961
99005
|
elms.forEach(elm => {
|
98962
99006
|
elm.classList.remove('on');
|
98963
99007
|
});
|
98964
99008
|
|
98965
|
-
if (activeSection.classList.contains('
|
98966
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value=""]');
|
99009
|
+
if (activeSection.classList.contains('pin-space-lg')) {
|
99010
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="lg"]');
|
98967
99011
|
btn.classList.add('on');
|
98968
|
-
} else if (activeSection.classList.contains('pin-space-
|
98969
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
99012
|
+
} else if (activeSection.classList.contains('pin-space-xl')) {
|
99013
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="xl"]');
|
98970
99014
|
btn.classList.add('on');
|
98971
99015
|
} else {
|
98972
|
-
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="
|
99016
|
+
let btn = divPinSpacing.querySelector('.cmd-pin-space[data-value="md"]');
|
98973
99017
|
btn.classList.add('on');
|
98974
99018
|
}
|
98975
99019
|
}
|
98976
99020
|
|
99021
|
+
let activeElement;
|
99022
|
+
let target = this.getTarget();
|
99023
|
+
activeElement = target.element;
|
99024
|
+
if (!activeElement) return;
|
98977
99025
|
const btnDisableSmoothAnim = this.modalTimeline.querySelector('.cmd-disable-smoothanim');
|
98978
99026
|
|
98979
99027
|
if (activeElement.hasAttribute('data-smooth-scrolling')) {
|
@@ -99507,6 +99555,59 @@ class Timeline {
|
|
99507
99555
|
activeElement.style.transform = '';
|
99508
99556
|
activeElement.style.transition = '';
|
99509
99557
|
activeElement.style.opacity = '';
|
99558
|
+
/* mark device */
|
99559
|
+
|
99560
|
+
/*
|
99561
|
+
xs: Mobile: <= 414 (iPhone XR)
|
99562
|
+
sm: Tablet Portrait: <= 768 (iPad Mini 768x1024) => <=970
|
99563
|
+
md: Tablet Landscape: <= 1180 (iPad Air 1180x820)
|
99564
|
+
lg: Laptop: <= 1440
|
99565
|
+
xl: Desktop: <= 1920
|
99566
|
+
xxl: Desktop: > 1920
|
99567
|
+
*/
|
99568
|
+
// let XS = false;
|
99569
|
+
|
99570
|
+
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')) {
|
99571
|
+
// XS = true;
|
99572
|
+
activeElement.setAttribute('data-xs', '');
|
99573
|
+
} else {
|
99574
|
+
activeElement.removeAttribute('data-xs');
|
99575
|
+
} // let SM = false;
|
99576
|
+
|
99577
|
+
|
99578
|
+
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')) {
|
99579
|
+
// SM = true;
|
99580
|
+
activeElement.setAttribute('data-sm', '');
|
99581
|
+
} else {
|
99582
|
+
activeElement.removeAttribute('data-sm');
|
99583
|
+
} // let MD = false;
|
99584
|
+
|
99585
|
+
|
99586
|
+
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')) {
|
99587
|
+
// MD = true;
|
99588
|
+
activeElement.setAttribute('data-md', '');
|
99589
|
+
} else {
|
99590
|
+
activeElement.removeAttribute('data-md');
|
99591
|
+
} // let LG = false;
|
99592
|
+
|
99593
|
+
|
99594
|
+
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')) {
|
99595
|
+
// LG = true;
|
99596
|
+
activeElement.setAttribute('data-lg', '');
|
99597
|
+
} else {
|
99598
|
+
activeElement.removeAttribute('data-lg');
|
99599
|
+
} // let XL = false;
|
99600
|
+
|
99601
|
+
|
99602
|
+
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')) {
|
99603
|
+
// XL = true;
|
99604
|
+
activeElement.setAttribute('data-xl', '');
|
99605
|
+
} else {
|
99606
|
+
activeElement.removeAttribute('data-xl');
|
99607
|
+
}
|
99608
|
+
/* /mark device */
|
99609
|
+
|
99610
|
+
|
99510
99611
|
const btnDisableSmoothAnim = this.modalTimeline.querySelector('.cmd-disable-smoothanim');
|
99511
99612
|
|
99512
99613
|
if (btnDisableSmoothAnim.classList.contains('on')) {
|
@@ -99702,7 +99803,27 @@ class Timeline {
|
|
99702
99803
|
return this.readTarget('bg');
|
99703
99804
|
}
|
99704
99805
|
|
99705
|
-
|
99806
|
+
let css1, css2, css3; // enter start
|
99807
|
+
|
99808
|
+
css1 = activeElement.getAttribute('data-bottom-top');
|
99809
|
+
if (!css1) css1 = activeElement.getAttribute('data-400-bottom');
|
99810
|
+
if (!css1) css1 = activeElement.getAttribute('data-200-bottom');
|
99811
|
+
if (!css1) css1 = activeElement.getAttribute('data--50-bottom'); // leave start
|
99812
|
+
|
99813
|
+
css2 = activeElement.getAttribute('data-top-bottom'); // }
|
99814
|
+
// timeline
|
99815
|
+
|
99816
|
+
css3 = activeElement.getAttribute('data-in');
|
99817
|
+
if (!css3) css3 = activeElement.getAttribute('data-in-150');
|
99818
|
+
if (!css3) css3 = activeElement.getAttribute('data-in-300');
|
99819
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen--150');
|
99820
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen');
|
99821
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen-150');
|
99822
|
+
if (!css3) css3 = activeElement.getAttribute('data-out--300');
|
99823
|
+
if (!css3) css3 = activeElement.getAttribute('data-out--150');
|
99824
|
+
if (!css3) css3 = activeElement.getAttribute('data-out');
|
99825
|
+
|
99826
|
+
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
99827
|
return {
|
99707
99828
|
'element': activeElement,
|
99708
99829
|
'name': 'inspectedElement'
|
@@ -99764,7 +99885,27 @@ class Timeline {
|
|
99764
99885
|
if (s === 'section') return false;
|
99765
99886
|
}
|
99766
99887
|
|
99767
|
-
|
99888
|
+
let css1, css2, css3; // enter start
|
99889
|
+
|
99890
|
+
css1 = activeElement.getAttribute('data-bottom-top');
|
99891
|
+
if (!css1) css1 = activeElement.getAttribute('data-400-bottom');
|
99892
|
+
if (!css1) css1 = activeElement.getAttribute('data-200-bottom');
|
99893
|
+
if (!css1) css1 = activeElement.getAttribute('data--50-bottom'); // leave start
|
99894
|
+
|
99895
|
+
css2 = activeElement.getAttribute('data-top-bottom'); // }
|
99896
|
+
// timeline
|
99897
|
+
|
99898
|
+
css3 = activeElement.getAttribute('data-in');
|
99899
|
+
if (!css3) css3 = activeElement.getAttribute('data-in-150');
|
99900
|
+
if (!css3) css3 = activeElement.getAttribute('data-in-300');
|
99901
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen--150');
|
99902
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen');
|
99903
|
+
if (!css3) css3 = activeElement.getAttribute('data-cen-150');
|
99904
|
+
if (!css3) css3 = activeElement.getAttribute('data-out--300');
|
99905
|
+
if (!css3) css3 = activeElement.getAttribute('data-out--150');
|
99906
|
+
if (!css3) css3 = activeElement.getAttribute('data-out');
|
99907
|
+
|
99908
|
+
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
99909
|
return {
|
99769
99910
|
'element': activeElement,
|
99770
99911
|
'name': s
|
@@ -99826,6 +99967,7 @@ class Timeline {
|
|
99826
99967
|
modalEditBox.style.display = '';
|
99827
99968
|
const modalEditSection = this.builderStuff.querySelector('.editsection');
|
99828
99969
|
modalEditSection.style.display = '';
|
99970
|
+
localStorage.setItem('_timelinewindow', '1');
|
99829
99971
|
}
|
99830
99972
|
|
99831
99973
|
close() {
|
@@ -99833,6 +99975,7 @@ class Timeline {
|
|
99833
99975
|
|
99834
99976
|
this.builder.doc.body.classList.remove('selection-only');
|
99835
99977
|
document.body.classList.remove('selection-only');
|
99978
|
+
localStorage.removeItem('_timelinewindow');
|
99836
99979
|
}
|
99837
99980
|
|
99838
99981
|
}
|
@@ -99879,6 +100022,7 @@ class ContentBox {
|
|
99879
100022
|
enableContentStyle: true,
|
99880
100023
|
disableStaticSection: false,
|
99881
100024
|
framework: '',
|
100025
|
+
imageRenameOnEdit: true,
|
99882
100026
|
// Old Template System:
|
99883
100027
|
designUrl1: 'assets/designs/basic.js',
|
99884
100028
|
designUrl2: 'assets/designs/examples.js',
|
@@ -102535,6 +102679,7 @@ class ContentBox {
|
|
102535
102679
|
snippetPathReplace: this.settings.snippetPathReplace,
|
102536
102680
|
maxColumns: this.settings.maxColumns,
|
102537
102681
|
maxEmbedImageWidth: this.settings.maxEmbedImageWidth,
|
102682
|
+
imageRenameOnEdit: this.settings.imageRenameOnEdit,
|
102538
102683
|
onSectionAdd: () => {
|
102539
102684
|
this.pageSetup();
|
102540
102685
|
},
|
@@ -103056,11 +103201,22 @@ class ContentBox {
|
|
103056
103201
|
// setTimeout(()=>{
|
103057
103202
|
// pageOverlay.parentNode.removeChild(pageOverlay);
|
103058
103203
|
// }, 10);
|
103204
|
+
// Remember UI
|
103059
103205
|
|
103060
103206
|
|
103061
103207
|
if (localStorage.getItem('_livepreview') != null) {
|
103062
103208
|
this.openPreview();
|
103063
103209
|
}
|
103210
|
+
|
103211
|
+
if (localStorage.getItem('_disableanimation') != null) {
|
103212
|
+
this.doc.body.setAttribute('data-skrollrr-off', 'true');
|
103213
|
+
const chkLivePreview = this.sidebar.pageQuickSettings.querySelector('.cmd-live-preview');
|
103214
|
+
chkLivePreview.checked = false;
|
103215
|
+
}
|
103216
|
+
|
103217
|
+
if (localStorage.getItem('_timelinewindow') != null) {
|
103218
|
+
this.timeline.edit();
|
103219
|
+
}
|
103064
103220
|
}, 300); //give delay for the transition (0.3ms) to finish (see box.css on .is-wrapper)
|
103065
103221
|
|
103066
103222
|
let showProgress = false;
|
@@ -103148,6 +103304,13 @@ class ContentBox {
|
|
103148
103304
|
let controlBox = this.doc.querySelector('.moveable-control-box');
|
103149
103305
|
if (controlBox) controlBox.style.display = 'none';
|
103150
103306
|
}
|
103307
|
+
|
103308
|
+
if (this.editor.activeElement.closest('.scroll-y')) {
|
103309
|
+
this.doc.body.classList.add('temporary-hide-tools');
|
103310
|
+
if (this.editor.moveable) this.editor.moveable.updateRect();
|
103311
|
+
let controlBox = this.doc.querySelector('.moveable-control-box');
|
103312
|
+
if (controlBox) controlBox.style.display = 'none';
|
103313
|
+
}
|
103151
103314
|
}
|
103152
103315
|
}); // Add document Click event
|
103153
103316
|
|
@@ -103580,6 +103743,16 @@ class ContentBox {
|
|
103580
103743
|
if (controlBox) controlBox.style.display = 'none';
|
103581
103744
|
});
|
103582
103745
|
}
|
103746
|
+
|
103747
|
+
let scrollY = section.querySelectorAll('.scroll-y');
|
103748
|
+
scrollY.forEach(elm => {
|
103749
|
+
elm.addEventListener('scroll', () => {
|
103750
|
+
this.doc.body.classList.add('temporary-hide-tools');
|
103751
|
+
if (this.editor.moveable) this.editor.moveable.updateRect();
|
103752
|
+
let controlBox = this.doc.querySelector('.moveable-control-box');
|
103753
|
+
if (controlBox) controlBox.style.display = 'none';
|
103754
|
+
});
|
103755
|
+
});
|
103583
103756
|
}
|
103584
103757
|
|
103585
103758
|
boxSetup(box) {
|