-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
executable file
·147 lines (126 loc) · 3.02 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
body {
width: 325px;
margin: 10px;
}
[role=radio] {
display: block;
position: relative;
margin: 0.5em;
padding-left: 20px;
border: thin transparent solid;
}
/* This creates the visuals for the radio buttons */
[role=radio]::before,
[role=radio]::after {
display: block;
position: absolute;
border-radius: 50%;
content: '';
}
[role=radio]::before {
top: 0;
left: 0;
width: 14px;
height: 14px;
border: 1px solid #000;
background: #fff;
}
[role=radio][aria-checked=true]::after {
top: 3px;
left: 3px;
border: 5px solid #000;
content: '';
}
#codeex{
background-color: #F1F1F1 ;
padding:10px;
}
div[role=checkbox] {
margin: 0;
padding: 0;
border: 2px transparent solid;
}
div[role=checkbox]:active {
background-color: #bbb;
}
div[role=checkbox]:hover {
border-color: #777;
}
div[role=checkbox].focus {
border-color: black;
}
img {
width: 10%;
height: 10%;
}
</style>
</head>
</head>
<body>
<h4>Contextualize HTML Code -- Chrome Extension</h4>
<h5>
Please choose a level of abstraction.
<br>
Low level of abstraction will give you more details about the code, including where opening and closing tags exist.
<br>
High level of abstraction will provide more of an overview of the code.
<br>
With ChromeVox, you can use the space bar to select a radio button.
</h5>
<button id ="reset"> Reset </button>
<div id = "levelOf" role="radiogroup" aria-labelledby="abstractions">
<div role="radio" aria-checked="false" tabindex="0" name="low abstraction" class="abstraction" value="low">
Low level
</div>
<br>
<div role="radio" aria-checked="false" tabindex="-1" name="high abstraction" class="abstraction" value="high">
High level
</div>
<br />
</div>
<button id="sub"> Submit </button>
<div id="getTO" style="display: none">
<h5> What parts of the code would you like to hear? (Mainly tailored for tables)
<br>
With ChromeVox, you can use the space bar to select a checkbox button.
</h5>
<div id="getOptions" role="checkboxgroup" aria-labelledby="options"></div>
<div role="checkbox"
aria-checked="false"
tabindex="0"
name="summary option"
class="options"
value="headings"
>
<img src="./unchecked.png" alt="unchecked/checked box image">
Include summary
</div>
<div role="checkbox"
aria-checked="true"
tabindex="0"
name="rows and columns option"
class="options"
value="rowscols">
<img src="./unchecked.png" alt="unchecked/checked box image">
Include rows and columns
</div>
<div role="checkbox"
aria-checked="false"
tabindex="0"
name="only data option"
class="options"
value="data">
<img src="./unchecked.png" alt="unchecked/checked box image">
Include data
</div>
<button id="op"> Submit </button>
</div>
<script src="/scripts/jquery.min.js" type="text/javascript"></script>
<script src="/scripts/popup.js" type="text/javascript"></script>
</body>
</html>