forked from jdm/bugsahoy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
132 lines (121 loc) · 4.6 KB
/
index.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
<html>
<head>
<title>Bugs Ahoy - find relevant Mozilla bugs</title>
<meta charset="utf-8">
<!--UHOH-->
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="uitooltip.min.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="uitooltip.min.js"></script>
<script type="text/javascript" src="bz-0.2.3.js"></script>
<script type="text/javascript" src="magic.js"></script>
<!--OHNO-->
</head>
<body>
<!--OHDEAR-->
<div id="ba-total-header" role="banner">
Bugs Ahoy! <div><i>these bugs are relevant to my interests</i></div>
</div>
<div id="ba-content">
Are you interested in:<br><br>
<div id="ba-choices" role="navigation">
<script>
function addCategories(cats) {
var choices = document.getElementById('ba-choices');
for (var i = 0; i < cats.length; i++) {
var elem = document.createElement('div');
var inp = document.createElement('input');
inp.type = "checkbox";
inp.onchange = toggleCategory;
inp.setAttribute('id', cats[i][0]);
var lab = document.createElement('label');
lab.setAttribute('for', cats[i][0]);
var text = document.createTextNode(cats[i][1]);
lab.appendChild(text);
elem.appendChild(inp);
elem.appendChild(lab);
choices.appendChild(elem);
}
}
addCategories([["outreach", "Site Outreach"],
["analysis", "Bug Analysis"]]);
</script>
<br><br>
Do you speak: <br><br>
<script>
addCategories([['arabic', 'Arabic'],
['chinese', 'Chinese'],
['croatian', 'Croatian'],
['danish', 'Danish'],
['english', 'English'],
['french', 'French'],
['german', 'German'],
['greek', 'Greek'],
['hungarian', 'Hungarian'],
['japanese', 'Japanese'],
['norwegian', 'Norwegian'],
['portuguese', 'Portuguese'],
['polish', 'Polish'],
['serbian', 'Serbian'],
['spanish', 'Spanish']]);
</script>
<br><br>
Display only: <br><br>
<script>
addCategories([["unowned", "Bugs with no owner"]]);
</script>
</div>
<div id="bugs" role="main">
<div id="ba-header" role="log">Results <span id="total"></span> <img id="throbber" alt="Fetching results" src="loading.gif" style="visibility: hidden; float: right"></div>
<div id="bugs_content">
<div class="bug"><span>No categories specified.</span></div>
</div>
</div>
</div>
<ul id="ba-extra" role="complementary">
</ul>
<script>
function addExtra(cat, header, content) {
var extra = document.getElementById('ba-extra');
var elem = document.createElement('li');
elem.setAttribute('id', cat + '-extra');
var h = document.createElement('div');
h.setAttribute('class', 'ba-extra_header');
var tn = document.createTextNode(header);
h.appendChild(tn);
elem.appendChild(h);
var c = document.createElement('div');
c.setAttribute('class', 'ba-extra_body');
c.innerHTML = content;
elem.appendChild(c);
extra.appendChild(elem);
}
addExtra('outreach', 'More info for Site Outreach', 'It may be helpful to read <a href="https://wiki.mozilla.org/Compatibility/Guide#Finding_The_Right_Contact_on_a_Web_site">How to find a contact for a website</a>.');
addExtra('analysis', 'More info for Bug Analysis', 'It may be helpful to read <a href="https://wiki.mozilla.org/Compatibility/Guide#Analyzing_for_Web_Compatibility_Issues">Analyzing Web Compatibility Issues</a>.');
function initial_state() {
var query = window.location.search;
if (query.length == 0) return;
function check_state (sVar) {
return unescape(query.replace(new RegExp("^(?:.*[&\\?]" + escape(sVar).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1"));
}
var checks = document.getElementsByTagName("input");
for (var i = 0; i < checks.length; i++) {
if (checks[i].type != "checkbox")
continue;
if (check_state(checks[i].id)) {
checks[i].checked = true;
checks[i].onchange({target: checks[i]});
}
}
}
window.onload = initial_state;
</script>
<div id="ba-footer" role="contentinfo">
<i><a href="https://wiki.mozilla.org/BugsAhoy">Bugs Ahoy!</a></i> <span>is written by <a href="https://mozillians.org/en-US/u/jdm/">Josh Matthews</a>
(get the <a href="http://github.com/jdm/bugsahoy/">source</a>!)</span>
</div>
<!--OHHDEAR-->
<center><div id="help"></div>
</center>
</body>
</html>