mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 13:21:29 +04:00
Mark demo HTML sections with BEGIN/END comments (#2741)
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user