Skip to content

Commit

Permalink
Merge pull request #1 from shivansh-mishraa/main
Browse files Browse the repository at this point in the history
Changes in look and Readme file
  • Loading branch information
mljqzzqyztbzumn authored Oct 3, 2021
2 parents 7776033 + ea27686 commit 51c8d92
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Password-generater
I have made a project which is on password generator
This repos consist of HTML, CSS and JS by using all the three password generater software is created
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ <h2>Password Generator</h2>
</div>
<div class="setting">
<label>Include uppercase letters</label>
<input type="checkbox" id="uppercase" >
<input type="checkbox" id="uppercase" checked>
</div>
<div class="setting">
<label>Include lowercase letters</label>
<input type="checkbox" id="lowercase" >
<input type="checkbox" id="lowercase" checked>
</div>
<div class="setting">
<label>Include numbers</label>
<input type="checkbox" id="numbers" >
<input type="checkbox" id="numbers" checked >
</div>
<div class="setting">
<label>Include symbols</label>
<input type="checkbox" id="symbols" >
<input type="checkbox" id="symbols" checked >
</div>
</div>

Expand All @@ -45,4 +45,4 @@ <h2>Password Generator</h2>
</div>
<script src="script.js"></script>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ clipboardEl.addEventListener('click', () => {
textarea.select()
document.execCommand('copy')
textarea.remove()
alert('copied')
alert('Password copied to clipboard!')
})

generateEl.addEventListener('click', () => {
Expand Down Expand Up @@ -74,4 +74,4 @@ function getRandomNumber() {
function getRandomSymbol() {
const symbols = '!@#$%^&*(){}[]=<>/,.'
return symbols[Math.floor(Math.random() * symbols.length)]
}
}

0 comments on commit 51c8d92

Please sign in to comment.