Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632994 Views

Latest files of /cody/bradtraversy/50projects50days/password-strength-background

style.css cody/bradtraversy/50projects50days/password-strength-background/style.css
74 Views
0 Comments
* {
box-sizing: border-box;
}

body {
display: flex;
flex-direction: column;
align-items: center;
index.html cody/bradtraversy/50projects50days/password-strength-background/index.html
284 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="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/1.8.11/tailwind.min.css"
script.js cody/bradtraversy/50projects50days/password-strength-background/script.js
101 Views
0 Comments
const password = document.getElementById('password')
const background = document.getElementById('background')

password.addEventListener('input', (e) => {
const input = e.target.value
const length = input.length
const blurValue = 20 - length * 2
background.style.filter = `blur(${blurValue}px)`