-
Notifications
You must be signed in to change notification settings - Fork 2
/
schedule.html
244 lines (171 loc) · 8.36 KB
/
schedule.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style media="screen">
#list-of-hours-1, #list-of-hours-2, #list-of-hours-3, .hideLink, #step-3 {
display: none;
}
/* @-ms-viewport{
width: device-width;
} */
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<title>Prototype form for scheduling a COVID-19 test - v02</title>
<link rel="stylesheet" href="css/uswds.min.css" />
</head>
<body>
<script src="js/uswds.min.js"></script>
<a class="usa-skipnav" href="#main-content">Skip to main content</a>
<section class="usa-banner" aria-label="Official government website">
<div class="usa-accordion">
<header class="usa-banner__header padding-bottom-2 min-height-none">
<div class="usa-banner__inner">
<div class="grid-col-auto">
<!-- <img class="usa-banner__header-flag" src="img/us_flag_small.png" alt="U.S. flag"> -->
</div>
<div class="">
<h3 class="padding-bottom-0 margin-bottom-0">Form for scheduling a COVID-19 test</h3>
<p class="usa-banner__header-text padding-top-0 margin-top-1 test-clicker">Not functional / For demonstration purposes. To view the form for health and demographic information, <a href="complete-registration.html">click here</a>.</p>
<p class="usa-banner__header-text padding-top-0 margin-top-1 margin-bottom-0">This version uses YouCanBook.me to reserve and manage calendar appointments. For an example that doesn't rely on a third-party service, <a href="schedule-all-html.html">click here</a>.
</p>
</div>
</div>
</header>
</div>
</section>
<div class="usa-overlay"></div>
<header class="usa-header usa-header--basic">
<div class="usa-nav-container">
<div class="">
<div class="usa-logo margin-bottom-0" id="basic-logo">
<h1 class="margin-bottom-1">Schedule a COVID-19 test</h1>
<h3 class="margin-top-1 padding-right-2">This form will create an appointment for you and members of your household to get tested.</h3>
</div>
</div>
</div>
</header>
<div class="usa-section padding-top-4 margin-top-0">
<div class="grid-container">
<div class="grid-row grid-gap">
<main class="tablet:grid-col-12" id="main-content">
<!-- <div class="usa-alert margin-bottom-8 margin-top-0">
<div class="usa-alert__body">
<p class="usa-alert__text"><b>All sections can be styled to align with our broader communications strategy.</b></p>
<p class="usa-alert__text">For an example of the form for residents to complete their registration, <a href="complete-registration.html">click here</a>.</p>
</div>
</div> -->
<form class="example-form-content">
<!-- <fieldset class="usa-fieldset padding-bottom-8 margin-top-6" id="select-date-and-time">
<legend class="usa-legend padding-bottom-0">Location selected</legend>
<div id="your-selections">
</div>
<br/> -->
<section id="ycbm-iframe">
<legend class="usa-legend margin-bottom-0">Select a location and time</legend>
<!-- <p class="margin-top-1 margin-bottom-1">Testing is currently available at the following locations:</p> -->
<br/>
<iframe src="https://test-signup-v1.youcanbook.me/?noframe=true&skipHeaderFooter=true" id="ycbmiframetest-signup-v1" style="width:100%;height:1000px;border:0px;background-color:transparent;" frameborder="0" allowtransparency="true"></iframe><script>window.addEventListener && window.addEventListener("message", function(event){if (event.origin === "https://test-signup-v1.youcanbook.me"){document.getElementById("ycbmiframetest-signup-v1").style.height = event.data + "px";}}, false);</script>
</section>
</form>
<!-- end of form -->
</main>
</div>
</div>
</div>
</body>
<script>
$("#show-hours-link-1").click(function(){
$('#list-of-hours-1').slideToggle(600);
});
$("#show-hours-link-2").click(function(){
$('#list-of-hours-2').slideToggle(600);
});
$("#show-hours-link-3").click(function(){
$('#list-of-hours-3').slideToggle(600);
});
// $(".location-button").click(function(){
// $(this).hide();
// });
// pull location selection
// $(function() {
// $(".location-button").click(function() {
// var selectedLocation = $(this).parent().parent().html();
// alert (selectedLocation);
// $('#select-date-and-time').slideUp(400);
// $('#appointment-details').slideDown(600);
//
// // alert("Value: " + $('input[name="work-setting"]:checked').parent().text());
// });
// });
// $(function() {
// $("input[name='location-selected']").click(function() {
//
// if ($("input[name='location-selected']").is(":checked")) {
// $(".selectedLocation").addClass("unselectedLocation");
// $(".selectedLocation").removeClass("selectedLocation");
// $(this).parent().parent().parent().parent().addClass("selectedLocation");
// $(this).parent().parent().parent().parent().removeClass("unselectedLocation");
// $(".hideLink").addClass("hideLink");
// } else {
//
// }
// $(".unselectedLocation").slideUp();
// $(".unselectedLocation").find("label").text("Select this location");
// $(this).parent().find("label").text("Location selected");
// $(this).parent().parent().find("p").removeClass("hideLink");
// $(".unselectedLocation").find(".location-button").addClass("usa-button--outline");
// $(".selectedLocation").find(".location-button").removeClass("usa-button--outline");
// $("#step-2").slideDown();
// });
// });
//
// $(".change-location-link").click(function(){
// $(".unselectedLocation").slideDown();
// $(this).addClass("hideLink");
// });
//
//
//
// $(function() {
// $("input[name='time-selected']").click(function() {
//
// if ($("input[name='time-selected']").is(":checked")) {
// $(".selectedTime").addClass("time-option");
// $(".selectedTime").addClass("unselectedTime");
// $(".selectedTime").removeClass("selectedTime");
// $(".day-selected").addClass("day-group");
// $(".day-selected").removeClass("day-selected");
// $(this).parent().addClass("selectedTime");
// $(this).parent().removeClass("unselectedTime");
// $(this).parent().removeClass("time-option");
// $(this).parent().after("<p class=\"margin-top-0 change-time-link margin-bottom-0 text-center text-base text-underline\">Change date & time</p>");
// $(this).parent().parent().parent().parent().parent().addClass("day-selected");
// $(this).parent().parent().parent().parent().parent().removeClass("day-group");
//
// } else {
//
// }
// $(".time-option").slideUp();
// $(".day-group").slideUp();
// $(".unselectedTime").addClass("usa-button--outline");
// $(".selectedTime").removeClass("usa-button--outline");
// $(".change-time-link").click(function(){
// $(".day-group").slideDown();
// $(".time-option").slideDown();
// $(this).addClass("hideLink");
// });
// $("#step-3").slideDown();
// });
// });
//
// $(".change-time-link").click(function(){
// $(".day-group").slideDown();
// $(".time-option").slideDown();
// $(this).addClass("hideLink");
//
// });
</script>
</html>