Remove direct use of jQuery

jQuery is still required by jQuery UI
This commit is contained in:
rubenwardy
2023-08-26 12:34:55 +01:00
parent 9eb03c6a57
commit 2f458ba40e
22 changed files with 233 additions and 191 deletions

View File

@@ -6,17 +6,17 @@ toc: False
Please reconsider the choice of WTFPL as a license.
<script src="/static/libs/jquery.min.js"></script>
<script>
// @author rubenwardy
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
var params = new URLSearchParams(location.search);
var r = params.get("r");
if (r)
var r = params.get("r");
if (r) {
document.write("<a class='alert_right button' href='" + r + "'>Okay</a>");
else
$("#warning").hide();
} else {
document.getElementById("warning").style.display = "none";
}
</script>
</div>