Skip to content

Commit 9274ceb

Browse files
committed
finish exercise
1 parent 762d1e0 commit 9274ceb

File tree

3 files changed

+79
-10
lines changed

3 files changed

+79
-10
lines changed

index.html

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width;initial-scale=1"/>
66
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
7-
<meta name="description"
8-
content="Project management software to keep your team in sync and focused, so you can get back to work">
7+
<meta name="description" content="Project management software to keep your team in sync and focused, so you can get back to work">
98
<link href="bootstrap-3.3.4-dist/css/bootstrap.min.css" rel="stylesheet"/>
109
<link href="style.css" rel="stylesheet"/>
1110
<script src="listen.js"></script>
@@ -30,6 +29,7 @@
3029
</div>
3130
</div>
3231
</header>
32+
<!--end of header-->
3333
<div class="jumbotron">
3434
<div class="container">
3535
<div class="row">
@@ -62,6 +62,7 @@ <h2>Beautiful Easy <br>Project Management</h2>
6262
</div>
6363
</div>
6464
</div>
65+
<!--end of jumbotron-->
6566
<div class="container">
6667
<div class="row tab">
6768
<div class="col-md-4 spotlight tab-title">
@@ -250,18 +251,48 @@ <h1><span class="icon-pro-large"></span>$0<small>PER MONTH</small></h1>
250251
</div>
251252
</div>
252253
<div class="container contact">
253-
<div class="row">
254-
<div class="col-md-10 col-md-offset-3">
254+
<div class="row contact-row">
255+
<div class="col-md-9 col-md-offset-2">
255256
<span>Get started in 30 seconds</span>
256257
<a href="javascript:void(0);" class="btn btn-success btn-lg">Get Started Free</a>
257258
<span>Questions?<a href="javascript:void(0);">CONTACT US</a></span>
258259
</div>
259260
</div>
260261
</div>
261-
<footer class="container">
262+
<footer class="container-fluid">
262263
<div class="row">
263-
<div class="col-md-6">
264-
264+
<div class="col-md-6 col-md-offset-1">
265+
<div class="row">
266+
<div class="col-md-3">
267+
<ul>
268+
<li><a href="javascript:void(0);">Blog</a></li>
269+
<li><a href="javascript:void(0);">Live support chat</a></li>
270+
<li><a href="javascript:void(0);">Develop API</a></li>
271+
</ul>
272+
</div>
273+
<div class="col-md-3">
274+
<ul>
275+
<li><a href="javascript:void(0);">Contact us</a></li>
276+
<li><a href="javascript:void(0);">Privacy policy</a></li>
277+
<li><a href="javascript:void(0);">Terms of services</a></li>
278+
</ul>
279+
</div>
280+
<div class="col-md-3">
281+
<ul>
282+
<li><a href="javascript:void(0);">Twitter</a></li>
283+
<li><a href="javascript:void(0);">Facebook</a></li>
284+
<li><a href="javascript:void(0);">Google Plus</a></li>
285+
</ul>
286+
</div>
287+
</div>
288+
</div>
289+
</div>
290+
<div class="row" id="blimp-crew">
291+
<div class="col-md-7 col-md-offset-1" >
292+
<span>Made by the </span><a href="#">Blimp Crew </a><span>in </span><a href="#">San Juan, Puerto Rico</a>
293+
</div>
294+
<div class="col-md-4 fbg pull-right">
295+
<span class="copyright">&copy; 2012-2014 Blimp LLC.</span>
265296
</div>
266297
</div>
267298
</footer>

myjs.js

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,39 @@ function slideshow(){
66
var ol=document.getElementById("dot");
77
var olis=ol.getElementsByTagName("li");
88
//console.log(olis);
9+
autoPlay(0);
910
for(var i=0;i<olis.length;i++){
1011
olis[i].index=i;
1112
olis[i].onmouseover=function(){
13+
clearInterval(timer);
1214
for(j=0;j<olis.length;j++){
1315
olis[j].className="";
1416
ulis[j].className="";
15-
ulis[this.index].style.transition="all 2s ease 0.2s"
1617
}
1718
this.className="olActive";
1819
ulis[this.index].className="liActive";
19-
ulis[this.index].style.transition="all 2s ease 0.2s"
20+
}
21+
olis[i].onmouseout=function(){
22+
autoPlay(this.index);
2023
}
2124
}
25+
function autoPlay(_index){
26+
timer=setInterval(function(){
27+
for(var k=0;k<olis.length;k++){
28+
olis[k].className="";
29+
ulis[k].className="";
30+
}
31+
ulis[_index].className="liActive";
32+
olis[_index].className="olActive";
33+
_index++;
34+
if(_index==olis.length){
35+
_index=0;
36+
}
37+
},2000);
38+
}
2239
}
2340

41+
2442
function tabNews(){
2543
var titles=document.getElementsByClassName("tab-title");
2644
//console.log(titles);
@@ -53,7 +71,7 @@ function blockQuote(){
5371
//console.log(left);
5472
var timer=setInterval(function(){
5573
wrapcontent.style.left=left+"px";
56-
left=left-1100;
74+
left-=1100;
5775
if(left<-1100){
5876
left=0;
5977
}

style.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,23 @@ div.contact{
192192
padding: 40px 0;
193193
font-size: 20px;
194194
}
195+
div.contact-row{
196+
text-align: center;
197+
}
198+
footer.container-fluid{
199+
background: #3f3f3f;
200+
padding: 50px 0;
201+
position: relative;
202+
color: gray;
203+
}
204+
footer.container-fluid a{
205+
color: gray;
206+
}
207+
div.fbg span.copyright{
208+
color: gray;
209+
}
210+
#blimp-crew{
211+
margin-top: 40px;
212+
margin-left: -33px;
213+
padding-left: 63px;
214+
}

0 commit comments

Comments
 (0)