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>
|
<body>
|
||||||
<div class="reveal">
|
<div class="reveal">
|
||||||
<div class="slides">
|
<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;">
|
<section style="text-align: left;">
|
||||||
<label for="input" class="control-label">Zadejte nové heslo:</label><br/>
|
<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">
|
<input style="width: calc(100% - 0.2em);font-size: 2em;padding: 0.1em" type="text" id="input" placeholder="Heslo" autofocus="true">
|
||||||
</section>
|
</section>
|
||||||
|
<section>
|
||||||
|
<h2>
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -39,26 +62,26 @@
|
|||||||
const wait = ms => new Promise((resolve) => setTimeout(resolve, ms));
|
const wait = ms => new Promise((resolve) => setTimeout(resolve, ms));
|
||||||
|
|
||||||
|
|
||||||
var input = document.querySelectorAll("#input")[0];
|
const input = document.querySelectorAll("#input")[0];
|
||||||
input.select();
|
input.select();
|
||||||
input.value="";
|
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) => {
|
let write_text = async (text,time,current=0) => {
|
||||||
if(current==0) {
|
if(current===0) {
|
||||||
input.select();
|
input.select();
|
||||||
await wait(1000);
|
await wait(1000);
|
||||||
input.value="";
|
input.value="";
|
||||||
}
|
}
|
||||||
var l=text.length;
|
const l=text.length;
|
||||||
input.value+=text[current];
|
input.value+=text[current];
|
||||||
if(current < l-1) {
|
if(current < l-1) {
|
||||||
current++;
|
current++;
|
||||||
setTimeout(() => {write_text(text,time,current)},time);
|
setTimeout(() => {write_text(text,time,current)},time);
|
||||||
} else {
|
} else {
|
||||||
input.setAttribute('value',input.value);
|
input.setAttribute('value',input.value);
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
setInterval(function(){write_text(texts[Math.floor(Math.random() * texts.length)],125)},2500);
|
setInterval(function(){write_text(texts[Math.floor(Math.random() * texts.length)],125)},2500);
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user