-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquote.html
83 lines (71 loc) · 3.24 KB
/
quote.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>The Future Timeline</title>
<link rel="stylesheet" href="css/style.css">
<link href='https://fonts.googleapis.com/css?family=Raleway:400,800' rel='stylesheet' type='text/css'>
<script src="js/jquery-1.11.3.min.js"></script>
<link rel="shortcut icon" type="image/png" href="img/time-favicon.png"/>
<script>
$(document).ready(function(e) { // do not delete this line
$('.container h3').hide();
$('.container h3').fadeIn(2000)
// This animates the navigation bar. If the user scrolls below 30px, ab animation is triggered.
$(window).scroll(function(e){
// here the bar is id'ed myBar
if ($(this).scrollTop() > 30) { // choose the value you want.
$('nav').stop().animate({"padding" : "10px"});
$('nav').css({"background" : "#000000"});
$('#logo').css({"font-size" : "18px"});
} else {
$('nav').stop().animate({"padding":"30px"});
$('nav').css({"background" : "transparent"});
$('#logo').css({"font-size" : "22px"});
}
});
//This generates the quote
var arr =["<q>Even though the future seems far away, it is actually beginning right now.</q><br> - Mattie Stepanek","<q>You cannot escape the responsibility of tomorrow by evading it today.</q><br> - Abraham Lincoln","<q>Memories are the key not to the past, but to the future.</q><br> - Corrie Ten Boom","<q>Study the past, if you would divine the future.</q><br> - Confucious","<q>Real generosity toward the future lies in giving all to the present.</q><br> - Albert Camus","<q>I look to the future because that's where I'm going to spend the rest of my life.</q><br> - George Burns","<q>Well, the future for me is already a thing of the past.</q><br> - Bob Dylan","<q>The future is always beginning now.</q><br> - Mark Strand","<q>I have no plans, and no plans to plan.</q><br> - Mario Cuomo","<q>Go for it now. The future is promised to no one.</q><br> - Wayne Dyer"];
$('.btn-q a').click(function(e) {
$('#quote').hide().html(arr[Math.floor((Math.random() * 10)+1)]).fadeIn(800);
$('.btn-q a').hide().fadeIn(800)
});
}); // do not delete this line
</script>
</head>
<body>
<nav>
<div id="nav-wrapper">
<ul id="nav-norm" class="navbar">
<li class="logo"><a href="index.html">The Future Timeline</a></li>
<li class="scroll"><a href="index.html#timeline-one">Years V</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="quote.html">Quotes for the future</a></li>
</ul>
<ul id="ham-navbar" class="navbar">
<li class="logo"><a href="index.html">The Future Timeline</a></li>
<li class="scroll"><a href="index.html#timeline-one">Years</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="quote.html">Quotes</a></li>
</li>
</ul>
</nav>
<article>
<div id="quotes-page">
<div class="container">
<h3 id="quote">"Study the past, if you would divine the future." <br> - Confucious </h3>
<div class="btn-q">
<a href="#">Get a quote</a>
</div>
</div>
</article>
<footer>
<div id="footer-links">
<a href="about.html">About</a>
<a href="contact.html">Contact</a>
</div>
</footer>
</body>
</html>