-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmaswishlist.html
53 lines (49 loc) · 2.14 KB
/
xmaswishlist.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
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Christmas Wishlist" content="christmas wishlist crud example">
<title>Christmas Wishlist</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/1.0.8/purify.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-storage.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/1.0.8/purify.js"></script>
<link rel="stylesheet" href="style.css">
<link href='https://fonts.googleapis.com/css?family=Delius%20Unicase' rel='stylesheet'>
</head>
<body>
<header>
<h1>Christmas Wishlist</h1>
<button id="add" value="add">Add Item to List</button>
<button id="signOut">Sign Out</button>
</header>
<br/>
<ul id="wishlist"></ul>
<dialog id="add-dialog">
<form id="item-form" action="#">
<label for="name">Item Name:</label>
<input type="text" name="item-name" id="name"><br />
<label for="item-pic">Photo:</label>
<input type="file" id="item-pic" name="item-pic"><br />
<label for="description">Description:</label>
<input type="text" name="description" id="description"><br />
<label for="price">Price:</label>
<input type="number" name="price" id="price"><br />
<label for="category">Category:</label>
<select id="category">
<option value="electronics">Electronics</option>
<option value="clothing">Clothing</option>
<option value="luxury">Luxury</option>
<option value="necessities">Necessities</option>
<option value="other">Other</option>
</select>
</form>
<br />
<button id="cancel" value="cancel">Cancel</button>
<button id="save" value="save">Save</button>
</dialog>
<script src="xmaswishlist.js"></script>
</body>
</html>