-
Notifications
You must be signed in to change notification settings - Fork 5
/
merch-hoodie.html
230 lines (225 loc) · 11.5 KB
/
merch-hoodie.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Help support Memphis Hack Club's goal by buying merch today 💻 🌎 🚀">
<meta
name="keywords"
content="memphis coding, memphis student coding, memphis stem, memphis hacking, memphis hackothons, memphis student clubs, whitestation coding, midtown memphis coding, west memphis student clubs, student coding groups memphis, student programming groups memphis, memphis computer science, memphis hackclub, memphis student engineering, memphis student coding groups">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Memphis Hack Club Merch</title>
<link href="style.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="merch.css">
<link rel="icon" type="image/png" href="/274413.svg">
<link rel="icon" type="image/png" href="https://www.flaticon.com/svg/static/icons/svg/274/274413.svg">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="navbar">
<a href="index.html">Home</a>
<a href="howtojoin.html">Join MHC</a>
<a href="contact.html">Contact</a>
<a href="projects.html">Past Projects</a>
<a href="merch.html">Merch</a>
</div>
<div id="main">
<div class="content merch">
<h1 class="welcome">MHC Hoodie</h1>
<div class="merch-grid">
<div class="merch-col">
<img class="merch-image" id="image" src="merch-images/hoodie-images/white.png" height="100" width="180">
<br>
<div class="merch-price">
<h2>$45</h2>
<input type='button' onclick='redirect()' value='Buy Now' class="buy-button"/>
</div>
<p class="merch-description">
Just like a nice warm hug, this hooded sweatshirt made of a soft 50% cotton and 50% polyester fabric is perfect for the fall. Its regular fit assures the perfect balance of long-lasting comfort and a contemporary silhouette. Featuring a hood,
kangaroo pocket and set-in sleeves, you’ll have it in your wardrobe for longer than the cold. Printed in Germany.<br>
50% combed ringspun cotton, 50% polyester<br>
Medium fabric (7.96 oz/yd² (270 g/m²))<br>
Regular fit, runs true to size<br>
Brushed fleece inside<br>
Free Shipping<br><br>
Hoodies are printed in Germany, and take around a 3-4 weeks to arrive. Due our system being new please fill out
<a href="https://forms.gle/Hsio685Kw8uR2uKV7" target="_blank">this Google Form</a>
with the same info, so we can make sure our system is correct.
<a href="https://donate.memphishack.com" target="_blank">Consider making a tax deductible donation to Memphis HackClub today!- Any amount helps! And thank you!</a>
</p>
</div>
<div class="merch-col">
<h1>Color Preview Tool</h1>
<select id="picDD" class="dropdown">
<option value="White" class="white" selected="selected">White</option>
<option value="Navy" class="navy">Navy</option>
</div>
</select>
<br>
<select id="sizeID" class="dropdown">
<option value="small" class="small" selected="selected">small</option>
<option value="medium" class="medium">medium</option>
<option value="large" class="large">large</option>
<option value="xl" class="xl">xl</option>
<option value="2xl" class="2xl">2xl</option>
<option value="3xl" class="3xl">3xl</option>
<option value="4xl" class="4xl">4xl</option>
<option value="5xl" class="5xl">5xl</option>
]
</select>
<br>
<!-- <h1>Shipping Info</h1>
<label>Address<br>
<textarea id="address" rows="4" cols="50"></textarea><br>
<label>Address 2 (Optional)<br>
<textarea id="address2" rows="4" cols="50"></textarea>
<br><br>
<label>City<input id="city" type="text"><br>
<label>State<select id="state" class="dropdown">
<option value="TN" selected="selected">Tennessee</option>
<option value="MS">Mississippi</option>
<option value="AR">Arkansas</option>
<option value="O">Other State</option>
</select>
</label>
<br>
<label>
If other State<input type="text" id="os"><br><br></label>
<label>
<label>
Zip Code<input type="text" id="zipcode"><br><br></label>
Email<input type="email" id="email"><br><br>
<label>
Name<input type="text" id="name">
<br><br>
<label>Would you like MHC updates sent to this email?<select id="ec" class="dropdown"><br>
<option value="yes" selected="selected">Yes!!!</option>
<option value="no">No.</option>
<br></select>
<br>
<p></p><br>
<div id="paypalPlace"></div>-->
</div>
</div>
<script type="text/javascript">
function redirect() {
window.location.href = "https://forms.gle/JPALRE3UkoWtP26B6"
}
val = 'white';
finalSize = 'medium';
var pictureList = ["merch-images/hoodie-images/white.png", "merch-images/hoodie-images/navy.jpeg"];
var valList = ["White", "Navy"];
window.addEventListener('DOMContentLoaded', () => {
const yearDropDown = document.getElementById('picDD');
yearDropDown.addEventListener('change', () => {
val = yearDropDown.value;
console.log(val);
val2 = valList.indexOf(val);
color = pictureList[val2];
document.getElementById("image").src = color;;
});
});
window.addEventListener('DOMContentLoaded', () => {
const size = document.getElementById('sizeID');
size.addEventListener('change', () => {
sizeVal = size.value;
console.log(sizeVal);
sizeVal2 = valList.indexOf(sizeVal);
finalSize = pictureList[sizeVal2];
});
});
address2 = "NA";
otherstate = "NA";
function createButton() {
// address = document.getElementById('address').value;
// address2 = document.getElementById('address2').value;
// city = document.getElementById('city').value;
// state = document.getElementById('state').value;
// otherState = document.getElementById('os').value;
// zipCode = document.getElementById('zipcode').value;
// email = document.getElementById('email').value;
// emailConsent = document.getElementById('ec').value;
// name = document.getElementById('name').value;
address = "void";
address2 = "void";
city = "void";
state = "void";
otherState = "void";
zipCode = "void";
email = "void";
emailConsent = "void";
name = "void";
if (address != "" && city != "" && state != "" && zipCode != "" && email != "" && emailConsent != "") {
finalAddress = name + "Email:" + email + "\n Ship2:" + address + " \n " + address2 + " \n " + city + " \n " + state + " \n " + otherState + " \n " + zipCode + " \n Other MHC emails:" + emailConsent;
console.log(finalAddress)
}
var message = finalSize + " H " + val + " " + finalAddress;
newHTML = `
<form action="https://www.paypal.com/donate" method="post" target="_top">
<input type="hidden" name="business" value="7TSMGFEKXAFUY" />
<input type="hidden" name="amount" value="45" />
<input type="hidden" name="no_recurring" value="1" />
<input type="hidden" name="item_name" value="` +
message +
`" />
<input type="hidden" name="currency_code" value="USD" />
<input type="image" src="images/paypal-btn.png" height="25%" width="40%" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Pay with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>`;
// console.log(message);
// document.getElementById('paypalPlace').innerHTML = newHTML;
}
</script>
<style>
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
padding: 12px 16px;
z-index: 1;
}
.dropdown:hover .dropdown-content {
display: block;
}
.white {
background-color: white;
}
.red {
background-color: red;
color: white;
}
.yellow {
background-color: yellow;
}
.navy {
background-color: navy;
color: white;
}
.pink {
background-color: pink;
}
</style>
</script>
<br>
<h1 class="welcome">Freebies Below</h1>
<a href="https://www.instagram.com/memphishackclub/" target="_blank" class="fa fa-instagram"></a>
<a href="https://twitter.com/MHackclub" target="_blank" class="fa fa-twitter"></a>
<a href="https://www.facebook.com/groups/656997425191729" target="_blank" class="fa fa-facebook"></a>
<a href="https://www.linkedin.com/company/memphis-hack-club/?viewAsMember=true" class="fa fa-linkedin" target="_blank"></a>
<a href="https://www.youtube.com/channel/UCQEw733Z4ID3AVLtFpQ5hyw" class="fa fa-youtube" target="_blank"></a>
<br>
<br>
</div>
</div>
</body>
<script src="script.js"></script>
<script src="mode.js">
</script>
</div>
</html>