-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtests.html
313 lines (280 loc) · 8.54 KB
/
tests.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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test Library</title>
<link rel="icon" type="image/png" href="docs/images/favicon.PNG">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link href="./docs/css/styles.css" rel="stylesheet"/>
<script src="./docs/js/testSummaryTemplate.js"></script>
<style>
/* Ensure images resize properly without squeezing */
.img-fluid {
max-width: 100%;
height: auto;
}
/* Sticky navigation bar adjustment for smaller screens */
.sticky {
max-height: 30vh;
overflow-y: auto;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 5px;
}
@media (max-width: 768px) {
.sticky {
position: relative;
top: 0;
margin-bottom: 1rem;
}
}
</style>
</head>
<body>
<div class="container-fluid p-5 page-container">
<!-- Header Section -->
<div class="row mb-4">
<!-- Header Logo -->
<div class="col col-auto px-0">
<a href="index.html">
<img class="header-logo" src="docs/images/mango-text.PNG">
</a>
</div>
<!-- Header Text -->
<div class="col">
<div class="display-5">CIB Mango Tree</div>
<div class="fw-light">A Civic Tech DC Project</div>
</div>
</div>
<!-- Main Content Section -->
<div class="row p-5 homepage-hero">
<div class="d-flex flex-column flex-md-row">
<!-- Sticky Navigation Menu -->
<div class="nav flex-column nav-pills me-3 col-12 col-md-3 card card-body sticky">
<a class="d-flex justify-content-center nav-link text-center" href="index.html">About</a>
<a class="d-flex justify-content-center nav-link text-center" href="download-and-install.html">Download & Install</a>
<a class="d-flex justify-content-center nav-link text-center" href="data-preparation.html">Data Preparation</a>
<a class="d-flex justify-content-center nav-link text-center active" href="tests.html">List of Tests</a>
</div>
<div class="col-9 mb-5">
<div class="card card-body transparent-card">
<h1 class="display-3">Test Library</h1>
<div class="row row-cols-1 g-4">
<template id="test-summary-template">
<style>
/* General Styling */
.img-fluid {
max-width: 100%;
height: auto;
}
/* Test Summary Card */
.test-summary {
display: flex;
flex-direction: row;
column-gap: 15px;
align-items: flex-start;
}
.test-summary img {
width: 130px;
height: auto;
}
.test-description {
flex: 1;
}
.req-fields-label {
margin-top: 15px;
font-weight: bold;
}
.reqs-boxes {
background-color: #f0f0f0;
padding: 8px;
border-radius: 5px;
margin-right: 5px;
text-align: center;
font-size: 0.85rem;
display: inline-block;
margin-bottom: 5px;
}
.test-details-btn {
margin-top: 15px;
}
/* Mobile Styling */
@media (max-width: 768px) {
.test-summary {
flex-direction: column; /* Stack content vertically */
align-items: center;
text-align: center;
}
.test-summary img {
margin-bottom: 15px; /* Add spacing between the image and text */
}
.test-description {
text-align: left; /* Keep text aligned to the left */
width: 100%;
}
.req-fields-label,
.reqs-boxes {
text-align: center; /* Center-align required fields on mobile */
display: block; /* Stack the required fields */
}
.reqs-boxes {
margin: 5px 0; /* Add vertical spacing between boxes */
}
}
@import "https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css";
@import url("./docs/css/styles.css");
.test-summary {
display: flex;
column-gap: 10px;
}
.test-summary img {
width: 130px
}
.test-description {
flex: 1 1 auto;
}
slot[name=req-fields]::slotted(*){
display: flex;
flex-wrap: wrap;
}
.req-fields-label {
margin-top: 20px;
}
.test-details-btn {
flex: 0 0 auto;
height: fit-content;
}
slot[name=test-details-link]::slotted(*){
padding-left: 20px !important;
padding-right: 20px !important;
text-decoration: none !important;
}
</style>
<div class="col">
<div class="card">
<div class="card-body">
<div class="card-title fw-semibold">
<slot name="test-name"></slot>
</div>
<div class="test-summary">
<div class="test-icon">
<img src="./docs/images/low-hanging-circle.png">
</div>
<div class="test-description">
<slot name="test-description"></slot>
<div class="req-fields-label"><em>Required Fields:</em></div>
<slot name="req-fields">None</slot>
</div>
<div class="test-details-btn">
<slot name="test-details-link"></slot>
</div>
</div>
</div>
</div>
</div>
</template>
<test-summary>
<span slot="test-name">Copypasta</span>
<span slot="test-description">A test to examine for identical strings of text repeated across posts, AKA “copypasta.”</span>
<div slot="req-fields">
<div class="reqs-boxes">Unique Post Username</div>
<div class="reqs-boxes">Unique Post Number</div>
<div class="reqs-boxes">Post Content</div>
</div>
<a slot="test-details-link" class="btn btn-primary" href="copypasta.html">
See Test
</a>
</test-summary>
<!-- <test-summary>
<span slot="test-name">Graphing Post Time</span>
<span slot="test-description">A test that graphs the frequency of all usernames’ posting across a 24 hour chart, allowing you to check for unusual patterns of posting.</span>
<div slot="req-fields">
<div class="reqs-boxes">Unique Post Username</div>
<div class="reqs-boxes">Unique Post Number</div>
<div class="reqs-boxes">Post</div>
<div class="reqs-boxes">Post Time</div>
</div>
<a slot="test-details-link" class="btn btn-primary" href="post-time.html">
See Test
</a>
</test-summary> -->
<!-- <test-summary>
<span slot="test-name">Post Time Coordination</span>
<span slot="test-description">A test that examines for usernames posting within the same time windows across multiple instances in the dataset, revealing possible coordination.</span>
<div slot="req-fields">
<div class="reqs-boxes">Unique Post Username</div>
<div class="reqs-boxes">Unique Post Number</div>
<div class="reqs-boxes">Date</div>
<div class="reqs-boxes">Post Time</div>
</div>
<a slot="test-details-link" class="btn btn-primary" href="tests_time_coor.html">
See Test
</a>
</test-summary> -->
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy" crossorigin="anonymous"></script>
</body>
<style>
/* Card Styling */
.card {
border: 1px solid #ddd; /* Subtle border */
border-radius: 8px; /* Rounded corners */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
padding: 20px;
margin-top: 10px;
}
.card-title {
display: flex;
align-items: center;
font-size: 1.2em;
margin-bottom: 15px;
}
.card-title .badge {
margin-left: 10px;
font-size: 0.85em;
background-color: #6c757d; /* Secondary color */
color: white;
border-radius: 5px;
}
.test.description {
margin-bottom: 15px;
color: #555;
line-height: 1.5;
font-size: 0.95em;
}
.req-fields {
font-weight: bold;
color: #333;
margin-top: 15px;
margin-bottom: 10px;
}
/* Needed Parameters Boxes */
.box-row {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 15px;
}
.reqs-boxes {
flex: 1;
background-color: #f0f0f0;
color: #333;
padding: 8px;
border-radius: 5px;
text-align: center;
font-size: 0.9em;
}
/* Button Styling */
.btn-primary {
width: fit-content;
margin-top: 15px;
}
</style>
</html>