@innovastudio/contentbox 1.4.46 → 1.4.47
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/package.json
CHANGED
@@ -93958,7 +93958,8 @@ class AnimateScroll {
|
|
93958
93958
|
</div>
|
93959
93959
|
|
93960
93960
|
<div class="flex-wrap" style="margin-top:15px;">
|
93961
|
-
<button title="${out('Disable Smooth Animation')}" class="cmd-disable-smoothanim"
|
93961
|
+
<button title="${out('Disable Smooth Animation')}" class="cmd-disable-smoothanim" style="padding-left:15px;padding-right: 15px;">${out('Disable Smooth Animation')}</button>
|
93962
|
+
<button title="${out('Hidden on Start')}" class="cmd-hidden-onstart" style="padding-left:15px;padding-right: 15px;">${out('Hidden on Start')}</button>
|
93962
93963
|
</div>
|
93963
93964
|
|
93964
93965
|
<div style="display:flex;justify-content: flex-end;margin-top: 15px;margin-right: 20px;">
|
@@ -95859,6 +95860,16 @@ class AnimateScroll {
|
|
95859
95860
|
|
95860
95861
|
this.applySimpleScroll();
|
95861
95862
|
});
|
95863
|
+
const btnHiddenOnStart = this.divAnimScrollSimple.querySelector('.cmd-hidden-onstart');
|
95864
|
+
btnHiddenOnStart.addEventListener('click', () => {
|
95865
|
+
if (btnHiddenOnStart.classList.contains('on')) {
|
95866
|
+
btnHiddenOnStart.classList.remove('on');
|
95867
|
+
} else {
|
95868
|
+
btnHiddenOnStart.classList.add('on');
|
95869
|
+
}
|
95870
|
+
|
95871
|
+
this.applySimpleScroll();
|
95872
|
+
});
|
95862
95873
|
const chkLivePreview = this.builder.sidebar.pageQuickSettings.querySelector('.cmd-live-preview');
|
95863
95874
|
chkLivePreview.addEventListener(this.builder.isTouchSupport ? 'touchstart' : 'click', () => {
|
95864
95875
|
if (chkLivePreview.checked) {
|
@@ -96465,6 +96476,14 @@ class AnimateScroll {
|
|
96465
96476
|
} else {
|
96466
96477
|
btn.classList.remove('on');
|
96467
96478
|
}
|
96479
|
+
});
|
96480
|
+
const btnHiddenOnStart = this.modalAnimateScroll.querySelectorAll('.cmd-hidden-onstart');
|
96481
|
+
btnHiddenOnStart.forEach(btn => {
|
96482
|
+
if (activeElement.hasAttribute('data-hidden-onstart')) {
|
96483
|
+
btn.classList.add('on');
|
96484
|
+
} else {
|
96485
|
+
btn.classList.remove('on');
|
96486
|
+
}
|
96468
96487
|
}); // Simple Scroll
|
96469
96488
|
|
96470
96489
|
const inpSimpleScrollX_Start = this.modalAnimateScroll.querySelector('.inp-simplescroll-x-start');
|
@@ -97247,6 +97266,14 @@ class AnimateScroll {
|
|
97247
97266
|
activeElement.removeAttribute('data-smooth-scrolling');
|
97248
97267
|
}
|
97249
97268
|
|
97269
|
+
const btnHiddenOnStart = this.divAnimScrollSimple.querySelector('.cmd-hidden-onstart');
|
97270
|
+
|
97271
|
+
if (btnHiddenOnStart.classList.contains('on')) {
|
97272
|
+
activeElement.setAttribute('data-hidden-onstart', '');
|
97273
|
+
} else {
|
97274
|
+
activeElement.removeAttribute('data-hidden-onstart');
|
97275
|
+
}
|
97276
|
+
|
97250
97277
|
activeElement.style.transform = '';
|
97251
97278
|
activeElement.style.transition = '';
|
97252
97279
|
activeElement.style.opacity = ''; // console.log(activeElement);
|