Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633084 Views

Latest files of /cody/bradtraversy/50projects50days/verify-account-ui

style.css cody/bradtraversy/50projects50days/verify-account-ui/style.css
67 Views
0 Comments
@import url('https://fonts.googleapis.com/css?family=Muli:300,700&display=swap');

* {
box-sizing: border-box;
}

body {
background-color: #fbfcfe;
index.html cody/bradtraversy/50projects50days/verify-account-ui/index.html
269 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>Verify Account</title>
</head>
script.js cody/bradtraversy/50projects50days/verify-account-ui/script.js
79 Views
0 Comments
const codes = document.querySelectorAll('.code')

codes[0].focus()

codes.forEach((code, idx) => {
code.addEventListener('keydown', (e) => {
if(e.key >= 0 && e.key <=9) {
codes[idx].value = ''