replaced html file with pug template

This commit is contained in:
2023-08-01 09:25:16 +03:00
parent 80545b0538
commit 9b791ca496
6 changed files with 684 additions and 29 deletions

19
views/index.pug Normal file
View File

@@ -0,0 +1,19 @@
doctype html
html(lang='en')
head
title Pixel Battle
meta(charset="UTF-8")
body(style="background-color: grey;")
p
| Server to connect:
- var server
input(type="text" id="server-address" value=server)
- var port
input(type="number" id="server-port" value=port)
input(type="button" id="server-button" value="connect" onclick="connect()")
p
input(type="color" id="color")
input(type="button" id="submicColor" value="change color" onclick="changeColor()")
canvas(id="board" width="1920" height="1080" style="border:1px solid #000000;" display="block")
canvas(hidden id="hidden" width="1920" height="1080")
script(type="text/javascript" src="./logic.js")