Mark demo HTML sections with BEGIN/END comments (#2741)

This commit is contained in:
Paweł Kuna
2026-07-31 01:10:55 +02:00
committed by GitHub
parent 510871674d
commit 166c63cc34
65 changed files with 280 additions and 83 deletions
+4
View File
@@ -38,6 +38,8 @@ const rangeId = `range-${id}`;
}
{
id && (
<Fragment>
<Fragment set:html={'<!-- BEGIN RANGE -->'} />
<script define:vars={{ rangeId, startValue, connectValue, step, min, max }}>
function initRange() {
window.noUiSlider &&
@@ -51,5 +53,7 @@ const rangeId = `range-${id}`;
document.readyState !== 'loading' ? initRange() : document.addEventListener('DOMContentLoaded', initRange, { once: true });
</script>
<Fragment set:html={'<!-- END RANGE -->'} />
</Fragment>
)
}