-
Notifications
You must be signed in to change notification settings - Fork 0
/
groceryList.html
159 lines (147 loc) · 6.05 KB
/
groceryList.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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<h3><b>Expiration Date:</b> <span id='weekAhead'></span></h3>
If existing item going to be past the expiration date, assume quantity is 0.</br></br>
<style>
table {
color: #333;
/* Lighten up font color */
font-family: Helvetica, Arial, sans-serif;
/* Nicer font */
width: 640px;
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
border: 1px solid #CCC;
height: 30px;
}
/* Make cells a bit taller */
th {
background: #F3F3F3;
/* Light grey background */
font-weight: bold;
/* Make sure they're bold */
}
td {
/* Lighter grey background */
text-align: left;
/* Center our text */
padding-left: 1rem;
}
.completed {
background-color:green;
color: white;
}
a:visited {
color:blue;
}
body {
padding: 1rem;
}
</style>
<script>
const oneWeekAhead = new Date();
oneWeekAhead.setDate(oneWeekAhead.getDate() + 7);
document.getElementById("weekAhead").innerHTML = oneWeekAhead.toLocaleDateString('en-US')
</script>
<table>
<th>Name</th>
<th>Quantity</th>
<th>Link</th>
<th>Price</th>
<tr onclick="this.classList.toggle('completed')">
<td>Almond Milk</td>
<td>2</td>
<td><a href="https://www.amazon.com/365-Everyday-Value-Almondmilk-Unsweetened/dp/B074H6M4LN?fpw=fresh" target="_blank" >Link</a></td>
<td>1.99</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Plain Yogurt</td>
<td>1</td>
<td><a href="https://www.amazon.com/gp/product/B074H64BYN?ppw=fresh" target="_blank" >Link</a></td>
<td>3.39</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Frozen Cascade Farm Fruit Raspberry</td>
<td>2</td>
<td><a href="https://www.amazon.com/Cascadian-Farm-Organic-Raspberries-Organically/dp/B06Y2GKMT9/?fpw=fresh" target="_blank" >Link</a></td>
<td>11.32</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Chicken Breasts</td>
<td>5</td>
<td><a href="https://www.amazon.com/gp/product/B00AR0ZZ62?ppw=fresh" target="_blank" >Link</a></td>
<td>5.66</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Spring Mix</td>
<td>1</td>
<td><a href="https://www.amazon.com/365-Everyday-Value-Organic-Spring/dp/B074H7KKJT/?fpw=fresh" target="_blank" >Link</a></td>
<td>1.99</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Unsalted Butter</td>
<td>1</td>
<td><a href="https://www.amazon.com/gp/product/B074VDJ7KZ?ppw=fresh" target="_blank" >Link</a></td>
<td>3.49</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Eggs Whites</td>
<td>2</td>
<td><a href="https://www.amazon.com/365-Everyday-Value-Organic-Whites/dp/B074H5M1PM?ppw=fresh" target="_blank" >Link</a></td>
<td>4.99</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Dried Apricots</td>
<td>2</td>
<td><a href="https://www.amazon.com/gp/product/B0014D2992?ppw=fresh" target="_blank" >Link</a></td>
<td>4.29</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Briana Artichoke Dressing</td>
<td>1</td>
<td><a href="https://www.amazon.com/Briannas-Real-French-Vinaigrette-Dressing/dp/B000WLGD4O?fpw=fresh" target="_blank" >Link</a></td>
<td>3.32</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Almond Butter</td>
<td>1</td>
<td><a href="https://www.amazon.com/365-Everyday-Value-Almond-Crunchy/dp/B074J76XG2?fpw=fresh" target="_blank" >Link</a></td>
<td>6.99</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Monterey Jack Cheese</td>
<td>1</td>
<td><a href="https://www.amazon.com/gp/product/B074HJ4V7C?ppw=fresh" target="_blank" >Link</a></td>
<td>4.49</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Dish Detergent</td>
<td>1</td>
<td><a href="https://www.amazon.com/Seventh-Generation-Dishwasher-Detergent-Lemon/dp/B004JX7N2W?fpw=fresh" target="_blank" >Link</a></td>
<td>4.99</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Wheat Squares</td>
<td>1</td>
<td><a href="https://www.amazon.com/365-Everyday-Value-Sized-Squares/dp/B074H6M3Z5?fpw=fresh" target="_blank" >Link</a></td>
<td>2.99</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Kosher Salt</td>
<td>1</td>
<td><a href="https://www.amazon.com/Morton-Coarse-Kosher-Salt-Ounce/dp/B000Q68WSA?fpw=fresh" target="_blank" >Link</a></td>
<td>2.99</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Olive Oil</td>
<td>1</td>
<td><a href="https://www.amazon.com/Pompeian-Robust-Extra-Virgin-Olive/dp/B00ZLUF01I?fpw=fresh" target="_blank" >Link</a></td>
<td>10.17</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Laundry Detergent</td>
<td>1</td>
<td><a href="https://www.amazon.com/Seventh-Generation-Laundry-Detergent-Concentrate/dp/B003X028NG?fpw=fresh" target="_blank" >Link</a></td>
<td>14.99</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Raspberry Spread</td>
<td>2</td>
<td><a href="https://www.amazon.com/365-Everyday-Value-Raspberry-Spread/dp/B074H5H17J?&fpw=fresh" target="_blank" >Link</a></td>
<td>2.99</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Wheat Flour</td>
<td>1</td>
<td><a href="https://www.amazon.com/365-Everyday-Value-Organic-Whole/dp/B074VDMNDM/?fpw=fresh" target="_blank" >Link</a></td>
<td>4.99</td>
</tr><tr onclick="this.classList.toggle('completed')">
<td>Organic Peppercorn</td>
<td>1</td>
<td><a href="" target="_blank" >Link</a></td>
<td>12.99</td>
</tr></table>