From 1793440e0db1688ed5c4d71208d5f8e2ab0b2a0f Mon Sep 17 00:00:00 2001 From: UltraQbik Date: Sun, 25 Aug 2024 15:34:28 +0300 Subject: JS Stuff --- www/js-test.html | 5 +++-- www/scripts/test.js | 10 +++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'www') diff --git a/www/js-test.html b/www/js-test.html index 223827e..ccc6db8 100644 --- a/www/js-test.html +++ b/www/js-test.html @@ -10,11 +10,12 @@
The Mighty HTML Page. Ew JS
-
- +
+

This is a page for testing various things

+ diff --git a/www/scripts/test.js b/www/scripts/test.js index 4a0a5b2..a48327c 100644 --- a/www/scripts/test.js +++ b/www/scripts/test.js @@ -1 +1,9 @@ -console.log('прощай world') +const canvas = document.getElementById("JSCanvas"); +const ctx = canvas.getContext("2d"); + +ctx.strokeStyle = "blue" +ctx.beginPath(); +ctx.moveTo(0, 0); +ctx.lineTo(511, 511); +ctx.stroke(); + -- cgit 1.4.1