about summary refs log tree commit diff
path: root/www/scripts/test.js
diff options
context:
space:
mode:
authorUltraQbik <no1skill@yandex.ru>2024-08-25 15:34:28 +0300
committerUltraQbik <no1skill@yandex.ru>2024-08-25 15:34:28 +0300
commit1793440e0db1688ed5c4d71208d5f8e2ab0b2a0f (patch)
treedbcede3a69998de731c68d2e34ef6c511ee10018 /www/scripts/test.js
parent7954bda75929ee551b397ac39c49d8183ad6cef3 (diff)
downloadhttpy-1793440e0db1688ed5c4d71208d5f8e2ab0b2a0f.tar.gz
httpy-1793440e0db1688ed5c4d71208d5f8e2ab0b2a0f.zip
JS Stuff
Diffstat (limited to 'www/scripts/test.js')
-rw-r--r--www/scripts/test.js10
1 files changed, 9 insertions, 1 deletions
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();
+