-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
221 lines (162 loc) · 7.42 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!DOCTYPE html>
<html>
<!-- http://www.colourlovers.com/palette/107386/Loira
http://www.colorhexa.com/color-names
-->
<head>
<title>ClassHub - Lets study together.</title>
<link rel="stylesheet" href="css/home.css">
<!--<link href='http://fonts.googleapis.com/css?family=Oswald:700,300' rel='stylesheet' type='text/css'> -->
<!-- Horizontal ScrollBar CSS -->
<link rel="stylesheet" href="css/jquery-ui-1.10.4.custom.css">
<link rel="stylesheet" href="css/loginstyle.css">
<link rel="stylesheet" href="css/header.css">
<link rel="stylesheet" href="css/footer.css">
<link rel="stylesheet" type="text/css" href="css/jcarousel.responsive.css">
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript" src="js/jquery.jcarousel.min.js"></script>
<script type="text/javascript" src="js/jcarousel.responsive.js"></script>
<!-- New Responsive Carousel -->
<script type="text/javascript" src="js/responsiveCarousel.js"></script>
<link rel="stylesheet" type="text/css" href="css/carouselCustomControls.css">
<!-- ************************************* -->
<script src="js/jquery-ui-1.10.4.custom.js"></script>
<script>
$(function() {
$( "#slider" ).slider();
});
function closelogin(){
$('#loginform').fadeOut(200);
}
// $(window).on('load resize', function () {
//});
$(document).ready(function() {
$('#txtsearch').hide(); //initially hides the search bar
$('#loginform').hide(); //initially hides the login form
$('#clicklogin').on('click',function(){ //function to show login form
$('#loginform').fadeIn(200); //login form appears with fadeIn animation
$('#content').css({opacity:0.1}); //makes the background opacity to 0.1
});
$('#btnsearch').click(function(){ //function to show search bar
$('#txtsearch').show('slide',{direction:'left'},300); //search bar appears with slide animation
});
$('body').keypress(function(e){ //function called when the content area is clicked
if(e.keyCode == 27){
$('#txtsearch').hide('slide',{direction:'left'},300); //hides the search bar with slide animation
$('#loginform').fadeOut(200); // hides the login from with fadeOut animation
$('#content').css({opacity:1}); //restores the opacity of content area(makes the content visible)
}
});
$('.subcontent img').click(function(){
initAudio($(this));
});
$('.txtlogin').click(function(){
$('#clicklogin').click();
});
});
</script>
<script>
jQuery(document).ready(function($){
//$('.gallery1').carousel({overflow: false, visible: 8, itemMinWidth: 200, itemMargin: 10,autoRotate:2000, speed:1000});
$('.gallery1').carousel({overflow: false, visible: 6, itemMinWidth: 180, itemMargin: 10,speed:200});
//$('.gallery2').carousel({overflow: false, visible: 7, itemMinWidth: 180, itemMargin: 10,speed:200});
$('.gallery3').carousel({overflow: false, visible: 6, itemMinWidth: 180, itemMargin: 10,speed:200});
//$('.textcontent').carousel({ visible: 3, itemMinWidth: 300, itemMargin: 20 });
$('.crsl-items').on('initCarousel', function(event, defaults, obj){
// Hide controls
$('#'+defaults.navigation).find('.previous, .next').css({ opacity: 0 });
// Show controls on gallery hover
// #gallery-07 wraps .crsl-items and .crls-nav
// .stop() prevent queue
$('#subcontent3').hover( function(){
$(this).find('.previous').css({ left: 0 }).stop(true, true).animate({ left: '20px', opacity: 1 });
$(this).find('.next').css({ right: 0 }).stop(true, true).animate({ right: '20px', opacity: 1 });
}, function(){
$(this).find('.previous').animate({ left: 0, opacity: 0 });
$(this).find('.next').animate({ right: 0, opacity: 0 });
});
$('#subcontent5').hover( function(){
$(this).find('.previous').css({ left: 0 }).stop(true, true).animate({ left: '20px', opacity: 1 });
$(this).find('.next').css({ right: 0 }).stop(true, true).animate({ right: '20px', opacity: 1 });
}, function(){
$(this).find('.previous').animate({ left: 0, opacity: 0 });
$(this).find('.next').animate({ right: 0, opacity: 0 });
});
});
$('.gallery2').carousel({carousel: false, overflow: false, visible: 3, itemMinWidth: 250, itemMargin: 10 });
});
</script>
</head>
<body>
<div id="main">
<div id="header"><h2>ClassHub</h2>
<!-- <form>
<img src="resources/buttons/newsearch.png" width="46" height="46" id="btnsearch" title="Click to Search"></img>
<div id="divtxtsearch"><input type="text" name="txtsearch" id="txtsearch"></div>
</form>
-->
<div id="headerlink" style="z-index:-99;">
<div class="headerlinkactive"><a href="index.php" class="leftheader">Home</a></div>
<div class="headerlinkactive"><a href="#" class="leftheader">About Us</a></div>
<div class="headerlinkactive"><a href="#" class="leftheader">Contact </a></div>
<div class="headerlinkactive"><a href="#" class="leftheader" id="clicklogin">Log In</a></div>
</div>
<!--<img src="resources/buttons/settings.png" width="26" height="26" id="settings" id="settings"></img>-->
</div>
<div id="content">
<div id="subcontent1">
<div id="firstblock">
<table>
<tr>
<td>Lets Make Notes Together</td>
</tr>
</table>
</div>
<div class="loginorsignup">
<div class="txtlogin"><span>Log In</span></div>
<a href = "register.html"><div class="txtsignup"><span>Sign Up</span></div></a>
</div>
</div>
<footer>
<div id="footerlink">
<span>
<a href="#"><div class="choice">Blog</div></a>
<a href="#"><div class="choice">Contact</div></a>
<a href="#"><div class="choice">Copyright</div></a>
<a href="#"><div class="choice">Privacy</div></a></span>
</div>
</footer>
</div>
<!-- Login -->
<div id="loginform">
<h2 style="font-family: 'Oswald-Light', sans-serif; color:white; font-size:24px;"><center>Login</center></h2>
<form method="post" action="login.php" class="login">
<p>
<label for="login">UserName:</label>
<input type="text" name="username" id="login" placeholder="Username">
</p>
<p>
<label for="password">Password:</label>
<input type="password" name="password" id="password" placeholder="Password">
</p>
<p class="login-submit">
<button type="submit" class="login-button">Login</button>
</p>
<!--<p class="forgot-password"><a href="index.html">Forgot your password?</a></p> -->
<p class="forgot-password"><a href="register.html">Sign Up!</a></p>
</form>
<!--
<section class="about">
<p class="about-links">
<a onclick="closelogin()" style="cursor:pointer;">Close</a>
<a href="http://www.cssflow.com/snippets/dark-login-form.zip" target="_parent">Sign Up</a>
</p>
<p class="about-author">
© 2012–2013 <a href="http://thibaut.me" target="_blank">Thibaut Courouble</a> -
<a href="http://www.cssflow.com/mit-license" target="_blank">MIT License</a><br>
Original PSD by <a href="http://365psd.com/day/2-234/" target="_blank">Rich McNabb</a>
</section>
-->
</div>
</body>
</html>