Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633382 Views

Latest files of /cody/bradtraversy/50projects50days/good-cheap-fast

style.css cody/bradtraversy/50projects50days/good-cheap-fast/style.css
73 Views
0 Comments
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
box-sizing: border-box;
}

body {
font-family: 'Roboto', sans-serif;
index.html cody/bradtraversy/50projects50days/good-cheap-fast/index.html
253 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>Good, Cheap, Fast</title>
</head>
script.js cody/bradtraversy/50projects50days/good-cheap-fast/script.js
89 Views
0 Comments
const toggles = document.querySelectorAll('.toggle')
const good = document.querySelector('#good')
const cheap = document.querySelector('#cheap')
const fast = document.querySelector('#fast')

toggles.forEach(toggle => toggle.addEventListener('change', (e) => doTheTrick(e.target)))

function doTheTrick(theClickedOne) {