Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
4310V343k authored Jul 14, 2023
1 parent a35331e commit 378cbab
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
body {
font-family: "Manrope", sans-serif;
background-color: var(--color-background);
top: -20%;
top: -15%;
height: 100%;
width: 100%;
display: flex;
Expand Down Expand Up @@ -118,6 +118,12 @@
padding: 0.5em 0.5em;
margin-right: 10px;
}

.download {
bottom: 10px;
left: 15px;
position: fixed;
}
</style>
</head>

Expand Down Expand Up @@ -179,10 +185,12 @@ <h2>Использовать</h2>
<span style="margin-left: 5px">!#$%&()*+.:;=>?@[\]^`{|}~</span>
</div>

<a style="text-decoration: none; color: inherit;" href="#" class="download" download="passGenie.html"><i class="fa-solid fa-download"></i><span class="to-copy" style="font-size: 0.7rem;padding-left:5px">Этот вебсайт может работать оффлайн</span></div>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/clipboard.min.js"></script>
<script src="https://kit.fontawesome.com/033b763f34.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
<script src="https://unpkg.com/@popperjs/core@2.11.8"></script>
<script src="https://unpkg.com/tippy.js@6.3.7"></script>
<script>
const generatePassword = () => {
const cont = window._tippy2.props.content;
Expand Down Expand Up @@ -266,7 +274,6 @@ <h2>Использовать</h2>
.querySelector("#set-length")
.addEventListener('change', e => e.target.value = (8 <= parseInt(e.target.value) && parseInt(e.target.value) <= 25) ? e.target.value : Math.min(Math.max(parseInt(e.target.value), 8), 25));


window._tippy2.props.content.querySelectorAll("[id*='set-']").forEach(
(el) =>
(el.onchange = () => {
Expand Down

0 comments on commit 378cbab

Please sign in to comment.