diff options
| -rw-r--r-- | www/js-test.html | 21 | ||||
| -rw-r--r-- | www/scripts/test.js | 14 |
2 files changed, 0 insertions, 35 deletions
diff --git a/www/js-test.html b/www/js-test.html deleted file mode 100644 index ccc6db8..0000000 --- a/www/js-test.html +++ /dev/null @@ -1,21 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <title> The YES's Page </title> - <meta charset="UTF-8"> - <link rel="stylesheet" href="css/styles.css"> -</head> -<body> - <header> - <div style="float: left"> <button onclick="window.location.href='/'" style="font-size: 20px">sh%t go back</button> </div> - <div style="margin: auto; width: fit-content;"> <b> The Mighty HTML Page. Ew JS </b> </div> - </header> - <div id="section-div" style="align-content: center;text-align: center;"> - <canvas id="JSCanvas" width="512" height="512"></canvas> - </div> - <footer> - <p> This is a page for testing various things </p> - </footer> - <script src="/scripts/test.js"></script> -</body> -</html> diff --git a/www/scripts/test.js b/www/scripts/test.js deleted file mode 100644 index e9afd91..0000000 --- a/www/scripts/test.js +++ /dev/null @@ -1,14 +0,0 @@ -const canvas = document.getElementById("JSCanvas"); -const ctx = canvas.getContext("2d"); - -function draw() { - ctx.strokeStyle = "#" + Math.floor(Math.random() * 16777216).toString(16).padStart(6, '0') - ctx.beginPath(); - ctx.moveTo(Math.random() * 511, Math.random() * 511); - ctx.lineTo(Math.random() * 511, Math.random() * 511); - ctx.stroke(); -} - -for (let i = 0; i < 50; i++) { - draw() -} |