Skip to content

Commit c7a8366

Browse files
committed
added js
1 parent da9c12f commit c7a8366

File tree

3 files changed

+96
-8
lines changed

3 files changed

+96
-8
lines changed

css/style.css

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,19 +270,48 @@ line-height: 60px;
270270
background: #D6D6D6;
271271
width:615px;
272272
margin: 0 auto;
273-
padding: 18px 20px;
273+
height:0px;
274274
box-shadow: inset 0px 0px 10px rgba(0,0,0,.1);
275275
border-radius:8px;
276+
overflow: hidden;
276277
}
277278

278279
.webcare h4 {
279280
margin: 0;
280281
color:#253E71;
282+
padding:20px 20px 0px 20px;
281283
}
282284

283285
.webcare p {
284286
margin: 10px 0px 0px 0px;
285287
line-height:26px;
288+
padding: 0px 20px 20px 20px;
289+
}
290+
291+
.hive h4 a, .webcare h4 a {
292+
color:#253E71;
293+
}
294+
295+
.hive {
296+
background: #D6D6D6;
297+
width:615px;
298+
margin: 0 auto;
299+
height:0px;
300+
box-shadow: inset 0px 0px 10px rgba(0,0,0,.1);
301+
border-radius:8px;
302+
overflow: hidden;
303+
}
304+
305+
.hive h4 {
306+
margin: 0;
307+
color:#253E71;
308+
padding:20px 20px 0px 20px;
309+
}
310+
311+
.hive p {
312+
margin: 10px 0px 0px 0px;
313+
line-height:26px;
314+
padding: 0px 20px 20px 20px;
286315
}
287316

288317
footer {

index.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
<div class="navfixed">
1313
<div class="leftnav">
1414
<section class="navleft">
15-
<h3>ABOUT</h3>
16-
<h3>CONTACT</h3>
17-
<h3>GIVE A TALK</h3>
15+
<h3 class="aboutus">ABOUT</h3>
16+
<h3 class="contactus">CONTACT</h3>
17+
<h3 class="giveatalk">GIVE A TALK</h3>
1818
<a target="_blank" href="http://www.meetup.com/Jackson-Area-Web-and-Mobile-Developers/"><h3>JOIN THE MEETUP</h3></a>
19-
<h3>USEFUL LINKS</h3>
19+
<h3 class="usefullinks">USEFUL LINKS</h3>
2020
<a href="https://twitter.com/jacksondevs" target="_blank"><h3><i class="fa fa-twitter"></i></h3></a>
2121
</section>
2222
</div>
@@ -72,7 +72,7 @@ <h3 class="third-container-h3">
7272
<div class="fourth-container">
7373
<h3 class="fourth-container-h3">Sponsors</h3>
7474
<div class="sponsorcontainer">
75-
<div class="sponsor sponsorone">
75+
<div class="sponsor sponsorone" >
7676
<p>Webcare 360</p>
7777
<img src="images/webcare.png" style="width:250px;" alt="">
7878
</div>
@@ -84,7 +84,13 @@ <h3 class="fourth-container-h3">Sponsors</h3>
8484
<div class="clearfix"></div>
8585
<div class="webcare">
8686
<h4>
87-
Webcare360.com
87+
<a target="_blank" href="http://www.Webcare360.com">Webcare360.com</a>
88+
</h4>
89+
<p>WebCare360 provides Outstanding Anonymous Offshore European Web Hosting, Reseller Hosting, VPS Hosting and Dedicated Servers and Powerful DDoS mitigation Solutions</p>
90+
</div>
91+
<div class="hive">
92+
<h4>
93+
<a target="_blank" href="http://www.workinthehive.com">#thehive</a>
8894
</h4>
8995
<p>WebCare360 provides Outstanding Anonymous Offshore European Web Hosting, Reseller Hosting, VPS Hosting and Dedicated Servers and Powerful DDoS mitigation Solutions</p>
9096
</div>

js/main.js

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,52 @@
11
$(document).ready(function() {
22

33
var open = false;
4+
var sponsor1open = false;
5+
var sponsor2open = false;
46

57
var tl = new TimelineMax();
68

79
var content = $('.content'),
8-
leftnav = $('.leftnav');
10+
leftnav = $('.leftnav'),
11+
sponsorone = $('.sponsorone'),
12+
sponsortwo = $('.sponsortwo'),
13+
webcare = $('.webcare'),
14+
hive = $('.hive');
15+
16+
$(sponsorone).click(function() {
17+
18+
if (sponsor2open == true) {
19+
TweenMax.to(hive, 0, {height:0});
20+
sponsor2open = false;
21+
}
22+
23+
if (sponsor1open == false) {
24+
TweenMax.to(webcare, .14, {height:145});
25+
sponsor1open = true;
26+
} else {
27+
TweenMax.to(webcare, .14, {height:0});
28+
sponsor1open = false;
29+
}
30+
31+
});
32+
33+
34+
$(sponsortwo).click(function() {
35+
36+
if(sponsor1open == true) {
37+
TweenMax.to(webcare, 0, {height:0});
38+
sponsor1open = false;
39+
}
40+
41+
if (sponsor2open == false) {
42+
TweenMax.to(hive, .14, {height:145});
43+
sponsor2open = true;
44+
} else {
45+
TweenMax.to(hive, .14, {height:0});
46+
sponsor2open = false;
47+
}
48+
49+
});
950

1051

1152
$('#hamburger').click(function() {
@@ -46,6 +87,18 @@ $('#hamburger').click(function() {
4687
})
4788

4889

90+
var body = $("body");
91+
var top = body.scrollTop();
92+
93+
$('.aboutus').click(function(e) {
94+
e.preventDefault();
95+
$('html, body').animate({scrollTop: '1040px'}, 400);
96+
TweenMax.to(content, .4, {marginRight:0, ease:Cubic.easeInOut});
97+
TweenMax.to(content, .4, {marginLeft:0, ease:Cubic.easeInOut});
98+
TweenMax.to(leftnav, .4, {marginLeft:-400, ease:Cubic.easeInOut});
99+
100+
open = false;
101+
})
49102

50103

51104
});

0 commit comments

Comments
 (0)