PasswordGenerator

mail@pastecode.io avatar
unknown
html
a year ago
2.8 kB
2
Indexable
<!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">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;500&family=Piazzolla:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
    <title>Password Generator</title>
</head>
<body>
    <h1>Password Generator</h1>
    <div class="container-password">
        <h3 id="generatedPassword"></h3>
        <img src="copy-icon.svg" alt="Kopiera" id="copy-button">
    </div>

    <div class="container-option">
        <div class="item-character">
            <h3 class="charLength">Character Length</h3>
            <h3 id="lengthCounter">10</h3>
        </div>
        <div id="charRange">
            <input type="range" id="lengthRange" min="1" max="20" value="10">
        </div>
        
        <div class="container-checkbox">
            <div class="item-checkbox"  id="check1">
                <input type="checkbox" name="Uppercase" id="check-upper">
                <label for="Uppercase">Include Uppercase Letters</label>
            </div>
            <div class="item-checkbox" id="check2">
                <input type="checkbox" name="Lowercase" id="check-lower">
                <label for="Lowercase">Include Lowercase Letters</label>
            </div>
            <div class="item-checkbox" id="check3">
                <input type="checkbox" name="Numbers" id="check-numbers">
                <label for="Numbers">Include Numbers</label>
            </div>
            <div class="item-checkbox" id="check4">
                <input type="checkbox" name="Symbols" id="check-symbol">
                <label for="Symbols">Include Symbols</label>
            </div>

            <div class="container-strength">
                <h3 class="text-strength">Strength</h3>
                <div class="strength-bars">
                    <div class="bar" id="bar1"></div>
                    <div class="bar" id="bar2"></div>
                    <div class="bar" id="bar3"></div>
                    <div class="bar" id="bar4"></div>
                </div>
            </div>
            <button id="btn" onclick="generatePassword()">Generate</button>
        </div>
    </div>
</body>
    <script src="script.js"></script>
</html>