-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.html
290 lines (273 loc) · 9.11 KB
/
home.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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
---
---
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="FTC Rover Ruckus 2018-19">
<link rel="shortcut icon" href="https://pbs.twimg.com/profile_images/878010172441993216/OijG9WQH_400x400.jpg" />
<title>TrekApp: Enterprise</title>
<script src='https://www.google.com/recaptcha/api.js?render=6LeMG3kUAAAAAGDxURoYKmvc5EFo9B68iHyUHFFv'></script>
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
</head>
<body class="bodyclass">
<style>
.bodyclass {
background-image: url("http://goldenratiorobotics.com/wp-content/uploads/2018/10/IMG_3299-1.jpg");
/* Full height */
height: 100%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.sidenav {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #2f4f4f;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
}
.sidenav a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
background-color: #0b6ed8;
color: #ffffff;
display: block;
transition: 0.3s;
}
.sidenav a:hover {
color: #000000;
background-color: #2583db;
}
.sidenav .closebtn {
background-color: #2f4f4f;
color: white;
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
}
.sidenav .closebtn:hover {
background-color: #2f4f4f;
color: #808080;
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
}
.openNav {
border-radius: 25px;
color: white;
padding: 20px;
}
.openNav:hover {
border-radius: 50%;
color: black;
background-color: white;
padding: 20px;
}
#imageUpload
{
display: none;
}
#profileImage
{
cursor: pointer;
}
#profile-container {
width: 150px;
height: 150px;
overflow: hidden;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
}
#profile-container img {
width: 150px;
height: 150px;
}
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}
</style>
</head>
<body>
<div id="mySidenav" class="sidenav">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="profile-container">
<image id="profileImage" src="https://pikmail.herokuapp.com/[email protected]?size=100" />
</div>
<input id="imageUpload" type="file" name="profile_photo" placeholder="Photo" required="" capture>
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a><br/>
<a class="button-link" href="https://ftctrekapp.cf/index.html"><i class="fa fa-google"></i> Login</a><br/>
<a class="button-link" href="https://www.google.com/accounts/Logout?continue=https://appengine.google.com/_ah/logout?continue=https://ftctrekapp.cf"><i class="fa fa-google"></i> Logout</a><br/>
<a class="button-link" href="mailto:[email protected]" target="_blank"><i class="fa fa-envelope"></i> Contact Us</a>
</div>
<span class="openNav" style="font-size:30px;cursor:pointer;" onclick="openNav()">☰</span>
<script>
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
}
</script>
<h2 class="content-head is-center">TrekApp: Enterprise</h2>
<aside>
<p class="form-top">
Fill Out Form With Info On Other Teams! </br>
<strong>WARNING: FACTUAL DATA ONLY</strong>
</p>
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/TrekAppEnterprise/TrekAppEnterprise.github.io/fork" data-size="large" data-show-count="true" aria-label="Fork TrekAppEnterprise/TrekAppEnterprise.github.io on GitHub">Fork This Project</a>
</aside>
<!-- START HERE -->
<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">
<!-- Style The Contact Form How Ever You Prefer -->
<link rel="stylesheet" href="style.css">
<form oninput="Score.value=parseInt(a.value)+parseInt(b.value)+parseInt(c.value)" class="gform pure-form pure-form-stacked" method="POST" data-email="[email protected]"
action="https://script.google.com/macros/s/AKfycbyDMkJZW7zYHAVztWCr4iOz4TnglJHvPtDNKNUwR9wjePDAbd0/exec">
<!-- change the form action to your script url -->
<h2>Competition Date</h2>
<div class="form-elements">
<fieldset class="pure-group">
<label for="Competition Date"></label>
<input name="Competition Date" placeholder="Enter Date"></input>
</fieldset>
<h2>Team Name</h2>
<fieldset class="pure-group">
<label for="Team Name"></label>
<input name="Team Name" placeholder="Enter Name" />
</fieldset>
<h2>Team Number</h2>
<fieldset class="pure-group">
<label for="Team Number"></label>
<input name="Team Number"
placeholder="Enter Number"></input>
</fieldset>
<h2>Match Number</h2>
<fieldset class="pure-group">
<label for="Match Number"></label>
<input name="Match Number"
placeholder="Enter Match Number"></input>
</fieldset>
<h2>Alliance Color</h2>
<fieldset class="pure-group">
<label for="Alliance Color"></label>
<input name="Alliance Color"
placeholder="Enter Color"></input>
</fieldset>
<h2>Auto Points</h2>
<fieldset class="pure-group">
<label for="Auto Points"></label>
<input id="a" name="Auto Points" placeholder="Auto Points" />
</fieldset>
<h2>Drive Points</h2>
<fieldset class="pure-group">
<label for="Drive Points"></label>
<input id="b" name="Drive Points" placeholder="Drive Points" />
</fieldset>
<h2>EndGame Points</h2>
<fieldset class="pure-group">
<label for="EndGame Points"></label>
<input id="c" name="EndGame Points" placeholder="EndGame Points" />
</fieldset>
<h2>Total Score</h2>
<fieldset class="pure-group">
<h4>equals</h4>
<label for="Score"></label>
<output placeholder="Total Score" name="Score" for="a b c"></output>
</fieldset>
<h2>Personal Rating</h2>
<fieldset class="pure-group">
<label for="Personal Rating"></label>
<input name="Personal Rating" placeholder="Rating"></input>
</fieldset>
<h2>Strategy</h2>
<fieldset class="pure-group">
<label for="Strategy"></label>
<textarea id="message" name="Strategy" placeholder="Strategy" rows="10" />
</textarea>
</fieldset>
<h2>Comments</h2>
<fieldset class="pure-group">
<label for="Comments"></label>
<textarea id="message" name="Comments" placeholder="Comments" rows="10" />
</textarea>
</fieldset>
<h2>Self Report</h2>
<h4>Actual Points</h4>
<fieldset class="pure-group">
<label for="Actual Points"></label>
<input name="Actual Points" placeholder="Actual Points" />
</fieldset>
<h4>Reported Points</h4>
<fieldset class="pure-group">
<label for="Reported Points"></label>
<input name="Reported Points" placeholder="Reported Points" />
</fieldset>
<h2>Documented By</h2>
<fieldset class="pure-group">
<label for="email"></label>
<input type="email" name="email" placeholder="[email protected]" />
</fieldset>
<button class="button-success pure-button button-xlarge" style="text-align:center;" onclick="myFunction()">
<i class="fa fa-paper-plane"></i> Send</button>
</div>
</form>
<!-- Submit the Form to Google Using "AJAX" -->
<script data-cfasync="false" type="text/javascript"
src="form-submission-handler.js"></script>
<!-- END -->
<script>
grecaptcha.ready(function() {
grecaptcha.execute('6LeMG3kUAAAAAGDxURoYKmvc5EFo9B68iHyUHFFv', {action: 'action_name'})
.then(function(token) {
// Verify the token on the server.
});
});
</script>
<script>
function myFunction() {
window.location="success.html";
}
function logOut(){
document.location.href = "https://www.google.com/accounts/Logout?continue=https://appengine.google.com/_ah/logout?continue=https://ftctrekapp.cf";
}
function logIn(){
window.location="index.html";
}
</script>
<script>
$("#profileImage").click(function(e) {
$("#imageUpload").click();
});
function fasterPreview( uploader ) {
if ( uploader.files && uploader.files[0] ){
$('#profileImage').attr('src',
window.URL.createObjectURL(uploader.files[0]) );
}
}
$("#imageUpload").change(function(){
fasterPreview( this );
});
</script>
</body>
</html>