cookutils view lighttpd/listing.js @ rev 1152

web/cooker.cgi: add browse/view toggle
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 20 10:51:40 2023 +0000 (16 months ago)
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);