-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate.ejs
29 lines (29 loc) · 935 Bytes
/
create.ejs
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
<!DOCTYPE html>
<html lang="en">
<%- include("./partials/header.ejs") %>
<body>
<%- include("./partials/nav.ejs") %>
<h1>CREATE YOUR BLOG HERE</h1>
<form action="/blogs" method="post">
<label for="title">Enter the title of the blog post</label><br />
<input type="text" name="title" maxlength="30" /><br />
<label for="snippet">Enter the snippet</label><br />
<input type="text" name="snippets" /><br />
<label for="content">Enter the body of the blog post</label><br />
<textarea
type="text"
name="body"
oninput="autoResize.call(this)"
></textarea
><br />
<button type="submit"><strong>SUBMIT</strong></button>
</form>
<script>
function autoResize() {
this.style.height = "auto";
this.style.height = this.scrollHeight + "px";
}
</script>
<%- include("./partials/footer.ejs") %>
</body>
</html>