forgot to add js

This commit is contained in:
entoreor 2020-04-02 02:50:42 -06:00
parent 2812843312
commit be96f3e0b8
1 changed files with 13 additions and 0 deletions

13
documentation.js Normal file
View File

@ -0,0 +1,13 @@
(function() {
"use strict";
document.querySelectorAll("#apidoc td:first-child").forEach(el => {
var text = el.textContent;
if (text.startsWith("love")) {
el.textContent = "";
var link = document.createElement("a");
link.href = "https://love2d.org/wiki/"+text.replace(".handlers.", ".");
link.textContent = text;
el.appendChild(link);
};
});
})();