satt opp litt greier
This commit is contained in:
commit
59d70afd97
3 changed files with 39 additions and 0 deletions
29
index.html
Normal file
29
index.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!doctype html>
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>The HTML5 Herald</title>
|
||||
<meta name="description" content="The HTML5 Herald">
|
||||
<meta name="author" content="SitePoint">
|
||||
|
||||
<link rel="stylesheet" href="css/styles.css?v=1.0">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Hangman 2020 av Rolf Martin Glomsrud</h1>
|
||||
<canvas id="myCanvas" width="200px" height="200px"></canvas>
|
||||
<input type="button" id="testKnapp" width="40px" height="40px">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
0
main.css
Normal file
0
main.css
Normal file
10
script.js
Normal file
10
script.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
var c = get("myCanvas");
|
||||
var ctx = c.getContext("2d");
|
||||
ctx.moveTo(0, 0);
|
||||
ctx.lineTo(200, 100);
|
||||
ctx.stroke();
|
||||
|
||||
|
||||
function get(a){
|
||||
return document.getElementById(a);
|
||||
}
|
Loading…
Reference in a new issue