-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
175 lines (160 loc) · 5.56 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
<!Doctype html>
<html>
<head>
<title>Santosh Parallax & smooth Scrolling</title>
<meta charset="utf-8">
<meta name="viewoport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('a[href^="#"]').bind('click.smoothscroll', function (e) {
e.preventDefault();
var target = this.hash,
$target = $(target);
$('html, body').stop().animate({
'scrollTop': $target.offset().top - 0
}, 800, 'swing', function () {
window.location.hash = target;
});
});
});
</script>
<script>
$(document).ready(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
$('.scrollup').fadeIn();
} else {
$('.scrollup').fadeOut();
}
});
$('.scrollup').click(function () {
$('html, body').animate({
scrollTop: 0
}, 800);
return false;
});
});
</script>
</head>
<body>
<nav>
<a href="#" id="menu-icon"></a>
<ul>
<li>
<a href="#parallax-1">Who I Am</a>
</li>
<li>
<a href="#parallax-2">What I Like</a>
</li>
<li>
<a href="#parallax-3">Talk to Me</a>
</li>
<li>
<a href="http://www.eiu.edu/tech">Learn more at EIU</a>
</li>
</ul>
</nav>
<div id="social">
<a href="http://www.facebook.com">
<img src="images/facebook.png" alt="facebook logo">
</a>
<a href="http://www.twitter.com">
<img src="images/twitter.png" alt="twitter logo">
</a>
<a href="http://www.youtube.com">
<img src="images/youtube.png" alt="youtube logo">
</a>
</div>
<section id="parallax-1" class="module parallax parallax-1">
<div class="container">
<h1>Who Am I?</h1>
</div>
</section>
<section class="module content">
<div class="container">
<h2>Who Am I?</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
</div>
</section>
<section id="parallax-2" class="module parallax parallax-2">
<div class="container">
<h1>What do I like?</h1>
</div>
</section>
<section class="module content">
<div class="container">
<h2>What do I like?</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
</div>
</section>
<section id="parallax-3" class="module parallax parallax-3">
<div class="container">
<h1>Talk to Me</h1>
</div>
</section>
<section class="module content">
<div class="container">
<div class="slideshow-container">
<div class="mySlides fade">
<div class="numbertext">1 / 3</div>
<img src="images/img1.jpg" style="width:100%">
<div class="text"></div>
</div>
<div class="mySlides fade">
<div class="numbertext">2 / 3</div>
<img src="images/img2.jpg" style="width:100%">
<div class="text"></div>
</div>
<div class="mySlides fade">
<div class="numbertext">3 / 3</div>
<img src="images/img3.jpg" style="width:100%">
<div class="text"></div>
</div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
</div>
<br>
<div style="text-align:center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
</div>
</div>
<script>
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
if (n > slides.length) {
slideIndex = 1
}
if (n < 1) {
slideIndex = slides.length
}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex - 1].style.display = "block";
dots[slideIndex - 1].className += " active";
}
</script>
</section>
<footer>
<p>Copyright Santosh Kumar Bandari</p>
<a href="#menu-icon" class="scrollup"></a>
</footer>
</body>
</html>