about summary refs log tree commit diff
path: root/www/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'www/scripts')
-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();
+