]>
git.immae.eu Git - perso/Immae/Config/Nix.git/blob - flakes/mypackages/overlays/gitweb/theme/gitweb.js
1 function include(filename
, onload
) {
2 var head
= document
.getElementsByTagName('head')[0];
3 var script
= document
.createElement('script');
5 script
.type
= 'text/javascript';
6 script
.onload
= script
.onreadystatechange = function() {
7 if (script
.readyState
) {
8 if (script
.readyState
=== 'complete' || script
.readyState
=== 'loaded') {
9 script
.onreadystatechange
= null;
17 head
.appendChild(script
);
20 include('static/gitweb.js', function() {});
21 include('//code.jquery.com/jquery-3.1.0.min.js', function() {
22 $("div.title").each(function(index
, element
) {
23 if ($(element
).text() === "readme" || $(element
).text() === " ") {