index: add "click here" trigger

pull/4/head
Piotr Dobrowolski 2021-05-26 21:00:49 +02:00
rodzic 54e258b2f4
commit 947e4425e7
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -33,7 +33,7 @@
read our documentation and writeup <a href="https://github.com/RootMyTV/RootMyTV.github.io">here.</a>
</p>
<p>
Once you're ready to proceed, drag the slider below (or press "5").
Once you're ready to proceed, drag the slider below (<i class="click-here">or press "5" / click here</i>).
</p>
<div class="slider-bar">
<div class="slider-button"><p>-&gt;</p></div>
@ -230,6 +230,10 @@
}
});
document.querySelector('.click-here').addEventListener('click', function (event) {
begin_exploit();
});
/* slider animation logic */
var slider = document.getElementsByClassName("slider-button")[0];
var sliderText = document.getElementsByClassName("slider-text")[0];