forked from raunaqgupta/edesia_prototype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
193 lines (164 loc) · 5.97 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
<!DOCTYPE html>
<<<<<<< HEAD
<html>
<head>
<meta charset="utf-8" />
<title>jInvertScroll Demo Page</title>
<link rel="stylesheet" href="stylesheets/example.css" />
<link rel="stylesheet" href="stylesheets/pushy.css" />
<link rel="stylesheet" href="stylesheets/index.css" />
</head>
<body>
<!-- Pushy Menu -->
<nav class="pushy pushy-left">
<img src="images/eatntravel.png" alt="eatntravel" width="100" style="width:100px;margin:auto;" >
<p>
Eat & Travel is a restaurant in your town!
</p>
</nav>
<!-- Site Overlay -->
<div class="site-overlay"></div>
<div class="container">
<!-- Menu Button -->
<div class="menu-btn" style="top:0px;">☰</div>
<div id="intro_title" class="fixed">
<h1>Lisbon</h1>
</div>
<div id="movie" class="scroll">
<video width="1280px" id="intro_movie" autoplay="" loop="">
<source src="videos/coast.mov" />
<img src="images/marina_stills/left.MOV000.png" />
</video>
<div id="intro_text">
</div>
<div id="test">
<ol class="frame-list">
<li class="active"></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ol>
</div>
</div>
<div class="horizon scroll">
<img src="jInvertScroll/examples/images/horizon.png" alt="" />
</div>
</div>
<script type="text/javascript" src="javascripts/vendor/jquery.js"></script>
<script type="text/javascript" src="javascripts/vendor/modernizr-2.6.2.min.js"></script>
<script type="text/javascript" src="javascripts/vendor/jquery.jInvertScroll.js"></script>
<script type="text/javascript" src="javascripts/vendor/pushy.js"></script>
<script type="text/javascript">
(function($) {
//var canvas = document.getElementById('viewport'),
//context = canvas.getContext('2d');
function make_base()
{
/*console.log("base");
var base_image = new Image();
base_image.src = 'images/firework.jpg';
base_image.onload = function(){
context.drawImage(base_image, 200, 100);
}*/
}
var $win = $(window),
$pencilFrames = $('.frame-list li'),
isFirefox = navigator.userAgent.match(/Firefox/) !== null;
var animationHandler = function() {
// quick fix to disable turn animation in Firefox
if ( isFirefox == false) {
pencilTurnHandler();
}
};
$(document).scroll(animationHandler);
$win.resize(animationHandler);
function pencilTurnHandler(percent) {
var w = percent * 1000;
var startAnimation = 60;
if (w > startAnimation) {
var scroll = ($win.scrollTop() + $win.width()) - ($('#test').offset().left + $('#test').outerWidth(true) / 2),
ratio = scroll / $win.width() * 1.75;
var v = w / 20.01;
var countOfFrames = 22;
var choice = Math.ceil(v) - (Math.floor(Math.ceil(v)/countOfFrames)) * countOfFrames;
if (choice >= 0 && choice < countOfFrames) {
var nextFrame = choice;
//var nextFrame = Math.floor(ratio * $pencilFrames.length);
$pencilFrames
.removeClass('active')
.eq(nextFrame).addClass('active');
}
}
}
function scrollHandler(percentScroll){
var w = percentScroll * 1000; // times 1000 so that we can get it to a fine grained scroll, less is choppy
var v = w / 14.01;
var countOfFrames = 6;
var choice = Math.ceil(v) - (Math.floor(Math.ceil(v)/countOfFrames)) * countOfFrames;
console.log(choice);
if (choice == 0){
make_base();
} else {
}
}
$('.menu-btn').css('position','fixed'); // this needs to be applied after scrolling is applied, otherwise the btn races to the right
}(jQuery));
</script>
</body>
</html>
=======
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Eat & Travel</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="stylesheets/normalize.min.css">
<link rel="stylesheet" href="stylesheets/main.css">
<script src="scripts/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
</head>
<body>
<div id="title_overlay">
<section id="location">
<img id="logo" src="static/images/eatntravel.png"></img>
<p id="address">
1D Ruo Do Pina<br>
Funchal, Madeira
</p>
</section>
</div>
<!-- scripts -->
<script src="scripts/vendor/jquery-1.10.1.min.js"></script>
<script src="scripts/plugins.js"></script>
<script src="scripts/main.js"></script>
<!-- <script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src='//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script> -->
</body>
</html>
>>>>>>> 04dae42067024e5789e42c89db6b334e7d3c0a3f