-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGerritSiteHeader.html
More file actions
26 lines (25 loc) · 879 Bytes
/
GerritSiteHeader.html
File metadata and controls
26 lines (25 loc) · 879 Bytes
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
<div>
<h1 style="color: #0099cc"><a href="http://review.cyanogenmod.org"><img src="static/cm-cr.png" style="vertical-align:middle;" border="0" /></a></h1>
<script type="text/javascript">
function getHash() {
var hash = window.location.hash;
return hash.substring(1); // remove #
}
window.onload = function() {
var hash_arr= getHash().split("/");
if (hash_arr[1] == 'c') {
var elem = document.getElementById("gerrit_body");
elem.className = elem.className + ' patch';
}
};
window.onhashchange = function() {
var hash_arr= getHash().split("/");
var elem = document.getElementById("gerrit_body");
if (hash_arr[1] == 'c') {
elem.className = elem.className + ' patch';
} else {
elem.className = elem.className.replace(' patch', '');
}
};
</script>
</div>