-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
399 lines (357 loc) · 13.4 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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Mozboot @ IITJ | Ignus '13</title>
<link href="css/reset.css" rel="stylesheet" media="screen">
<link href="css/style.css" rel="stylesheet" media="screen">
<link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div id="page">
<aside id="sidebar">
<nav><a class="logo" href="#top" id="nav-logo"><span>Ignus '13</span>Mozboot @ IITJ</a>
<ul>
<li class="active" id="nav-1"><a href="#home">Home</a></li>
<li id="nav-2"><a href="#work">Sessions</a></li>
<li id="nav-3"><a href="#about">Register</a></li>
<li id="nav-4"><a href="#contact">Connect</a></li>
</ul>
<div class="bg_bottom"></div>
</nav>
</aside>
<div id="main-content">
<section id="top"></section><!-- do not remove ;)-->
<section id="home">
<div id="loader" class="loader"></div>
<div id="ps_container" class="ps_container">
<div class="ps_image_wrapper">
<!-- First initial image -->
<img src="images/1.jpg" alt="" /> </div>
<!-- Navigation items -->
<div class="ps_next"></div>
<div class="ps_prev"></div>
<!-- Dot list with thumbnail preview -->
<ul class="ps_nav">
<li class="selected"><a href="images/1.jpg" rel="images/thumbs/1.jpg">Image 1</a></li>
<li><a href="images/2.jpg" rel="images/thumbs/2.jpg">Image 2</a></li>
</ul>
</div>
<!--end ps_container-->
<header class="divider intro-text">
<h2>Connect | Contribute | Enjoy</h2>
<!-- <div class="contact-me"><a class="contact button" href="#contact">Contact Me</a></div>-->
</header>
<div class="one-column columns testimony">
<div class="clearfix says">
<figure class="marginRight"><img src="images/icon.png" alt="Image" /></figure>
<blockquote>
<p>A one day event at <strong>IIT Jodhpur</strong> comprising of talks and hands-on-sessions to get people acquainted to Open-source software, spread the awareness and know about Mozilla and how to work on its platform.</p>
</blockquote>
</div>
</div>
</section> <!--end section-->
<section id="work" class="clearfix">
<header>
<h2>Sessions</h2>
</header>
<ul class="skills">
<li>Introduction to FOSS <span class="bar_100"></span></li>
<li>Brief Introduction to Mozilla <span class="bar_90"></li>
<li>Linux Kernel Hacking<span class="bar_50"></span></li>
<li>Mozilla Platform Products<span class="bar_70"></span></li>
<li>What Can I Do For Mozilla<span class="bar_20"></span></li>
<li>Hands on Session: Webmaker Tools<span class="bar_80"></span></li>
<li>Hands on Session: Build your own Firefox<span class="bar_70"></span></li>
<li>Firefox OS Demo<span class="bar_40"></span></li>
</ul>
</section> <!--end section-->
<section id="about" class="clearfix">
<header>
<h2>Register</h2>
</header>
<p>You need to register to for the event to be able to attend it. Since there are limited number of seats available, it is recommended that you fill the form carefully, and only deserving applicants will be selected.</p>
<div class="clearfix"></div>
<h3>Links</h3>
<ul class="skills">
<li>Register for Mozboot @ IITJ: On Spot <span class="bar_100"></span></li>
<li><a href="http://ignus.org">Register for Ignus '13</a><span class="bar_70"><span class="percent"></span></span></li>
<li>Registration Charges: Free <span class="bar_40"></span></li>
<li>Venue: IIT Jodhpur <span class="bar_60"></span></li>
<li>Date: 24th February, 2013 <span class="bar_10"></span></li>
</ul>
<br>Registration for Ignus '13 is optional. Do it if you want accomodation or attend other events of the fest.
</section> <!--end section-->
<section id="contact" class="clearfix">
<header>
<h2>Connect</h2>
</header>
<ul class="skills">
<li><a href="https://www.facebook.com/events/534242386593586/">Facebook Event Page</a><span class="bar_100"></span></li>
<li>Hashtag: #mozboot <span class="bar_40"></span></li>
<li><a href="https://reps.mozilla.org/e/mozboot-iitj/">Mozilla Reps Event Page</a><span class="bar_60"></span></li>
<li></li>
<li>Contact: Sankha Narayan Guria<span class="bar_90"></li>
<li>Email: <a href="mailto:[email protected]">[email protected]</a><span class="bar_50"></span></li>
<li>Twitter: <a href="http://twitter.com/sankha93">@sankha93</a><span class="bar_70"></span></li>
</ul>
<br><br>
<div class="social_wrapper">
<h3>Reaching IIT Jodhpur</h3>
<figure class="marginRight"><img src="images/reach_us.jpg" alt="Image" /></figure>
</div>
<div class="copyright">
<p><small>Designed by <a href="http://sankha93.github.com">Sankha Narayan Guria</a> (<a href="https://twitter.com/sankha93">@sankha93</a>)</small></p>
</div><!--end copyright-->
</section> <!--end section-->
</div>
</div>
<script type="text/javascript" src="js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="js/jquery_003.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<!-- The JavaScript -->
<script type="text/javascript">
/*
the images preload plugin
*/
(function($) {
$.fn.preload = function(options) {
var opts = $.extend({}, $.fn.preload.defaults, options),
o = $.meta ? $.extend({}, opts, this.data()) : opts;
return this.each(function() {
var $e = $(this),
t = $e.attr('rel'),
i = $e.attr('href'),
l = 0;
$('<img/>').load(function(i){
++l;
if(l==2) o.onComplete();
}).attr('src',i);
$('<img/>').load(function(i){
++l;
if(l==2) o.onComplete();
}).attr('src',t);
});
};
$.fn.preload.defaults = {
onComplete : function(){return false;}
};
})(jQuery);
</script>
<script type="text/javascript">
$(function() {
//some elements..
var $ps_container = $('#ps_container'),
$ps_image_wrapper = $ps_container.find('.ps_image_wrapper'),
$ps_next = $ps_container.find('.ps_next'),
$ps_prev = $ps_container.find('.ps_prev'),
$ps_nav = $ps_container.find('.ps_nav'),
$tooltip = $ps_container.find('.ps_preview'),
$ps_preview_wrapper = $tooltip.find('.ps_preview_wrapper'),
$links = $ps_nav.children('li').not($tooltip),
total_images = $links.length,
currentHovered = -1,
current = 0,
$loader = $('#loader');
/*check if you are using a browser*/
var ie = false;
if ($.browser.msie) {
ie = true;//you are not!Anyway let's give it a try
}
if(!ie)
$tooltip.css({
opacity : 0
}).show();
/*first preload images (thumbs and large images)*/
var loaded = 0;
$links.each(function(i){
var $link = $(this);
$link.find('a').preload({
onComplete : function(){
++loaded;
if(loaded == total_images){
//all images preloaded,
//show ps_container and initialize events
$loader.hide();
$ps_container.show();
//when mouse enters the pages (the dots),
//show the tooltip,
//when mouse leaves hide the tooltip,
//clicking on one will display the respective image
$links.bind('mouseenter',showTooltip)
.bind('mouseleave',hideTooltip)
.bind('click',showImage);
//navigate through the images
$ps_next.bind('click',nextImage);
$ps_prev.bind('click',prevImage);
}
}
});
});
function showTooltip(){
var $link = $(this),
idx = $link.index(),
linkOuterWidth = $link.outerWidth(),
//this holds the left value for the next position
//of the tooltip
left = parseFloat(idx * linkOuterWidth) - $tooltip.width()/2 + linkOuterWidth/2,
//the thumb image source
$thumb = $link.find('a').attr('rel'),
imageLeft;
//if we are not hovering the current one
if(currentHovered != idx){
//check if we will animate left->right or right->left
if(currentHovered != -1){
if(currentHovered < idx){
imageLeft = 75;
}
else{
imageLeft = -75;
}
}
currentHovered = idx;
//the next thumb image to be shown in the tooltip
var $newImage = $('<img/>').css('left','0px')
.attr('src',$thumb);
//if theres more than 1 image
//(if we would move the mouse too fast it would probably happen)
//then remove the oldest one (:last)
if($ps_preview_wrapper.children().length > 1)
$ps_preview_wrapper.children(':last').remove();
//prepend the new image
$ps_preview_wrapper.prepend($newImage);
var $tooltip_imgs = $ps_preview_wrapper.children(),
tooltip_imgs_count = $tooltip_imgs.length;
//if theres 2 images on the tooltip
//animate the current one out, and the new one in
if(tooltip_imgs_count > 1){
$tooltip_imgs.eq(tooltip_imgs_count-1)
.stop()
.animate({
left:-imageLeft+'px'
},150,function(){
//remove the old one
$(this).remove();
});
$tooltip_imgs.eq(0)
.css('left',imageLeft + 'px')
.stop()
.animate({
left:'0px'
},150);
}
}
//if we are not using a "browser", we just show the tooltip,
//otherwise we fade it
//
if(ie)
$tooltip.css('left',left + 'px').show();
else
$tooltip.stop()
.animate({
left : left + 'px',
opacity : 1
},150);
}
function hideTooltip(){
//hide / fade out the tooltip
if(ie)
$tooltip.hide();
else
$tooltip.stop()
.animate({
opacity : 0
},150);
}
function showImage(e){
var $link = $(this),
idx = $link.index(),
$image = $link.find('a').attr('href'),
$currentImage = $ps_image_wrapper.find('img'),
currentImageWidth = $currentImage.width();
//if we click the current one return
if(current == idx) return false;
//add class selected to the current page / dot
$links.eq(current).removeClass('selected');
$link.addClass('selected');
//the new image element
var $newImage = $('<img/>').css('left',currentImageWidth + 'px')
.attr('src',$image);
//if the wrapper has more than one image, remove oldest
if($ps_image_wrapper.children().length > 1)
$ps_image_wrapper.children(':last').remove();
//prepend the new image
$ps_image_wrapper.prepend($newImage);
//the new image width.
//This will be the new width of the ps_image_wrapper
var newImageWidth = $newImage.width();
//check animation direction
if(current > idx){
$newImage.css('left',-newImageWidth + 'px');
currentImageWidth = -newImageWidth;
}
current = idx;
//animate the new width of the ps_image_wrapper
//(same like new image width)
$ps_image_wrapper.stop().animate({
width : newImageWidth + 'px'
},350);
//animate the new image in
$newImage.stop().animate({
left : '0px'
},350);
//animate the old image out
$currentImage.stop().animate({
left : -currentImageWidth + 'px'
},350);
e.preventDefault();
}
function nextImage(){
if(current < total_images){
$links.eq(current+1).trigger('click');
}
}
function prevImage(){
if(current > 0){
$links.eq(current-1).trigger('click');
}
}
});
</script>
<script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.projects li figure a img').animate({'opacity' : 1}).hover(function() {
$(this).animate({'opacity' : .5});
}, function() {
$(this).animate({'opacity' : 1});
});
$('.zoom img').animate({'opacity' : 1}).hover(function() {
$(this).animate({'opacity' : .5});
}, function() {
$(this).animate({'opacity' : 1});
});
$("a[rel=work]").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '</span>';
}
});
$("a[rel=recent_work]").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '</span>';
}
});
});
</script>
</body>
</html>