-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
45 lines (40 loc) · 1.44 KB
/
index.html
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
<html>
<head>
<!-- Supplementary js files would go here -->
<title>Simple CRUD App</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500&display=swap');
body {
font-family: 'Rubik', sans-serif;
font-weight: 300;
}
</style>
<!-- <link rel="stylesheet" href="./style.css"> -->
</head>
<body>
<h1>Simple Notes</h1>
<h5>by Jorge!</h5>
<hr></hr>
<h3>Sign Up</h3>
<input type="text" id="regEmail" placeholder="Email"></input>
<input type="text" id="regUsername" placeholder="Username"></input>
<input type="password" id="regPassword" placeholder="Password"></input>
<button onclick=attemptSignUp()>Register</button>
<p id="register-response"></p>
<h3>Sign In</h3>
<input type="text" id="signinUsername" placeholder="Username"></input>
<input type="password" id="signinPassword" placeholder="Password"></input>
<button onclick=attemptSignIn()>Submit</button>
<p id="signin-response"></p>
<h3>Your Notes</h3>
<ul id="notes">
</ul>
<input type="text" id="noteToAdd" placeholder="Message"></input>
<button onclick=postNote()>Add Note</button>
<p id="postNote-response"></p>
<input type="text" id="noteToDelete" placeholder="Note ID"></input>
<button onclick=deleteNote()>Delete Note</button>
<p id="deleteNote-response"></p>
</body>
<script src='./client/main.js'></script>
</html>