Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632542 Views

Latest files of /cody/solygambas/html-css-javascript-projects/036-hoverboard

style.css cody/solygambas/html-css-javascript-projects/036-hoverboard/style.css
111 Views
0 Comments
* {
box-sizing: border-box;
}

body {
background-color: #111;
display: flex;
align-items: center;
index.html cody/solygambas/html-css-javascript-projects/036-hoverboard/index.html
321 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Hoverboard</title>
</head>
script.js cody/solygambas/html-css-javascript-projects/036-hoverboard/script.js
174 Views
0 Comments
const container = document.getElementById("container");
const colors = ["#056CF2", "#05AFF2", "#F2E205", "#F28705", "#A62103"];
const SQUARES = 500;

const getRandomColor = () => colors[Math.floor(Math.random() * colors.length)];

const setColor = (square) => {
const color = getRandomColor();