mirror of
https://github.com/10h30/odin-etch-a-sketch.git
synced 2026-07-11 18:55:58 +09:00
Comlete basic task
This commit is contained in:
@@ -4,8 +4,12 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Etch A Sketch</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Etch A Sketch</h1>
|
||||
<button>Generate a new gird</button>
|
||||
<div class="container"></div>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -37,7 +37,7 @@ function getRandomColor() {
|
||||
color += letters[Math.floor(Math.random() * 16)];
|
||||
}
|
||||
return color;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
text-align: center;
|
||||
flex-wrap: wrap;
|
||||
width: 800px;
|
||||
-webkit-box-shadow:inset 0px 0px 0px 5px gray;
|
||||
-moz-box-shadow:inset 0px 0px 0px 5px gray;
|
||||
box-shadow:inset 0px 0px 0px 5px gray;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,3 +12,7 @@
|
||||
-moz-box-shadow:inset 0px 0px 0px 1px gray;
|
||||
box-shadow:inset 0px 0px 0px 1px gray;
|
||||
}
|
||||
|
||||
.changecolor {
|
||||
background-color: red;
|
||||
}
|
||||
Reference in New Issue
Block a user