-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrecords.html
62 lines (52 loc) · 1.88 KB
/
records.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta charset="utf-8" />
<title>Record table</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="jquery-1.8.2.js"></script>
<script>
function href_to( arg )
{
var aud = document.getElementById('click');
if( localStorage["sound"] == "1" )
aud.play();
var s = 'document.location.href=' + "'" + arg + "'";
setInterval(s, 150 );
}
function loaded()
{
var resultTable;
if( localStorage.getItem("results") )
{
resultTable = JSON.parse(localStorage["results"]);
}
else
{
resultTable = new Array(
new Array(' ',' '),
new Array(' ',' '),
new Array(' ',' '),
new Array(' ',' '),
new Array(' ',' ')
);
localStorage["results"] = JSON.stringify(resultTable);
}
for(i=0; i<5; i++)
{
$('#resTable').append('<tr><td>'+ resultTable[i][0] +'</td><td>'+ resultTable[i][1] +'</td></tr>');
}
}
</script>
</head>
<body onLoad="loaded()">
<table id="resTable" border="0"></table>
<audio id="click" src="music/but.mp3" preload></audio>
<div><img id="result" src="imgs/res.png"></img></div>
<a class="button2" href="#">ÊÍÎÏÊÀ</a>
<a class="button2" id="btn_2" target="_self" onclick="href_to('index.html')">Button</a>
</body>
</html>