-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
68 lines (56 loc) · 1.81 KB
/
index.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
63
64
65
66
67
68
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta charset="utf-8" />
<title>Fish game</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>
</head>
<body onLoad="loaded()">
<audio id="click" src="music/but.mp3" preload></audio>
<h class="text2" href="#">������</h>
<h class="text3" href="#">�������</h>
<div><img id="logo" src="imgs/logo.png"></img></div>
<a class="button" id="btn" id="button_p" target="_self" onclick="href_to('game.html')">Button</a>
<a class="button1" id="btn_1" id="button_p" target="_self" onclick="href_to('records.html')">Button</a>
<a class="button3" id="btn_2" id="button_p" target="_self" onclick="href_to('tutorial.html')">Button</a>
<label><input type="checkbox" value="1" name="k" id="sound_checkbox" onclick="sound_on_off()"><span></span></label>
<script>
function loaded()
{
if( localStorage.getItem("sound") )
{
var chbox = document.getElementById("sound_checkbox");
chbox.checked = (localStorage["sound"] == "1");
}
else
{
localStorage.setItem("sound","1");
}
}
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 sound_on_off()
{
var chbox = document.getElementById("sound_checkbox");
if( chbox.checked == true )
{
localStorage.setItem("sound","1");
}
else
{
localStorage.setItem("sound","0");
}
}
</script>
</body>
</html>