Merged my local changes and fixed soma basic js.
This commit is contained in:
commit
aee234f9cd
33
index.html
33
index.html
@ -24,10 +24,33 @@
|
||||
<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>
|
||||
|
||||
@ -39,26 +62,26 @@
|
||||
const wait = ms => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
|
||||
|
||||
var input = document.querySelectorAll("#input")[0];
|
||||
const input = document.querySelectorAll("#input")[0];
|
||||
input.select();
|
||||
input.value="";
|
||||
|
||||
var texts = ["toneuhodnes","Tomasek12","cNVh$2rn#wpSrLsw","••••••••","Listova306!","1203Anicka","12345678","edward211","327fstka","Bruno168","Jiricek1","password","123456","12345678","1234","qwerty","12345","dragon","pussy","baseball","football","letmein","monkey","696969","abc123","mustang","michael","shadow","master","jennifer","111111","2000","jordan","superman","harley","1234567","f**kme","hunter","f**kyou","trustno1","ranger"];
|
||||
const texts = ["toneuhodnes","Tomasek12","cNVh$2rn#wpSrLsw","••••••••","Listova306!","1203Anicka","12345678","edward211","327fstka","Bruno168","Jiricek1","password","123456","12345678","1234","qwerty","12345","dragon","pussy","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) {
|
||||
if(current===0) {
|
||||
input.select();
|
||||
await wait(1000);
|
||||
input.value="";
|
||||
}
|
||||
var l=text.length;
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user