passwords/index.html

90 lines
2.7 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Hesla</title>
<link rel="stylesheet" href="/reveal.js/dist/reveal.css">
<link rel="stylesheet" href="/reveal.js/dist/theme/black.css">
<style>
.dimbg .backgrounds {
-webkit-filter: blur(3px) saturate(.5) brightness(.6);
-moz-filter: blur(3px) saturate(.7) brightness(.6);
-o-filter: blur(3px) saturate(.7) brightness(.6);
-ms-filter: blur(3px) saturate(.7) brightness(.6);
filter: blur(3px) saturate(.7) brightness(.6);
}
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<!--
Points to make:
Hesla jsou dulezita
Hesla jsou predvidatelna
Hesla unikaji → zminit haveibeenpwned?
Pro kazdou sluzbu jine heslo
Pouzivat spravce hesel, at uz v prohlizeci nebo separatni
Do spravce hesel mit jedno, silne, heslo
Multifaktorova authentizace je dulezita
Osnova:
Proc je to dulezite?
Prirovnani k fyzicke strance
Ukazka prispevku oznamujici ztratu uctu na facebooku a instagramu
-->
<section style="text-align: left;">
<label for="input" class="control-label">Zadejte nové heslo:</label><br/>
<input style="width: calc(100% - 0.2em);font-size: 2em;padding: 0.1em" type="text" id="input" placeholder="Heslo" autofocus="true">
</section>
<section>
<h2>
</h2>
</section>
</div>
</div>
<script src="/reveal.js/dist/reveal.js"></script>
<script>
Reveal.initialize({"hash":true});
const wait = ms => new Promise((resolve) => setTimeout(resolve, ms));
const input = document.querySelectorAll("#input")[0];
input.select();
input.value="";
const texts = ["toneuhodnes","Tomasek12","cNVh$2rn#wpSrLsw","••••••••","Listova306!","1203Anicka","12345678","edward211","327fstka","Bruno168","Jiricek1","password","123456","12345678","1234","qwerty","12345","dragon","p**sy","baseball","football","letmein","monkey","696969","abc123","mustang","michael","shadow","master","jennifer","111111","2000","jordan","superman","harley","1234567","f**kme","hunter","f**kyou","trustno1","ranger"];
let write_text = async (text,time,current=0) => {
if(current===0) {
input.select();
await wait(1000);
input.value="";
}
const l=text.length;
input.value+=text[current];
if(current < l-1) {
current++;
setTimeout(() => {write_text(text,time,current)},time);
} else {
input.setAttribute('value',input.value);
}
};
setInterval(function(){write_text(texts[Math.floor(Math.random() * texts.length)],125)},2500);
</script>
</body>
</html>