@aw-webflow/workflow-automation 1.0.2 → 1.0.3
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 +1 -1
- package/script.js +1 -1
package/package.json
CHANGED
package/script.js
CHANGED
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
var st = document.createElement('style'); st.textContent = HERO_CSS; document.head.appendChild(st);
|
|
663
663
|
el.innerHTML = HERO_SVG;
|
|
664
664
|
/* shortcut: phones get a side-scrolling graphic (text stays readable), decided once at load, no resize handling */
|
|
665
|
-
if (window.innerWidth <= 700) { el.style.overflowX = 'auto'; el.
|
|
665
|
+
if (window.innerWidth <= 700) { el.style.overflowX = 'auto'; el.querySelector('svg').style.minWidth = '760px'; }
|
|
666
666
|
var nodes = $$(el, '[data-step]'), run = false, timers = [];
|
|
667
667
|
function set(n) { for (var i = 0; i < nodes.length; i++) if (+nodes[i].getAttribute('data-step') <= n) nodes[i].classList.add('on'); }
|
|
668
668
|
function clear() { for (var i = 0; i < nodes.length; i++) nodes[i].classList.remove('on'); }
|