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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Tracking quests...different from a todo list in some secret and special way, I'm sure.">
<title>Quest Log</title>
<style>
/* Basic styling for the application */
@font-face {
font-family: 'Shantell Sans';
src: url('./ShantellSans.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'ChicagoFLF';
src: url('./ChicagoFLF.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body, input[type="text"] {
font-family: 'Shantell Sans', sans-serif;
}
body {
margin: 20px;
font-size: 16px;
}
h1, h2, button {
font-family: 'ChicagoFLF', sans-serif;
}
#quest-input {
margin-bottom: 20px;
display: flex;
justify-content: space-between;
}
#new-quest {
flex: 1;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button {
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
cursor: pointer;
}
#add-quest-button {
background-color: rgb(0, 128, 128);;
color: white;
margin-left: 10px;
flex-shrink: 0;
}
#add-quest-button:hover {
background-color: rgba(0, 128, 128, 0.75);;
}
.quest {
padding: 10px;
border: 1px solid #ccc;
margin-bottom: 10px;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
}
.quest.in-progress {
background-color: #ffffcc;
}
.quest.complete {
background-color: #ccffcc;
}
.hidden {
display: none;
}
button {
margin-left: 10px;
}
</style>
</head>
<body>
<h1>Quest Log</h1>
<div id="quest-input">
<input type="text" id="new-quest" placeholder="Enter new quest" />
<button id="add-quest-button" onclick="addQuest()">Add Quest</button>
</div>
<div id="quest-list"></div>
<button onclick="toggleCompleted()">View Completed Quests</button>
<script src="quest.js"></script>
</body>
</html>
|