-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (47 loc) · 1.83 KB
/
index.html
File metadata and controls
61 lines (47 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Starter</title>
<meta name="viewport" content="width=device-width">
<link rel="icon" href="./images/icon152.jpg">
<!-- styles for the entire site -->
<link rel="stylesheet" href="css/site.css">
<!-- styles only for this page -->
<link rel="stylesheet" href="css/index.css">
<!-- html includes for development without compile step -->
<link rel="stylesheet" href="../node_modules/html-sac/source/runTime/inlineHTMLdebugHelper.css">
<script type="module" src="../node_modules/html-sac/source/runTime/inlineHTMLRuntime.js"></script>
<script type="module">
const PROD = "./js/bundle.es.min.js";
const DEV = "./js/core/main.js";
(async function () {
if (location.hostname === `localhost`) {
try {
await import(PROD); // when trying prodversion in dev
} catch (importError) {
import(DEV);
}
} else {
import(PROD);
}
}());
</script>
</head>
<body>
<h1 data-variable="title"> - </h1>
<p data-element="loadingHint">Loading ...</p>
<button data-function="showHelp" data-element="showHelp">Show Help</button>
<p data-variable="helpText"></p>
<h2>Below is an html include <script type="text/html"> that should be inlined</h2>
<script type="text/html" src="components/superParagraph/superParagraph.html"></script>
<!-- Below is another that imports a template -->
<script type="text/html" src="components/xClock/xClock.html"></script>
<h2><x-clock></h2>
<!-- use imported xClock.html -->
<div is="x-clock"></div>
<br>
<!-- alternative syntax -->
<x-clock></x-clock>
</body>
</html>