-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (43 loc) · 2.08 KB
/
index.html
File metadata and controls
49 lines (43 loc) · 2.08 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
<!doctype html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="static/main.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400&family=Source+Serif+Pro&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Rubik&display=swap" rel="stylesheet">
<script src="https://unpkg.com/htmx.org@1.8.0"></script>
<script>
// This is a very small function which is supposed to grab the changed
// value from an input elements and copy it onto label element.
function update_name() {
var from = arguments[0];
var to = arguments[1];
to.innerHTML = from.files[0].name;
}
</script>
<title>Silly comments demo...</title>
</head>
<body>
<div class="wrapper">
<div class="left" style="grid-row: 1; margin-top: 0em;">
<p style="margin-top: 0em;">
Just wanted to make a comment system...
</p>
</ul>
</div>
<!-- swap self for comments, for this article -->
<div style="grid-row: 1" id="comments" hx-get="/comments" hx-vals='{"for": "example"}' hx-swap="innerHTML" hx-trigger="load">
</div>
<div style="grid-row: 2; padding-bottom: 100px;">
<form hx-post="{{ prefix }}/comments" hx-vals='{"for": "example"}' hx-target="#comments" fenctype=multipart/form-data>
<input type="text" id="comment_contact" name="comment_contact" placeholder="Name, e-mail" required></input><br>
<textarea id="comment" name="comment" placeholder="Comment..." required></textarea><br>
<input id="submit" class="custom-file-upload" type=submit value=Submit>
</form>
</div>
</div>
</body>
</html>