{#each days as wd} {/each} {/each} {#each range(24) as h} {#each range(7) as wd} startSelection(wd, h)} on:end={() => endSelection(wd, h)} on:move={() => moved(wd, h)} on:clear={() => clearSelection()} /> {/each} {#if h === 23} {/each}
{#if h < 23} {h + 1}:00 {/if}
{/if} {#each range(7) as wd} startSelection(wd, h + 0.5)} on:end={() => endSelection(wd, h + 0.5)} on:move={() => moved(wd, h + 0.5)} on:clear={() => clearSelection()} /> {/each}