Skip to content

Commit eb97d1d

Browse files
committed
Adapt to handle new names for tags in repo
1 parent 37a3180 commit eb97d1d

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

‎index.html

+5-21
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@
3636
<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!-->
3737
<script src="https://w3c.github.io/i18n-drafts/javascript/doc-structure/sitepage.js"> </script>
3838
<script src="https://w3c.github.io/i18n-drafts/javascript/articletoc-html5.js"></script>
39-
<!--script src="index-data/label-list.js"></script-->
4039
<link rel="stylesheet" href="https://w3c.github.io/i18n-drafts/style/sitepage-2016.css" />
4140
<link rel="stylesheet" href="index-data/local.css" />
4241
<link rel="copyright" href="#copyright"/>
43-
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
4442
<style>
4543
select { font-size: 1em; font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif; border: 0; width: 100%; }
4644
#toclocation { display: none; }
@@ -115,16 +113,7 @@ <h2 class="notoc">Filter by medium</h2>
115113
if (counter === 0) {
116114
clearInterval(timer)
117115
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+
128117
//console.log(issues)
129118
showGet()
130119
}
@@ -173,10 +162,6 @@ <h2 class="notoc">Filter by medium</h2>
173162
div = document.createElement('div')
174163
div.className = 'sampleContainer'
175164

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-
180165
// display issues in order of issues array
181166
var labelSet = new Set()
182167
for (let i=0;i<issues.length;i++) {
@@ -237,7 +222,6 @@ <h2 class="notoc">Filter by medium</h2>
237222

238223
labelSection.appendChild(div)
239224
// Add the label header to the DOM
240-
//document.getElementById("rawdata").appendChild(labelSection)
241225
document.getElementById("rawdata").replaceChild(labelSection, document.getElementById("rawdata").firstChild)
242226
document.getElementById('total').textContent = "There are "+issues.length+" items."
243227
}
@@ -253,7 +237,7 @@ <h2 class="notoc">Filter by medium</h2>
253237
}
254238
if (feature != '') { displayRepo(feature) }
255239

256-
var titleList = []
240+
var titleList = [] // an array holding all the issue titles
257241
for (let i=0;i<issues.length;i++) {
258242
if (issues[i].labels.length > 0) titleList.push(issues[i].title)
259243
}
@@ -281,7 +265,7 @@ <h2 class="notoc">Filter by medium</h2>
281265

282266
var scriptsOut = ['<option value="" type="radio" name="filter" selected>All</option>\n']
283267
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')
285269
}
286270
scriptsOut.sort()
287271
out = ''
@@ -291,7 +275,7 @@ <h2 class="notoc">Filter by medium</h2>
291275

292276
var mediaOut = ['<option value="" type="radio" name="filter" selected>All</option>\n']
293277
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')
295279
}
296280
mediaOut.sort()
297281
out = ''
@@ -300,7 +284,7 @@ <h2 class="notoc">Filter by medium</h2>
300284

301285
var featureOut = ['<option value="" type="radio" name="filter" selected>All</option>\n']
302286
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')
304288
}
305289
featureOut.sort()
306290
out = ''

0 commit comments

Comments
 (0)