renaming main to index and minor changes

This commit is contained in:
Ole Morud
2021-01-25 15:37:05 +01:00
parent 60a6c4437a
commit 961a592f3b
2 changed files with 5 additions and 7 deletions

30
index.html Normal file
View File

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<script src="main.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
canvas {
border:1px solid #7f7f7f;
background-color: #ffffff;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
</style>
</head>
<body onload="startGame()" class="center">
<br>
<button onclick="togglePause()">Pause/Resume</button>
<span id="gameIsPaused">You are paused</span>
<br>
<button onclick="clearCells()">Clear</button>
<br>
<button onclick="toggleDrawMode()">Draw/Erase</button>
<span id="drawModeEnabled">You are drawing</span>
</body>
<html>