7.4 to the go

This commit is contained in:
2022-12-19 20:26:14 +02:00
parent 6cd7b13db0
commit 924be6329b
237 changed files with 38764 additions and 89531 deletions
+70 -105
View File
@@ -1,112 +1,77 @@
<html>
<head>
</head>
<body>
Çàïðîñ âòîðîãî ïàðîëÿ ê ïåðñîíàæó.
<br>
<br>
<img id="pass" onClick="" width="295" src="i/pin/e0.png" >
<br>
<br>
<img id="p1" onClick="" src="" >
<img id="p2" onClick="" src="" >
<img id="p3" onClick="" src="" >
<br>
<img id="p4" onClick="" src="" >
<img id="p5" onClick="" src="" >
<img id="p6" onClick="" src="" >
<br>
<img id="p7" onClick="" src="" >
<img id="p8" onClick="" src="" >
<img id="p9" onClick="" src="" >
<br>
<img onClick="keypush(12);" src="i/pin/12.png" >
<img id="p0" name="image" onClick="" src="" >
<img onClick="keypush(11);" src="i/pin/11.png" >
<br>
<div id="text"><div>
<!DOCTYPE>
<html lang="ru">
<head><title></title><meta charset="windows-1251"></head>
<body>
Çàïðîñ âòîðîãî ïàðîëÿ ê ïåðñîíàæó.<br><br>
<img id="pass" onClick="" width="295" src="i/pin/e0.png" alt=""><br><br>
<img id="p1" alt="" src=""><img id="p2" alt="" src=""><img id="p3" alt="" src=""><br>
<img id="p4" alt="" src=""><img id="p5" alt="" src=""><img id="p6" alt="" src=""><br>
<img id="p7" alt="" src=""><img id="p8" alt="" src=""><img id="p9" alt="" src=""><br>
<img onClick="keypush(12);" src="i/pin/12.png" alt="">
<img id="p0" name="image" src="" alt="">
<img onClick="keypush(11);" src="i/pin/11.png" alt="">
<br>
<div id="text"></div>
</body>
<script>
var dopass = '';
var tdopass = '';
var lenth = 0;
randomp();
</body>
<script>
var dopass='';
var tdopass='';
var lenth=0;
randomp();
function randomp()
{
var ss = new Array();
var n=0;
while (n<10)
{
ss[n]=n;
n++;
}
var i=0;
var k=0;
var m=0;
var tmpp=0;
while (i<10)
{
k = getRandomInt(10);
m = getRandomInt(10);
if (k != m)
{
tmpp=ss[k];
ss[k]=ss[m];
ss[m]=tmpp;
i++;
}
}
function randomp() {
var ss = new Array();
var n = 0;
while (n < 10) {
ss[n] = n;
n++;
}
n=10;
while (n>-1)
{
n=n-1;
document.getElementById('p'+n).setAttribute("src", "i/pin/"+ss[n]+".png");
document.getElementById('p'+n).setAttribute("onClick", "keypush("+ss[n]+");");
}
}
var i = 0;
var k = 0;
var m = 0;
var tmpp = 0;
while (i < 10) {
k = getRandomInt(10);
m = getRandomInt(10);
if (k != m) {
tmpp = ss[k];
ss[k] = ss[m];
ss[m] = tmpp;
i++;
}
}
function getRandomInt(max) {
return Math.floor(Math.random() * Math.floor(max));
}
function keypush(n)
{
if (n==12 )
{
if (lenth>0)
{
n = 10;
while (n > -1) {
n = n - 1;
document.getElementById('p' + n).setAttribute("src", "i/pin/" + ss[n] + ".png");
document.getElementById('p' + n).setAttribute("onClick", "keypush(" + ss[n] + ");");
dopass='';
lenth=0;
document.getElementById('pass').setAttribute("src", "i/pin/e"+lenth+".png");
}
}
else if (n==11)
{
//document.getElementById("text").innerHTML = ''+dopass;
println(dopass);
}
else
{
if (lenth<8)
{
dopass=dopass+''+n;
lenth++;
document.getElementById('pass').setAttribute("src", "i/pin/e"+lenth+".png");
}
}
}
}
}
function getRandomInt(max) {
return Math.floor(Math.random() * Math.floor(max));
}
function keypush(n) {
if (n == 12) {
if (lenth > 0) {
dopass = '';
lenth = 0;
document.getElementById('pass').setAttribute("src", "i/pin/e" + lenth + ".png");
}
} else if (n == 11) {
//document.getElementById("text").innerHTML = ''+dopass;
println(dopass);
} else {
if (lenth < 8) {
dopass = dopass + '' + n;
lenth++;
document.getElementById('pass').setAttribute("src", "i/pin/e" + lenth + ".png");
}
}
}
</script>
</html>