-
Notifications
You must be signed in to change notification settings - Fork 0
/
postmatch.html
102 lines (93 loc) · 5.3 KB
/
postmatch.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>FRC Team 401 Scouting</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="main.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!--<script>
const scriptURL = 'https://script.google.com/macros/s/AKfycbwxRYOZDpze9BnIK3rJuo0oMy5OE3oM3-n8n6TUUT5ssFmqAXbsPCr28pZunglhe5WM5Q/exec'
const form = document.forms['google-sheet']
form.addEventListener('submit', e => {
e.preventDefault()
fetch(scriptURL, { method: 'POST', body: new FormData(form)})
.then(response => $("#form_alerts").html("<div class='alert alert-success'>Contact message sent successfully.</div>"))
.catch(error => $("#form_alerts").html("<div class='alert alert-danger'>Contact message not sent.</div>"))
})
</script>-->
</head>
<body>
<div class="container-fluid" id="title-container">
<h1> FRC Team 401 Scouting</h1>
</div>
<nav class="navbar navbar-expand-sm justify-content-center sticky-top">
<ul class="container-sm flex-nowrap align-middle">
<li class="nav-item container-sm">
<a href="teleop.html">Back</a>
</li>
<li class="nav-item dropdown container-sm">
<!-- idk what to tell you the dropdown just doesnt drop down on this page -->
<!--<a class="nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown">Post Match</a>-->
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="index.html">Pre-Match</a></li>
<li><a class="dropdown-item" href="auto.html">Autonomous</a></li>
<li><a class="dropdown-item" href="teleop.html">Teleop</a></li>
<li><a class="dropdown-item" href="postmatch.html">Post-Match</a></li>
</ul>
</li>
<li class="nav-item container-sm">
</li>
</ul>
</nav>
<br>
<div class="container py-5">
<div class="row">
<div class="col-lg-5 col-md-8 mx-auto shadow border bg-white p-4 rounded">
<h2 class="text-center fw-bold mb-3">SUBMIT</h2>
<p class="text-center">Please review submission and add additional comments at the end.</p>
<form name="google-sheet">
<div id="form_alerts"></div>
<div class="form-group mb-3">
<label for="name" class="form-label">Scout Initials</label>
<input type="text" id="Scout_Initials" name="Scout Initials" class="form-control" required>
</div>
<div class="form-group mb-3">
<label for="Match #" class="form-label">Match #</label>
<input type="text" id="Match_#" name="Match #" class="form-control" placeholder="Enter your email address" required>
</div>
<!--<div class="form-group mb-3">
<label for="Team #" class="form-label">Team #:</label>
<textarea id="comments" name="Team #" class="form-control" placeholder="Enter your comments" rows="5" required></textarea>
</div>-->
<div class="form-group mb-3">
<label for="Team #" class="form-label">Team #:</label>
<input type="text" id="Team_#" name="Team #" class="form-control" placeholder="Enter your comments" required></textarea>
</div>
<div class="form-group mb-3">
<label for="played-defense-rating" class="form-label">Defense Rating:</label>
<input type="text" id="playedDefenseRating" name="playedDefenseRating" class="form-control" size="10">
</div>
<div class="form-group mb-3">
<label for="comments" class="form-label">Comments:</label>
<textarea type="text" id="comments" name="comments" class="form-control" placeholder="Enter your comments" required></textarea>
</div>
<div>
<button class="btn btn-primary me-2" type="submit">Submit!</button>
<button class="btn btn-danger" type="reset">Reset!</button>
</div>
</form>
</div>
</div>
</div>
<script src="app.js"></script>
<noscript>You need to enable JavaScript to view the full site.</noscript>
</body>
</html>