-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathACRT_View_webReport.html
356 lines (300 loc) · 20.2 KB
/
ACRT_View_webReport.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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
<!DOCTYPE html>
<html lang="en">
<script src="./JS/AngularJS1.6.9/angular.min.js"></script>
<script src="./JS/angular-sanitize.js"></script>
<head>
<title>View Report</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
<meta name="description" content="Great Tool to track test results" />
<link rel="stylesheet" type="text/css" href="./CSS/acrt_styles.css">
</head>
<body ng-app="acrt" ng-controller="acrtFormCtrl" >
<a href="#helpID" id="skipID" class="skip" autofocus >Skip to Main Content </a>
<div >
<img src=".\Resources\logo.png" alt="ACRT logo" title="ACRT Logo"style="width:5em;height:3.3em;">
<strong style="font-size: 1.5em;display: inline-block;" title="Accessibility Conformance Reporting Tool (ACRT)"> Accessibility Conformance Reporting Tool (ACRT) </strong>
</div>
<div class="topnav" id="myTopnav">
<a title="Home" href="./index.html" id="homeID" class="menu" >Home </a> <!--target="_blank" -->
<a title="Instructions" href="./Instruction.html" id="instructionID" class="menu" id="defaultFocus" >Instructions </a>
<a title="Create Report" href="./ACRT_Web_Input_Form.html" id="crtReportID" class="menu" >Create Report</a>
<a title="View Report" href="./ACRT_View_webReport.html" id="vwRptId" class="menu" >View Report</a>
<a title="View License" href= "./LICENSE.html" id="licenseID" class="menu" > View License </a>
</div>
<br>
<main style="margin-left: 1em;">
<form id="webTestResult">
<h1>View {{companyname}} Accessibility Conformance Report </h1>
<!-- To make sure you have the latest version of ACRT, check either
<a title="ACRT GitHub Repository" href= "https://github.com/Section508Coordinators/ACRT " target="_blank" id="helpID"> GitHub </a> (all users)
or <a title="ACRT Bitbucket Repository" href= "https://maestro.dhs.gov/stash/projects/APPDEV/repos/acrt/browse/acrt" target="_blank" id="bitbucketSrc">BitBucket </a> (DHS users) before completing the form. <br><br> -->
Refer to the <a title="ACRT User Guide" href="./Resources/ACRTTrainingManual.pdf" target="_blank" id="helpID">ACRT User Guide </a> for complete instructions.
<!-- <span> Based on VPAT® Version 2.4 </span> -->
<!-- <h1> View Test Report </h1> -->
<!-- View test report. <a title="View Report instructions" href="./Help_Report.html" target="_blank" id="tstinstrID"> "View Report" instructions </a> -->
<p > <!-- id="instr" -->
<strong >Tool Tips: </strong><br>
<ol >
<li>This is a read only page, no edits are allowed. </li>
<li>Use 'Skip to main content' link or keyboard shortcut Alt+M to go to go main content.</li>
<li>Expand Product, Test Environment, Tester Sections & Terms to view information.</li>
<li>At least one valid test result must be included to view complete report.</li>
<li>Double click on image in test result section to zoom it. </li>
<li>To save printer friendly HTML report, use Alt+S or save button is located at the bottom of page.</li>
<li>JSON report is used to edit & further analysis.HTML report is user friendly version. Keep both for future reference.</li>
</ol>
</p>
<span id='selectFileHd' ng-hide = "fileInput1" >
<label for="fileinput"> <strong> Select test results JSON file </strong>
</label><br>
<input type='file' class="input" id='fileinput' name='Browse to file' title="Please select valid file" onchange="angular.element(this).scope().fileNameChanged(this)" accept=".json"> <!--ng-click ="fileInput();" -->
</span>
<br><br>
<strong > <span id="selMsg" ng-show="fileInput1"> </span></strong>
<br><br>
<label for="loadFile" ng-show="fileInput1"> <strong> Load selected file</strong>
</label><br> <button id='buttonLoad' class="button" ng-model="loadbtn" ng-show="fileInput1" ng-click="loadFile();" id='loadFile' name="Load Data In this Form" ng-model-options="{ updateOn: 'click', debounce: { 'default': 20, 'blur': 0 }}" >Load Results</button>
<!-- <br>You have selected <strong>{{evalMethod}} </strong> Version <strong class="hdnMsg">{{evalMethodVrsn}}</strong> -->
<p id='afterDwnloded'><img id="dwnldConfm" ng-src ="./Resources/chkMrk.jpg" ng-show="dataLoaded" width="20" height="20" alt="Checkmark" onerror="this.style.display='none';">
<span id="msg1"> <Strong> </strong></span> </P>
</ul> <div ng-show="dataLoaded">
<fieldset style="margin-left: 1em;">
<legend>
<h2> Product </h2>
</legend>
<button class="collapsible" title="Show or HIde Product Section" id="productBtn" onclick="expandCollapse1()"> <div id="expandCollapse1"> <i class="up"></i> Show Product section</div> </button>
<div class="content">
<div class="divSpace" id="productInfo" >
<label for="productID"> Product Name: </label> <input type="string" ng-model="productID" class="betnTags" id="productID" name="Entered Name Of Product" ng-readonly="true" size="100">
<br><label for="versionID"> Product Version: </label> <input type="string" ng-model="ownerID" class="betnTags" id="ownerID" name="Entered Product Version" ng-readonly="true" size="50">
<br><label for="ownerID">Product Owner: </label> <input type="string" ng-model="versionID" class="betnTags" id="versionID" name="Entered Product Owner/Vendor" ng-readonly="true" size="40">
<br><label for="productType"> Product Type: </label> <input type="string" ng-model="productType" class="betnTags" id="productType" name="Entered Type Of Product" ng-readonly="true">
<br><label for="urlID">Location: </label> <input type="string" ng-model="urlID" class="dateField" id="urlID" name="Entered Location" ng-readonly="true">
<br><label for="prodDescID">Product description:<br> </label> <textarea ng-model="prodDescID" class="txtarea" rows="4" cols="90" id="prodDescID" name="Entered Product Description" ng-readonly="true"></textarea>
<br> <label for="prdNteDescID"> Notes: <br></label> <textarea ng-model="prdNteDescID" class="txtarea" id="prdNteDescID" rows="4" cols="90" name="Entered Notes" ng-readonly="true"></textarea>
</div>
</div>
</fieldset> <br>
<fieldset style="margin-left: 1em;">
<legend>
<h2> Testing Information </h2>
</legend>
<button class="collapsible" title="Show or HIde Testing Information Sectiion" onclick="expandCollapse3()">
<div id="expandCollapse3"> <i class="up"></i> Show Testing Information section</div>
</button>
<div class="content">
<div class="divSpace" id="productInfo">
<label for="firstname"> Tester's First Name: </label> <input type="string" ng-model="firstname" class="betnTags" id="firstname" name="Entered Tester's First Name" ng-readonly="true">
<br><label for="lastname"> Tester's Last Name: </label> <input type="string" ng-model="lastname" class="betnTags" id="lastname" name="Entered Tester's Last Name" ng-readonly="true">
<br><label for="testerID"> Trusted Tester ID: </label> <input type="string" ng-model="testerID" class="betnTags" id="testerID" name="Entered Tester's ID" ng-readonly="true"> <br>
<br><label for="companyname"> Company Name: </label> <input type="string" ng-model="companyname" class="betnTags" id="companyname" name="Entered Tester's Company Name" ng-readonly="true">
<br><label for="testerContact"> Tester's Email: </label> <input type="string" ng-model="testerContact" class="betnTags" id="testerContact" name="Entered Tester's Contact" ng-readonly="true">
<br><label for="testScope">Testing Scope: </label> <textarea rows="4"cols="90" type="text" ng-model="testScope" class="txtarea" id="testScope" name="Entered Test Scope" ng-readonly="true"></textarea> <br>
</div>
</div>
</fieldset> <br>
<fieldset style="margin-left: 1em;">
<legend>
<h2> Test Environment </h2>
</legend>
<button class="collapsible" title="Show or HIde Test Environment Section" onclick="expandCollapse2()">
<div id="expandCollapse2"> <i class="up"></i> Show Test Environment section</div>
</button>
<div class="content">
<div class="divSpace" id="sysInfo">
<label for="myBrowserTested">Browser: </label> <input type="string" ng-model="myBrowserTested" class="txtarea" id="myBrowserTested" name="Selected Browser Types" ng-readonly="true" width=200 size="100">
<br><br> <label for="myBrowser">Browser Version: </label> <input type="string" ng-model="myBrowser" class="txtarea" id="myBrowser" name="Selected Browser Versions" ng-readonly="true" size="100">
<br><label for="compID">Compatibility View: </label> <input type="string" ng-model="compID" class="betnTags" id="compID" name="Selected Compatibility View" ng-readonly="true"> <br>
<br><label for="myOpsysTested"> Operating System: </label> <input type="string" ng-model="myOpsysTested" class="txtarea" id="myOpsysTested" name="Selected OS Tested" ng-readonly="true" size="80">
<br><br><label for="myOpsys"> Operating System Version: </label> <input type="string" ng-model="myOpsys" class="txtarea" id="myOpsys" name="Selected OS Versions" ng-readonly="true" size="80">
</div>
</div>
</fieldset> <br>
<fieldset style="margin-left: 1em;">
<legend>
<h2> Terms </h2>
</legend>
<button class="collapsible" onclick="expandCollapse4()">
<div id="expandCollapse4"> <i class="up"></i> Show terms used in the Conformance Level </div>
</button>
<div class="content">
<ul>
<li> <strong>Supports:</strong> The functionality of the product has at least one method that meets the criterion without known defects or meets with equivalent facilitation. </li>
<li> <strong>Does Not Support:</strong> The majority of product functionality does not meet the criterion.</li>
<li> <strong>Not Applicable:</strong> The criterion is not relevant to the product. </li>
<li> <strong>Not Evaluated:</strong> The product has not been evaluated against the criterion. This can only be used in WCAG 2.0 Level AAA.</li>
</ul>
<div class="divSpace" id="termsInfo">
</div>
</div>
</fieldset>
</div>
<br>
<div id="displayTestRslt" hidden >
<h3> Test Results </h3>
<label for="evalMethod"> Testing Method:</label> <input type="string" ng-model="evalMethod" class="betnTags" id="evalMethod" name="Selected Evaluation Method Used" ng-readonly="true">
<label for="evalMethodVrsn">Testing Method Version: </label> <input type="string" ng-model="evalMethodVrsn" class="betnTags" id="evalMethodVrsn" name="Entered Evaluation Version" ng-readonly="true"> <br>
<label for="dateSubmitted"> Review Date:</label> <input type="string" ng-model="dateSubmitted" class="dateField" id="dateSubmitted" name="Review Date" ng-readonly="true"> <br> <br>
<p><strong ng-if="isDraft" class="hdnMsg"> This is a Draft report. For final report, please input results for all tests.</strong><p>
<table id="sc1" ng-if="wcagRprt" >
<caption> <strong>WCAG Report </strong></caption>
<thead>
<tr>
<th style="width: 102px" scope="col">Criteria</th>
<th style="width: 219px" scope="col">Conformance Level</th>
<th style="width: 219px" scope="col">Standard/Guideline</th>
<th style="width: 400px" scope="col">Remarks and Explanations </th>
<!-- <th style="width: 450px" scope="col">Impacted Group </th> -->
</tr>
</thead>
<tbody ng-repeat="record1 in jsonData">
<tr ng-repeat="test1 in record1.SuccessCriteria">
<th scope="row" title="Success Criteria" style="width: 102px">{{test1.CrtID}}</th>
<td style="width: 220px" title="Conformance Level" >{{test1.ConformanceLvl}}</td>
<td style="width: 220px" title="Guideline" > {{test1.Guideline}} </td>
<td style="width: 400px" title="Remarks & Explanations" > {{test1.RemarkExplntn}} </td>
<!--<td style="width: 450px" title="Impacted Group" > {{test1.DisabilityImpact}} </td> -->
</tr>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<input id="selector111" name="Checkbox to view test results" title="View all test results" type="checkbox" ng-model="checked1" > <!-- onclick="chkBxMsg('selector111', 'chkUnchk');" -->
<label for="smoking" name="chkUnchk" id="chkUnchk"><strong> View all test results </strong></label>
<br />
<div ng-show="checked1">
<div ng-show="wcagRprt">
<table class="table" id="th1" style="font-size: 93%" >
<thead>
<tr>
<th scope="col" title="Issue Number" id="in[$index]"><div style="width: 78px"> Issue Number </div> </th>
<th scope="col" title="Test Name" id="testname[$index]">
<div style="width: 85px">Test Name</div>
</th>
<th scope="col" title="Test ID" id="testid[$index]">
<div style="width: 30px">Test ID</div>
</th>
<th scope="col" title="Test Condition" id="tc[$index]">
<div style="width: 198px"> Test Condition </div>
</th>
<th scope="col" title="Test Result" id="result[$index]">
<div style="width: 67px"> Test Result </div>
</th>
<th scope="col" title="Browser" id="brsr[$index]">
<div style="width: 127px"> Browser </div>
</th>
<th scope="col" title="Tester's Comment" id="cmnt[$index]">
<div style="width: 198px"> Tester Comments </div>
</th>
<th scope="col" title="Tester's Comment" id="location[$index]">
<div style="width: 198px"> Location/Screen </div>
</th>
<th scope="col" title="Screenshot" id="scrnsht[$index]">
<div style="width: 123px" >Screenshot </div>
</th>
<th style="width: 61px" scope="col" title="Global Issue" id="glbl[$index]">Global Issue </th>
<th scope="col" title="Remediation Details" id="rmdtl[$index]">
<div style="width: 198px"> Remediation Details </div>
</th>
<th scope="col" title="Date" id="rmdt[$index]">
<div style="width: 102px"> Remediation Date </div>
</th>
</tr>
</thead>
<tbody ng-repeat="record in jsonData">
<tr ng-repeat="test in record.Criteria " ng-if="noResult[$index]">
<td title="Issue Number">
<div style="width: 80px"> Issue {{counterCollection[$index]}} </div>
</td>
<th scope="row" title="Test Name" id="tnm1[$index]">
<div class="widetd1"> {{TestName[$index]}} </div>
</th>
<td title="Test Id" id="tid1[$index]">
<div class="widetd2"> {{TestID[$index]}}</div>
</td>
<td title="Selected Test Condition" id="tstcndn1[$index]">
<div class="widetd3"> {{TestCondition[$index]}}</div>
</td>
<td title="Selected Test Result" id="tstrslt1[$index]">
<div style="width: 69px"> {{TestResult[$index]}} </div>
</td>
<td title="Selected Browser Types" id="brsr1[$index]">
<div style="width: 129px"> {{T_brwsrType[$index]}} </br> {{T_brwsrVrsn[$index]}}</div>
</td>
<td title="Entered Tester's Comment" id="tstcmt1[$index]">
<div class="widetd3"> {{TesterComment[$index]}}</div>
</td>
<td title="Entered location/screen" id="lcn1[$index]">
<div class="widetd3"> {{location[$index]}}</div>
</td>
<td width="151"> <img width="100" id="image{{$index}}" ng-src={{ImageSrc[$index]}} ng-click="zoom($index)" class="large-image" title="Selected screenshot" alt="Selected screenshot" onerror="this.style.display='none';" >
<div id="{{$index}}" class="modal">
<span class="close" id="cls{{$index}}" >×</span>
<img alt="Selected screenshot" class="modal-content" id="img{{$index}}">
<div class="caption" id="caption{{$index}}" ></div>
</div>
</td>
<td title="Selected Global Issue" id="glbl1[$index]">
<div style="width: 46px"> {{GlobalIssue[$index]}} </div>
</td>
<td title="Entered Remediation Details" id="rmdtl1[$index]" >
<div style="width: 201px"> {{RemediationDetails[$index] }}</div>
</td>
<td title="Date" id="rmdt1[$index]" >
<div style="width: 102px"> {{RemediationDate[$index]}} </div>
</td>
</tr>
</tbody>
</table>
</div>
<fieldset ng-show='DisabilityImpactCollectionLength' style="margin-left: 0em;">
<legend>
<h3> Disability Impact </h3>
</legend>
<h3> <a title="Disability Impact Information " ng-href="./Resources/WCAG 2.0 Impact Statements_2018-10-02.docx">Disability Impact Summary</a> </h3>
<button class="collapsible" id="dsblGrpBtn">Impact Summary </button>
<div class="content">
<label for="dsblImpctRslt"> </label> <!-- <h4>Different impacted groups are separated by comma, check below</h4> -->
<span id="dsblImpctRslt" >{{DisabilityImpactCollection}} </span> <!-- {{DisabilityImpactCollectionSC}}-->
<!-- commented out because we dont want to display duplicate groups based on failed test conditions
<div id="myImpact" ng-repeat="record in jsonData">
<label for="dsblImpctRslt"> Disability impact summary </label>
<ul id="dsblImpctRslt" ng-repeat="test in record.SuccessCriteria | unique : 'DisabilityImpact' ">
<li title="Impacted group" ng-hide='test.DisabilityImpact == "" || test.DisabilityImpact == " "'>
{{test.DisabilityImpact}}
</li>
</ul>
</div> -->
</div>
</fieldset>
<fieldset style="margin-left: 0em;">
<legend>
<h3 > Other Test Results </h3>
</legend>
<button class="collapsible">Other Results </button>
<div class="content">
<h3> Hardware Test Results </h3>
N/A
<h3> Document Test Results </h3>
N/A
</div>
</fieldset>
</form>
</main>
<br/><br/><br/><br/>
<div id="htmlReportDiv" class="footerbutton" style="margin-left: 1em;" hidden >
Select <strong>Save as HTML</strong> to generate HTML version of the printable report (saved in Downloads folder by default). <br/>
<input type="button" id="sbtBtn" class="button" value="Save as HTML (Alt+S)" ng-click="saveHtml()">
</div>
<script src="./JS/acrt_Web_Report.js"> </script>
<script>
function myFunction() {
window.print();
}
</script>
</body>
</html>