by tomcooks · 4y ago · 0 comments
Websites which were like that didn't last long, and mostly were hosted on free webservers.
If you want to get rid of nostalgia please spend 60 whole minutes making sense of HTML+PHP5.6+jQuery copy pasted code. And make it IE6 compatible. And use tables for layout. And don't use stackoverflow, caniuse, or an IDE. You'll soon understand how we reached the current state of things.
t. Boomer that spends 8+ hours straightening PHP5.6 sghettis for a living, who still swears by FTPZilla and jQuery scripts.
// For example, instead of
$("#somebutton").click(() => alert("Hello"))
// You would do
document.querySelector("#somebutton").addEventListener("click", () => alert("Hello"));
// Instead of
$("#message").text("Important Message")
// You would do
document.querySelector("#message").textContent = "Important Message";
// Instead of
$("#things .thing").css("color", "red")
// You would do
for(let e of document.querySelectorAll("#things .thing")) e.style.color = "red";
// Instead of
await $.ajax("https://httpbin.org/get").then((_1, _2, {responseJSON}) => responseJSON)
// You would do
await fetch("https://httpbin.org/get").then(e => e.json())