-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
executable file
·84 lines (77 loc) · 2.36 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/registerlogin.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title> Telephone Pictionary </title>
</head>
<body>
<div class="container">
<div id="header">
<table>
<tr>
<td>
<div id = "logo">
<!-- reference register_action.php here -->
<img src="img/octomom_logo.png" id="logo"/>
</div>
</td>
<td>
<div class = "topbar">
</div>
</td>
</tr>
</table>
</div>
<div id="centerButtons">
<div id="login"><img src="img/#.png" /></div>
<br />
<div id="register"><img src="img/register.png" /></div>
</div>
<div id="registerPopup">
<form id="register-form">
Enter your desired username: <br/><br/>
<input type="text" id="register-username" name="username" /><br />
<img src="img/submit_h.png" id="register-submit" />
</form>
<img id="avatars" src="img/avatars.png" />
</div>
<div id="loginPopup">
<form id="login-form">
Enter your username: <br/><br/>
<input type="text" id="login-username" name="username" /><br />
<img src="img/submit_h.png" id="login-form-submit" />
</form>
</div>
</div><!--container end div-->
</body>
<script>
$(document).ready(function(){
$('#register, #login').hover(
function(){
var imgName = $(this).attr('id');
$(this).children().attr('src', 'img/' + imgName + '_dp.png');
},
function(){
var imgName = $(this).attr('id');
$(this).children().attr('src', 'img/' + imgName + '.png');
}
);
$('#register').click(function(){
$("#register").fadeOut();
$("#login").fadeOut();
$("#register-form").fadeIn();
});
$('#login').click(function(){
$("#register").fadeOut();
$("#login").fadeOut();
$("#login-form").fadeIn();
});
$('#logo').click(function(){
window.location="http://octocat.comyr.com/menu/";
});
});
</script>
</html>