-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
204 lines (169 loc) · 7.55 KB
/
test.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>test: html-form-send-email-via-google-script-without-server</title>
<meta name="description" content="Test all HTML form and input elements for html-form-send-email-via-google-script-without-server." />
<meta name="author" content="dwyl">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/pure-min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.rawgit.com/dwyl/html-form-send-email-via-google-script-without-server/master/style.css">
</head>
<body>
<h1>Test All Form and Input Elements</h1>
<p>
Here is a form that is meant to include all form and input elements possible
on a page. This way we can test out if the form functions as expected. We
will populate with default values if possible or using Javascript to
simplify testing.
</p>
<form id="gform" method="POST" class="pure-form pure-form-stacked" data-email="[email protected]" action="https://script.google.com/macros/s/AKfycbyF7zsZXQUZLKBOaVKfsrzyr30FPHprgqd8flvC5WeuYQJnc5E/exec">
<!--submit/button-->
<button class="button-success pure-button button-xlarge">
<i class="fa fa-paper-plane"></i> Send
</button>
<!--text-field-->
<fieldset class="pure-group">
<label for="text">Name: </label>
<input id="text" name="text" value="What your Mom calls you" />
</fieldset>
<!--text-area-->
<fieldset class="pure-group">
<label for="text-area">Message: </label>
<textarea id="text-area" name="text-area" rows="10">Tell us what's on your mind...</textarea>
</fieldset>
<!--email-->
<fieldset class="pure-group">
<label for="email"><em>Your</em> Email Address:</label>
<input id="email" name="email" type="email" required value="[email protected]" />
<span id="email-invalid" style="display:none">
Must be a valid email address</span>
</fieldset>
<!--color-->
<fieldset class="pure-group">
<label for="color">Favourite Color: </label>
<input id="color" type="color" name="color" />
</fieldset>
<!--radio button-->
<fieldset class="pure-group">
<label for="radio">Choose a Programming Language: </label>
<input id="radio" type="radio" name="radio" value="js" checked />Javascript
</fieldset>
<!--radio group-->
<fieldset class="pure-group">
<legend>OK, Now Really Choose:</legend>
<input id="radio-group--javascript" type="radio" name="radio-group" value="js" /> <label for="radio-group--javascript">Javascript</label>
<input id="radio-group--java" type="radio" name="radio-group" value="java" /> <label for="radio-group--java">Java</label>
<input id="radio-group--cplusplus" type="radio" name="radio-group" value="c++" /> <label for="radio-group--cplusplus">C++</label>
<input id="radio-group--python" type="radio" name="radio-group" value="python" checked /> <label for="radio-group--python">Python</label>
<input id="radio-group--other" type="radio" name="radio-group" value="other" /> <label for="radio-group--other">Other</label>
</fieldset>
<!--checkbox-->
<fieldset class="pure-group">
<label for="checkbox">What are you Most Comfortable With?</label>
<input id="checkbox" type="checkbox" name="checkbox" value="js" checked />Javascript
</fieldset>
<!--checkboxes-->
<fieldset class="pure-group">
<legend>What are you Most Comfortable With?</legend>
<input id="checkboxes--javascript" type="checkbox" name="checkboxes" value="js" checked /> <label for="checkboxes--javascript">Javascript</label>
<input id="checkboxes--java" type="checkbox" name="checkboxes" value="java" /> <label for="checkboxes--java">Java</label>
<input id="checkboxes--cplusplus" type="checkbox" name="checkboxes" value="c++" /> <label for="checkboxes--cplusplus">C++</label>
<input id="checkboxes--python" type="checkbox" name="checkboxes" value="python" checked /> <label for="checkboxes--python">Python</label>
<input id="checkboxes--other" type="checkbox" name="checkboxes" value="other" checked /> <label for="checkboxes--other">Other</label>
</fieldset>
<!--menu-->
<fieldset class="pure-group">
<label for="menu">Try Again:</label>
<select id="menu" name="menu">
<option selected>Javascript</option>
<option>Java</option>
<option>C++</option>
<option>Python</option>
<option>Other</option>
</select>
</fieldset>
<!--list-->
<fieldset class="pure-group">
<label for="list">And Again:</label>
<select id="list" name="list" size="5">
<option>Javascript</option>
<option>Java</option>
<option>C++</option>
<option selected>Python</option>
<option>Other</option>
</select>
</fieldset>
<!--datalist-->
<fieldset class="pure-group">
<label for="datalist">And Yet Again!:</label>
<input id="datalist" list="progLang" name="datalist" value="C++" />
<datalist id="progLang">
<option value="Javascript">
<option value="Java">
<option value="C++">
<option value="Python">
<option value="Other">
</datalist>
</fieldset>
<!--date-->
<fieldset class="pure-group">
<label for="date">Date</label>
<input id="date" type="date" name="date" value="2017-03-16" />
</fieldset>
<!--datetime-local-->
<fieldset class="pure-group">
<label for="datetime-local">Datetime local</label>
<input id="datetime-local" type="datetime-local" name="datetime-local" value="2017-03-16T23:59:59" />
</fieldset>
<!--month-->
<fieldset class="pure-group">
<label for="month">Month</label>
<input id="month" type="month" name="month" value="2017-10" />
</fieldset>
<!--number-->
<fieldset class="pure-group">
<label for="number">Number</label>
<input id="number" type="number" name="number" value="3" />
</fieldset>
<!--range-->
<fieldset class="pure-group">
<label for="range">Range</label>
<input id="range" type="range" name="range" value="76" min="0" max="100" />
</fieldset>
<!--search-->
<fieldset class="pure-group">
<label for="search">Search</label>
<input id="search" type="search" name="search" value="Bing || Google || DuckDuckGo" />
</fieldset>
<!--tel-->
<fieldset class="pure-group">
<label for="tel">Tel</label>
<input id="tel" type="tel" name="tel" value="012-345-6789" />
</fieldset>
<!--time-->
<fieldset class="pure-group">
<label for="time">Time</label>
<input id="time" type="time" name="time" value="10:51:36" />
</fieldset>
<!--url-->
<fieldset class="pure-group">
<label for="url">URL</label>
<input id="url" type="url" name="url" value="https://github.com/dwyl/html-form-send-email-via-google-script-without-server" />
</fieldset>
<!--week-->
<fieldset class="pure-group">
<label for="week">Week</label>
<input id="week" type="week" name="week" value="2017-W51" />
</fieldset>
<!--hidden-->
<input type="hidden" name="hidden" value="this is hidden" />
</form>
<div style="display:none;" id="thankyou_message">
<h2><em>Thanks</em> for filling out our test form!
We will get back to you soon!</h2>
</div>
<script data-cfasync="false" type="text/javascript" src="form-submission-handler.js"></script>
</body>
</html>