Added cool entry slide
This commit is contained in:
parent
ee990c95cd
commit
ce08ab6919
33
index.html
33
index.html
@ -18,13 +18,15 @@
|
||||
-ms-filter: blur(3px) saturate(.7) brightness(.6);
|
||||
filter: blur(3px) saturate(.7) brightness(.6);
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="reveal">
|
||||
<div class="slides">
|
||||
<section>
|
||||
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -32,8 +34,33 @@
|
||||
<script src="/reveal.js/dist/reveal.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
Reveal.initialize({"hash":true});
|
||||
|
||||
const wait = ms => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
|
||||
|
||||
var input = document.querySelectorAll("#input")[0];
|
||||
input.select();
|
||||
input.value="";
|
||||
|
||||
var texts = ["toneuhodnes","Tomasek12","cNVh$2rn#wpSrLsw","••••••••","Listova306!","1203Anicka","12345678","edward211","327fstka","Bruno168","Jiricek1"];
|
||||
|
||||
let write_text = async (text,time,current=0) => {
|
||||
if(current==0) {
|
||||
input.select();
|
||||
await wait(1000);
|
||||
input.value="";
|
||||
}
|
||||
var 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)],250)},5000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user