cookutils view lighttpd/listing.js @ rev 995

lighttpd/index.cgi: small improvements
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Nov 01 03:17:13 2017 +0200 (2017-11-01)
parents
children
line source
1 // Click on header return us to the package page
2 function setLink() {
3 document.getElementsByTagName("h2")[0].onclick = function() {
4 location.href = location.pathname.replace(/\/browse\/.*/, "");
5 }
6 }
7 document.addEventListener("DOMContentLoaded", setLink);