-
Notifications
You must be signed in to change notification settings - Fork 216
/
index.html
74 lines (68 loc) · 2.18 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
---
layout: clean
title: Open Source, Distributed, RESTful Search Engine
type: main
---
<div id="wrapper"><div class="indexpage">
<div class="thumbnail">
<div class="video">
<div id="carousel">
<ul>
{% for video in site.categories.videos reversed %}
{% if video.video_type == 'intro' %}
<li id="indexvideolink{{forloop.index}}">
<img width="200px" height="100px" alt="" src="/videos/images/{{video.video_image}}" /><p>{{video.title}}</p>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="tagline">
<h2 class="hidden">Search Engine for the Cloud</h2>
</div>
<script type="text/javascript">
$('#carousel').infiniteCarousel({
transitionSpeed: 800,
displayTime: 10000,
displayProgressBar: false,
imagePath: '/scripts/infinitecarousel/images/',
textholderHeight : .25,
padding:'10px',
prevNextInternal: false,
autoHideCaptions: true,
displayThumbnails: false
});
</script>
</div></div>
{% for video in site.categories.videos reversed %}
{% if video.video_type == 'intro' %}
<div id="indexvideo{{forloop.index}}" class="indexviewvideo">
<div class="video">
<div id="indexvideo_close{{forloop.index}}" class="closevideo">Close Video</div>
{{video.content}}
</div>
</div>
{% endif %}
{% endfor %}
<div id="indexseparator" style="background: #CCCCCC; height: 10px; margin-top: 350px;"></div>
<script type="text/javascript">
{% for video in site.categories.videos reversed %}
{% if video.video_type == 'intro' %}
$("#indexvideolink{{forloop.index}}").click(function () {
_gaq.push(['_trackEvent', 'Videos', 'Play', '{{video.title}}'])
$('#indexseparator').animate({
height : "220px"
}, 1500)
$("#indexvideo{{forloop.index}}").fadeIn("slow");
});
$("#indexvideo_close{{forloop.index}}").click(function () {
$('#indexseparator').animate({
height : "10px"
}, 1500)
$("#indexvideo{{forloop.index}}").fadeOut("slow");
});
{% endif %}
{% endfor %}
</script>