-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (55 loc) · 1.68 KB
/
index.html
File metadata and controls
57 lines (55 loc) · 1.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Embedded Vue Example</title>
<!-- Load Vue, including both template compiler and run-time. -->
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
<!-- Embedded data (from server) -->
<script>
const dayData = [
{
id: "day-1",
name: "Monday",
rooms: [
{ id: "E103", name: "Euler 103" },
{ id: "E109", name: "Euler 109" },
{ id: "N123", name: "Nussbaum 123" },
],
},
{
id: "day-2",
name: "Wednesday",
rooms: [
{ id: "E103", name: "Euler 103" },
{ id: "E109", name: "Euler 109" },
],
},
{
id: "day-3",
name: "Friday",
rooms: [
{ id: "E109", name: "Euler 109" },
{ id: "N123", name: "Nussbaum 123" },
],
},
];
</script>
</head>
<body>
<h1>Embedded Vue Example</h1>
<p>This is a static paragraph before the fancy stuff.</p>
<div id="alpha"> <!-- Vue plugs itself in here with the `#alpha` CSS selector -->
<!-- Illustrate use of value from top-level component's `data` section. -->
<p>{{ message }}</p>
<form method="post">
<!-- Illustrating use of child component -->
<day-picker v-for="day in days" :day="day" :key="day.id"></day-picker>
<!-- Ordinary form submission -->
<input type="submit" value="Book My Room(s)" />
</form>
</div>
<p>This is a static paragraph that follows the fancy stuff.</p>
<script src="index.js"></script>
</body>
</html>