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<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Audit Builder - Equalify</title>
</head>
<body>
<main>
<h1>Audit Builder</h1>
<div aria-live="assertive">Logged in as Lucy Greco.</div>
<nav aria-label="Breadcrumb">
<ol>
<li><a href="#" aria-current="page">Add and Review Pages</a></li>
<li><a href="#">Set Audit Options</a></li>
</ol>
</nav>
<form>
<secton>
<h2>General Info</h2>
<label for="audit_name">Audit Name:</label>
<input id="audit_name" required>
<label for="scan_frequency">Scan Frequency:</label>
<select id="scan_frequency" required>
<option checked>Manually</option>
<option>Daily</option>
<option>Weekly</option>
<option>Monthly</option>
<option>On Monitor Update</option>
</select>
<div role="group" aria-labelledby="email-notifications-heading">
<h4 id="email-notifications-heading">Email Notifications</h4>
<input id="email_summary" type="checkbox">
<label for="email_summary">
Email summary to Lucy Greco, lgreco@berkeley.edu.
</label>
<label for="email_frequency">Email Frequency:</label>
<select id="email_frequency">
<option>Daily</option>
<option>Weekly</option>
<option>Monthly</option>
</select>
</div>
</secton>
<section>
<h2>Add URLs</h2>
<label for="importer">Import By:</label>
<select id="importer">
<option selected>URLs</option>
<option>CSV</option>
</select>
<div id="page-url-section">
<label for="urls">URLs:</label>
<input id="urls" type="text" aria-describedby="page-url-description" required>
<p id="page-url-description">Enter single or muliple URLs separated by commas.</p>
</div>
<div id="csv-section" style="display:none;">
<label for="csv-upload">CSV Upload:</label>
<input id="csv-upload" type="file" accept=".csv">
</div>
<button type="button" onclick="window.location.href='4-audit_builder-pages_added.html';">Add Pages</button>
<script>
document.getElementById("importer").addEventListener("change", function() {
var selectedOption = this.value;
// Hide all sections
document.getElementById("page-url-section").style.display = "none";
document.getElementById("csv-section").style.display = "none";
// Show the appropriate section based on selection
if (selectedOption === "URLs)") {
document.getElementById("page-url-section").style.display = "block";
} else if (selectedOption === "CSV") {
document.getElementById("csv-section").style.display = "block";
}
});
</script>
</section>
</form>
<section>
<h2>Review Added Pages</h2>
<input id="all-added-pages" type="checkbox" class="select_all"> <label for="all-added-pages">Select All Added Pages</label>
<table id="added_pages">
<thead>
<tr>
<th role="columnheader">URL</th>
<th role="columnheader">Type</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">No pages added.</td>
</tr>
</tbody>
</table>
<nav aria-label="Edit Added Pages">
<button>Remove Pages</button>
</nav>
<script>
document.querySelectorAll('.select_all').forEach(selectAllCheckbox => {
selectAllCheckbox.addEventListener('change', function() {
const parent = this.closest('div, table, details, section');
const checkboxes = parent.querySelectorAll('input[type="checkbox"]:not(.select_all)');
checkboxes.forEach(checkbox => checkbox.checked = this.checked);
});
});
</script>
</section>
<button disabled>Next Step</button>
</main>
</body>
</html>