treehouse/template/_tree.hbs

48 lines
1.2 KiB
Handlebars
Raw Normal View History

2023-08-18 13:25:20 +02:00
<!DOCTYPE html>
2023-08-27 22:16:23 +02:00
<html lang="en-US" prefix="og: https://ogp.me/ns#">
2023-08-18 13:25:20 +02:00
<head>
2024-02-21 23:17:19 +01:00
{{> components/_head.hbs }}
<link rel="stylesheet" href="{{ asset 'css/tree.css' }}">
{{#each page.styles}}
<link rel="stylesheet" href="{{ asset (cat 'css/' this) }}">
{{/each}}
2025-10-03 16:01:58 +02:00
<script type="module" async>
import "treehouse/spells.js";
import "treehouse/tree.js";
import "treehouse/ulid.js";
// We want to let the user have a selection on collapsible blocks without collapsing them when
// the user finishes marking their selection.
document.addEventListener("click", event => {
2025-10-06 14:43:02 +02:00
if (getSelection().type == "Range") {
event.preventDefault();
}
});
2025-10-03 16:01:58 +02:00
{{!-- Go through the import map for each script. --}}
{{#each page.scripts}}
import "{{ this }}";
{{/each}}
</script>
2023-08-18 13:25:20 +02:00
</head>
<body>
{{> components/_sidebar.hbs }}
{{~> components/_tree.hbs }}
2025-07-15 21:55:41 +02:00
{{~> components/_pink_space.hbs }}
2024-12-08 12:45:29 +01:00
<th-command-line></th-command-line>
{{!-- Non-blocking section --}}
{{> components/_nonblocking.hbs }}
2023-08-18 13:25:20 +02:00
</body>
2024-02-08 22:41:01 +01:00
</html>
{{~> components/_jar.hbs }}