blob: 72f3cfa55f8b506188dcb90a151956886cea3d6f (
plain) (
blame)
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
|
function include(filename, onload) {
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.src = filename;
script.type = 'text/javascript';
script.onload = script.onreadystatechange = function() {
if (script.readyState) {
if (script.readyState === 'complete' || script.readyState === 'loaded') {
script.onreadystatechange = null;
onload();
}
}
else {
onload();
}
}
head.appendChild(script);
}
include('static/gitweb.js', function() {});
include('//code.jquery.com/jquery-3.1.0.min.js', function() {
$("div.title").each(function(index, element) {
if ($(element).text() === "readme" || $(element).text() === " ") {
$(element).hide();
}
});
});
|