cookutils view lighttpd/listing.js @ rev 983

lighttpd/index.cgi: consider $WANTED as build dependency too; lighttpd/cooker.css: tiny edits.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Oct 21 11:45:40 2017 +0300 (2017-10-21)
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);