36
36
< script src ="https://w3c.github.io/i18n-drafts/javascript/boilerplate-text/boilerplate-en.js "> </ script > <!--TRANSLATORS must change -en to the subtag for their language!-->
37
37
< script src ="https://w3c.github.io/i18n-drafts/javascript/doc-structure/sitepage.js "> </ script >
38
38
< script src ="https://w3c.github.io/i18n-drafts/javascript/articletoc-html5.js "> </ script >
39
- <!--script src="index-data/label-list.js"></script-->
40
39
< link rel ="stylesheet " href ="https://w3c.github.io/i18n-drafts/style/sitepage-2016.css " />
41
40
< link rel ="stylesheet " href ="index-data/local.css " />
42
41
< link rel ="copyright " href ="#copyright "/>
43
- <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
44
42
< style >
45
43
select { font-size : 1em ; font-family : Gotham, "Helvetica Neue" , Helvetica, Arial, sans-serif; border : 0 ; width : 100% ; }
46
44
# toclocation { display : none; }
@@ -115,16 +113,7 @@ <h2 class="notoc">Filter by medium</h2>
115
113
if ( counter === 0 ) {
116
114
clearInterval ( timer )
117
115
if ( debug ) console . log ( 'finished' )
118
-
119
- // group issues by label, adding to the labels array
120
- //for (var i=0; i<issues.length; i++) {
121
- // if (issues[i].labels) {
122
- // for (var l=0;l<issues[i].labels.length;l++) {
123
- // if (labels[issues[i].labels[l].name]) labels[issues[i].labels[l].name].push(issues[i])
124
- // }
125
- // }
126
- // }
127
-
116
+
128
117
//console.log(issues)
129
118
showGet ( )
130
119
}
@@ -173,10 +162,6 @@ <h2 class="notoc">Filter by medium</h2>
173
162
div = document . createElement ( 'div' )
174
163
div . className = 'sampleContainer'
175
164
176
- //console.log('scripts',document.getElementById('scripts').value)
177
- //console.log('media', document.getElementById('media').value)
178
- //console.log('features',document.getElementById('features').value)
179
-
180
165
// display issues in order of issues array
181
166
var labelSet = new Set ( )
182
167
for ( let i = 0 ; i < issues . length ; i ++ ) {
@@ -237,7 +222,6 @@ <h2 class="notoc">Filter by medium</h2>
237
222
238
223
labelSection . appendChild ( div )
239
224
// Add the label header to the DOM
240
- //document.getElementById("rawdata").appendChild(labelSection)
241
225
document . getElementById ( "rawdata" ) . replaceChild ( labelSection , document . getElementById ( "rawdata" ) . firstChild )
242
226
document . getElementById ( 'total' ) . textContent = "There are " + issues . length + " items."
243
227
}
@@ -253,7 +237,7 @@ <h2 class="notoc">Filter by medium</h2>
253
237
}
254
238
if ( feature != '' ) { displayRepo ( feature ) }
255
239
256
- var titleList = [ ]
240
+ var titleList = [ ] // an array holding all the issue titles
257
241
for ( let i = 0 ; i < issues . length ; i ++ ) {
258
242
if ( issues [ i ] . labels . length > 0 ) titleList . push ( issues [ i ] . title )
259
243
}
@@ -281,7 +265,7 @@ <h2 class="notoc">Filter by medium</h2>
281
265
282
266
var scriptsOut = [ '<option value="" type="radio" name="filter" selected>All</option>\n' ]
283
267
for ( key in scripts ) {
284
- scriptsOut . push ( '<option value="' + key + '" type="radio" name="filter">' + key + ' (' + scripts [ key ] + ')</option>\n' )
268
+ scriptsOut . push ( '<option value="s: ' + key + '" type="radio" name="filter">' + key + ' (' + scripts [ key ] + ')</option>\n' )
285
269
}
286
270
scriptsOut . sort ( )
287
271
out = ''
@@ -291,7 +275,7 @@ <h2 class="notoc">Filter by medium</h2>
291
275
292
276
var mediaOut = [ '<option value="" type="radio" name="filter" selected>All</option>\n' ]
293
277
for ( key in media ) {
294
- mediaOut . push ( '<option value="' + key + '" type="radio" name="filter">' + key + ' (' + media [ key ] + ')</option>\n' )
278
+ mediaOut . push ( '<option value="m: ' + key + '" type="radio" name="filter">' + key + ' (' + media [ key ] + ')</option>\n' )
295
279
}
296
280
mediaOut . sort ( )
297
281
out = ''
@@ -300,7 +284,7 @@ <h2 class="notoc">Filter by medium</h2>
300
284
301
285
var featureOut = [ '<option value="" type="radio" name="filter" selected>All</option>\n' ]
302
286
for ( key in features ) {
303
- featureOut . push ( '<option value="' + key + '" type="radio" name="filter">' + key + ' (' + features [ key ] + ')</option>\n' )
287
+ featureOut . push ( '<option value="i: ' + key + '" type="radio" name="filter">' + key + ' (' + features [ key ] + ')</option>\n' )
304
288
}
305
289
featureOut . sort ( )
306
290
out = ''
0 commit comments