aboutsummaryrefslogblamecommitdiff
path: root/systems/eldiron/websites/git/cgit_js.html
blob: 4101071d6bfa7264df74bf3666b004667d06c02c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                          
<script src="https://assets.immae.eu/jquery/3.5.1/jquery.min.js"></script>
<script type="application/javascript">
  $(document).ready(function() {
    const linksObject = {
      "/github/fretlink": "Fretlink Open-source Github forks",
      "/github": "Github forks",
      "/perso/Denise": "Denise",
      "/perso/Immae": "Immae",
    }
    function toRow(href, name) {
      return `<a href='/cgit${href}'>${name}</a>`;
    }
    const links = Object.keys(linksObject).map(function(k) { return toRow(k, linksObject[k]); }).join("");
    $("table.tabs a.active[href='/cgit/']").after(links);
  });
</script>