├── README.md
├── index.html
├── resources
├── css
│ ├── img
│ │ ├── back-customers-min.jpg
│ │ ├── back-customers.jpg
│ │ ├── hero-min.jpg
│ │ └── hero.jpg
│ ├── queries.css
│ └── styles.css
├── img
│ ├── 1.jpg
│ ├── 2.jpg
│ ├── 3.jpg
│ ├── 4.jpg
│ ├── 5.jpg
│ ├── 6.jpg
│ ├── 7.jpg
│ ├── 8.jpg
│ ├── app-iPhone.png
│ ├── back-customers.jpg
│ ├── berlin.jpg
│ ├── customer-1.jpg
│ ├── customer-2.jpg
│ ├── customer-3.jpg
│ ├── download-app-android.png
│ ├── download-app.svg
│ ├── hero.jpg
│ ├── lisbon-3.jpg
│ ├── logo-white.png
│ ├── logo.png
│ ├── london.jpg
│ └── san-francisco.jpg
└── js
│ └── scripts.js
└── vendors
├── css
├── animate.css
├── grid.css
├── ionicons.min.css
└── node_modules
│ └── normalize.css
│ ├── CHANGELOG.md
│ ├── LICENSE.md
│ ├── README.md
│ ├── normalize.css
│ └── package.json
├── fonts
├── ionicons.eot
├── ionicons.svg
├── ionicons.ttf
└── ionicons.woff
└── js
├── gmaps.js
└── jquery.waypoints.min.js
/README.md:
--------------------------------------------------------------------------------
1 | #Omnifood landing page [v1].
2 |
3 | This is a simple one-page website featuring the fictitious Omnifood brand. This is built and taught from a Udemy course [RWD and Development with HTML5 and CSS3](https://www.udemy.com/design-and-develop-a-killer-website-with-html5-and-css3/).
4 |
5 | The site also uses subtle animations using jQuery. Another version will make use of different tools/ languages to enhance the landing page's performance and development time.
6 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Omnifood
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
31 |
32 |
33 |
34 |
35 |
Goodbye junkfood, Hello super healthy meals.
36 |
I'm hungry
37 |
Show me more
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
Get food fast — not fast food
46 |
47 | Hello, we’re Omnifood, your new premium food delivery service. We know you’re always busy. No time for cooking. So let us take care of that, we’re really good at it, we promise!
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
Up to 365 days/year
56 |
Never cook again! We really mean that. Our subscription plans include up to 365 days/year coverage. You can also choose to order more flexibly if that's your style.
57 |
58 |
59 |
60 |
Ready in 20 minutes
61 |
You're only twenty minutes away from your delicious and super healthy meals delivered right to your home. We work with the best chefs in each town to ensure that you're 100% happy.
62 |
63 |
64 |
65 |
100% organic
66 |
All our vegetables are fresh, organic and local. Animals are raised without added hormones or antibiotics. Good for your health, the environment, and it also tastes better!
67 |
68 |
69 |
70 |
Order anything
71 |
We don't limit your creativity, which means you can order whatever you feel like. You can also choose from our menu containing over 100 delicious meals. It's up to you!
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 |
How it works — Simple as 1, 2, 3
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
1
141 |
Choose the subscription plan that best fits your needs and sign up today.
142 |
143 |
144 |
2
145 |
Order your delicious meal using our mobile app or website. Or you can even call us!
146 |
147 |
148 |
3
149 |
Enjoy your meal after less than 20 minutes. See you the next time!
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
We're currently in these cities
166 |
167 |
168 |
169 |
170 |
Lisbon
171 |
172 |
173 | 1600+ happy eaters!
174 |
175 |
176 |
177 | 60+ top chefs
178 |
179 |
183 |
184 |
185 |
186 |
San Francisco
187 |
188 |
189 | 3700+ happy eaters!
190 |
191 |
192 |
193 | 160+ top chefs
194 |
195 |
199 |
200 |
201 |
202 |
Berlin
203 |
204 |
205 | 2300+ happy eaters!
206 |
207 |
208 |
209 | 110+ top chefs
210 |
211 |
215 |
216 |
217 |
218 |
London
219 |
220 |
221 | 1200+ happy eaters!
222 |
223 |
224 |
225 | 50+ top chefs
226 |
227 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
Our customers can't live without us
240 |
241 |
242 |
243 | Omnifood is just awesome! I just launched a startup which leaves me with no time for cooking, so Omnifood is a life-saver. Now that I got used to it, I couldn't live without my daily meals!
244 | Alberto Duncan
245 |
246 |
247 |
248 |
249 | Inexpensive, healthy and great-tasting meals, delivered right to my home. We have lots of food delivery here in Lisbon, but no one comes even close to Omifood. Me and my family are so in love!
250 | Joana Silva
251 |
252 |
253 |
254 |
255 | I was looking for a quick and easy food delivery service in San Franciso. I tried a lot of them and ended up with Omnifood. Best food delivery service in the Bay Area. Keep up the great work!
256 | Milton Chapman
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
Start eating healthy today
268 |
269 |
270 |
271 |
272 |
273 |
Premium
274 |
$399 / month
275 |
That's only $13.30 per meal!
276 |
277 |
278 |
279 |
280 | 1 meal everyday.
281 |
282 |
283 | Order 24/7
284 |
285 |
286 | Access to newest creations
287 |
288 |
289 | Free delivery
290 |
291 |
292 |
293 |
296 |
297 |
298 |
299 |
300 |
301 |
Pro
302 |
$149 / month
303 |
That's only $14.90 per meal!
304 |
305 |
306 |
307 |
308 | 1 meal 10 days/month.
309 |
310 |
311 | Order 24/7
312 |
313 |
314 | Access to newest creations
315 |
316 |
317 | Free delivery
318 |
319 |
320 |
321 |
324 |
325 |
326 |
327 |
328 |
329 |
Starter
330 |
$19 / meal
331 |
332 |
333 |
334 |
335 |
336 | 1 meal
337 |
338 |
339 | Order from 8am to 12pm
340 |
341 |
342 |
343 |
344 |
345 | Free delivery
346 |
347 |
348 |
349 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 |
361 |
362 |
363 |
364 |
426 |
427 |
428 |
429 |
430 |
464 |
465 |
466 |
467 |
468 |
469 |
470 |
471 |
472 |
473 |
474 |
--------------------------------------------------------------------------------
/resources/css/img/back-customers-min.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/css/img/back-customers-min.jpg
--------------------------------------------------------------------------------
/resources/css/img/back-customers.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/css/img/back-customers.jpg
--------------------------------------------------------------------------------
/resources/css/img/hero-min.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/css/img/hero-min.jpg
--------------------------------------------------------------------------------
/resources/css/img/hero.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/css/img/hero.jpg
--------------------------------------------------------------------------------
/resources/css/queries.css:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Media Queries for Responsive Web Design - basic
4 | */
5 |
6 | /* Big tablet - 1024px - 1200px
7 | *****************************************/
8 |
9 | @media only screen and (max-width: 1200px) {
10 | .hero-text{
11 | width: 100%;
12 | padding: 0 2%;
13 | }
14 | .row { padding: 0 2%; }
15 | }
16 |
17 |
18 |
19 | /* Tablets - 768px - 1023px
20 | *****************************************/
21 |
22 | @media only screen and (max-width: 1023px) {
23 | body {
24 | font-size: 18px;
25 | }
26 | section {
27 | padding: 60px 0;
28 | }
29 | .long-copy {
30 | width: 80%;
31 | margin-left: 10%;
32 | margin-right: 10%;
33 | }
34 |
35 | .steps-box {
36 | margin-top: 10px;
37 | }
38 | .steps-box:last-child {
39 | margin-top: 10px;
40 | }
41 | .works-steps {
42 | margin-bottom: 40px;
43 | }
44 | .works-steps:last-of-type {
45 | margin-bottom: 80px;
46 | }
47 | .app-screen {
48 | width: 50%;
49 | }
50 | .icon-small {
51 | width: 17px;
52 | margin-right: 5px;
53 | }
54 | .city-features {
55 | font-size: 0.85em;
56 | }
57 | .plan-box {
58 | width: 100%;
59 | margin-left: 0%;
60 | }
61 | .plan-price {
62 | font-size: 2.5em;
63 | }
64 | .section-form {
65 | width: 90%;
66 | }
67 | .social-icons,
68 | .footer-nav {
69 | float: none;
70 | text-align: center;
71 | }
72 | .footer-nav {
73 | margin-bottom: 10px;
74 | }
75 | }
76 |
77 |
78 | /* Small phones/ tablets - 481px - 767px
79 | *****************************************/
80 |
81 | @media only screen and (max-width: 767px) {
82 | body{
83 | font-size: 16px;
84 | }
85 | section {
86 | padding: 30px 0;
87 | }
88 | .row,
89 | .hero-text {
90 | padding: 0 4%;
91 | }
92 | .col {
93 | width: 100%;
94 | margin: 0 0 4% 0;
95 | }
96 |
97 | .main-nav {
98 | display: none;
99 | }
100 |
101 | .main-nav {
102 | float: left;
103 | margin-top: 35px;
104 | margin-left: 25px;
105 | }
106 |
107 | .main-nav li {
108 | display: block;
109 | }
110 |
111 | .main-nav li a:link,
112 | .main-nav li a:visited {
113 | display: block;
114 | border: 0;
115 | padding: 10px 0;
116 | font-size: 1em;
117 | }
118 |
119 | .mobile-nav-icon {
120 | display: inline-block;
121 | }
122 |
123 | .sticky .main-nav {
124 | margin-top: 10px;
125 | }
126 |
127 | .sticky .main-nav li a:link,
128 | .sticky .main-nav li a:visited {
129 | padding: 10px 0;
130 | }
131 |
132 | .sticky .mobile-nav-icon {
133 | margin-top: 10px;
134 | }
135 |
136 | .sticky .mobile-nav-icon i {
137 | color: #555;
138 | }
139 |
140 |
141 | .long-copy {
142 | width: 100%;
143 | margin-left: 0%;
144 | }
145 | h1 {
146 | font-size: 1.8em;
147 | }
148 | h2 {
149 | font-size: 1.5em;
150 | }
151 | .steps-box:first-child {
152 | text-align: center;
153 | margin-top: 10px;
154 | }
155 | .steps-box:last-child {
156 | margin-top: 20px;
157 | }
158 | .works-steps {
159 | margin-bottom: 30px;
160 | }
161 | .works-steps div {
162 | height: 40px;
163 | width: 40px;
164 | margin-right: 15px;
165 | padding: 4px;
166 | font-size: 1.2em;
167 | }
168 | .works-steps:last-of-type {
169 | margin-bottom: 30px;
170 | }
171 | .app-screen {
172 | width: 40%;
173 | }
174 | input[type="submit"] {
175 | width: 100%;
176 | }
177 |
178 | .map-box {
179 | width: 100%;
180 | height: auto;
181 | position: relative;
182 | }
183 |
184 | .map {
185 | width: 100%;
186 | height: 300px;
187 | position: relative;
188 | z-index: 0;
189 | }
190 |
191 | .form-box {
192 | position: relative;
193 | width: 100%;
194 | height: auto;
195 | padding: 30px 20px 0 30px;
196 | }
197 | }
198 |
199 |
200 | /* Small phones - Less than or equal to 480px
201 | *********************************************/
202 |
203 | @media only screen and (max-width: 480px) {
204 | section {
205 | padding: 25px 0;
206 | }
207 | .section-form {
208 | width: 100%;
209 | }
210 | }
--------------------------------------------------------------------------------
/resources/css/styles.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | OMNIFOOD LANDING PAGE - v1 with CSS3 styles only.
4 |
5 | */
6 |
7 | * {
8 | margin: 0;
9 | padding: 0;
10 | box-sizing: border-box;
11 | }
12 |
13 | *:focus { outline: none; }
14 |
15 | /* Basic styling
16 | ============================================================= */
17 | html,
18 | body {
19 | background-color: #fff;
20 | color: #555;
21 | font-family: 'Lato', 'Arial', sans-serif;
22 | font-size: 20px;
23 | font-weight: 300;
24 | /* Renders text clean */
25 | text-rendering: optimizeLegibility;
26 | overflow-x: hidden; /* when media 500px or less, text overflows screen */
27 | }
28 |
29 | /* Clearfix hack
30 | ===================================================*/
31 | .clearfix{ zoom: 1 }
32 | .clearfix:after {
33 | content: ".";
34 | clear: both;
35 | display: block;
36 | height: 0;
37 | visibility: hidden;
38 | }
39 |
40 | .row {
41 | max-width: 1140px; /* fixed width for all rows */
42 | margin: 0 auto; /* center content*/
43 | }
44 |
45 | section { padding: 80px 0px; }
46 |
47 | h1,
48 | h2,
49 | h3 {
50 | font-weight: 300;
51 | text-transform: uppercase;
52 | }
53 |
54 | h1 {
55 | margin-bottom: 20px;
56 | color: #fff;
57 | font-size: 2.2em;
58 | word-spacing: 4px;
59 | letter-spacing: 1px;
60 | }
61 |
62 | h2 {
63 | font-size: 1.8em;
64 | word-spacing: 2px;
65 | text-align: center;
66 | margin-bottom: 30px;/* Note: h2 and h2:after have same 30px value for margins for symmetry*/
67 | letter-spacing: 1px;
68 | }
69 |
70 | /* Line divide (yellow)
71 | ==================================*/
72 | h2:after {
73 | display: block;
74 | height: 2px;
75 | background-color: #e67e22;
76 | content: ""; /* Must have when using :after pseudo-class */
77 | width: 100px;
78 | margin: 0 auto; /* Center content */
79 | margin-top: 30px;
80 |
81 | }
82 |
83 | h3 {
84 | font-size: 1.125em; /* Eh. */
85 | margin-bottom: 15px;
86 | }
87 |
88 | /* Copy
89 | ===================================*/
90 | .long-copy {
91 | line-height: 1.5;
92 | width: 70%;
93 | margin-left: 15%; /* centers content using remainder 30% evenly */
94 | margin-right: 15%;
95 | text-align: center; /* Adjusts it nicely in the center*/
96 | margin-bottom: 30px;
97 | }
98 |
99 | .box { padding: 1%; }
100 |
101 | .box p {
102 | font-size: 0.9em;
103 | line-height: 1.45;
104 |
105 | }
106 |
107 | /* Links
108 | ===================================*/
109 | a:link,
110 | a:visited {
111 | color: #e67e22;
112 | text-decoration: none;
113 | border-bottom: 1px solid #e67e22;
114 | padding-bottom: 1px;
115 | transition: border-bottom 0.2s, color 0.2s
116 | }
117 |
118 | a:hover,
119 | a:active {
120 | color: #555;
121 | border-bottom: 1px solid transparent;
122 | }
123 |
124 |
125 |
126 | /* Icons
127 | ===================================*/
128 | .icon-big {
129 | font-size: 3.5em;
130 | display: block;
131 | color: #e67e22;
132 | margin-bottom: 10px;
133 | margin-right: 25px;
134 | text-align: center;
135 | }
136 |
137 | .icon-small {
138 | display: inline-block;
139 | width: 30px;
140 | text-align: center;
141 | color: #e67e22;
142 | font-size: 1.2em;
143 | margin-right: 10px;
144 | /* Align texts and icons trick */
145 | line-height: 1.2;
146 | vertical-align: middle;
147 | margin-top: -4px;
148 | }
149 |
150 | /* Button Normal State
151 | ====================================*/
152 | .btn:link,
153 | .btn:visited,
154 | input[type="submit"] {
155 | display: inline-block;
156 | padding: 10px 30px;
157 | font-size: inherit;
158 | font-weight: 300;
159 | text-decoration: none;
160 | border-radius: 200px;
161 | border: 2px solid #e67e22;
162 | /* Transition the background, color, border by 0.2s*/
163 | transition: background-color 0.2s, border 0.2s, color 0.2s;
164 | }
165 |
166 | .btn-full:link,
167 | .btn-full:visited,
168 | input[type="submit"] {
169 | background-color: #e67e22;
170 | color: #fff;
171 | margin-right: 15px;
172 | }
173 |
174 | .btn-ghost:link,
175 | .btn-ghost:visited { color: #e67e22; }
176 |
177 |
178 | /* Button Hover state, and clicked state
179 | ========================================*/
180 | .btn:hover,
181 | .btn:active,
182 | input[type="submit"]:hover,
183 | input[type="submit"]:active { background-color: #cf6d17; }
184 |
185 | .btn-full:hover,
186 | .btn-full:active,
187 | input[type="submit"]:hover,
188 | input[type="submit"]:active { border: 2px solid #cf6d17; }
189 |
190 | .btn-ghost:hover,
191 | .btn-ghost:active {
192 | color: #fff;
193 | border: 2px solid #cf6d17;
194 | }
195 |
196 |
197 | /* Header styles
198 | ==========================================*/
199 | header {
200 | background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(img/hero-min.jpg);
201 | background-size: cover;
202 | background-position: center;
203 | height: 100vh; /* 100% of the viewport's height */
204 | background-attachment: fixed;
205 | }
206 |
207 | .hero-text {
208 | position: absolute; /* We want to vertically & horizontally center content */
209 | width: 1140px;
210 | top: 50%;
211 | left: 50%;
212 | -webkit-transform: translate(-50%, -50%);
213 | transform: translate(-50%, -50%); /* Centers content half of width and height up to the top and left*/
214 | }
215 |
216 |
217 | /* Logo & Navigation section
218 | ================================*/
219 | .logo{
220 | height:100px;
221 | width: auto;
222 | float: left;
223 | margin-top: 20px;
224 | }
225 |
226 | .logo-black {
227 | height: 50px;
228 | width: auto;
229 | float: left;
230 | margin: 5px 0;
231 | display: none; /* Not visible in normal state*/
232 | }
233 |
234 | .main-nav {
235 | float: right;
236 | list-style: none;
237 | margin-top: 55px;
238 | }
239 |
240 | .main-nav li {
241 | display: inline-block;
242 | margin-left: 40px;
243 | }
244 |
245 | .main-nav li a:link,
246 | .main-nav li a:visited {
247 | padding: 8px 0;
248 | color: white;
249 | text-decoration: none;
250 | text-transform: uppercase;
251 | font-size: 0.9em;
252 | border-bottom: 2px solid transparent; /* We want border exist before hover, but not yet visible.*/
253 | transition: border-bottom 0.2s;
254 | }
255 |
256 |
257 | .main-nav li a:hover,
258 | .main-nav li a:active {
259 | border-bottom: 2px solid #e67e22; /* Visible on hover */
260 | }
261 |
262 | /* Sticky Navigation
263 | =============================== */
264 | .sticky {
265 | position: fixed;
266 | top: 0;
267 | left: 0;
268 | width: 100%;
269 | background-color: rgba(255, 255, 255, 0.98);
270 | box-shadow: 0 1px 2px #efefef;
271 | z-index: 10;
272 | transition: all 0.5s ease;
273 | }
274 |
275 | .sticky .main-nav {
276 | margin-top: 18px;
277 | }
278 |
279 | .sticky .main-nav li a:link,
280 | .sticky .main-nav li a:visited {
281 | padding: 16px 0;
282 | color: #555;
283 | }
284 |
285 | .sticky .logo {
286 | display: none;
287 | }
288 | .sticky .logo-black {
289 | display: block;
290 | }
291 |
292 | /* Mobile Navigation
293 | =================================*/
294 | .mobile-nav-icon {
295 | float: right;
296 | margin-top: 30px;
297 | cursor: pointer;
298 | display: none;
299 | }
300 |
301 | .mobile-nav-icon i{
302 | font-size: 2em;
303 | color: #fff;
304 | }
305 |
306 |
307 | /* Meals showcase section
308 | =================================*/
309 | .meals-showcase {
310 | list-style: none;
311 | width: 100%; /* Will fill 100% of browser, not of the 1140px, no row class*/
312 |
313 | }
314 |
315 | .meals-showcase li {
316 | display: block;
317 | float: left;
318 | width: 25%; /* 4 images per row/ ul element */
319 |
320 | }
321 |
322 | .meal-photo {
323 | width: 100%; /* redundant line, only bottom code needed...try removing after add transitions */
324 | overflow: hidden; /* Keeps images contained */
325 | background-color: #000; /* for darker img */
326 | }
327 |
328 | .meal-photo img {
329 | opacity: 0.7; /* can you use linear gradient instead? try this with header too. */
330 | width: 100%;
331 | height: auto;
332 | -webkit-transform: scale(1.16);
333 | transform: scale(1.16); /* 116% bigger i think... */
334 | transition: -webkit-transform 0.5s, opacity 0.5s;
335 | transition: transform 0.5s, opacity 0.5s;
336 | }
337 |
338 | .meal-photo img:hover {
339 | -webkit-transform: scale(1.1);
340 | transform: scale(1.1); /* back to normal*/
341 | opacity: 1; /* back to normal*/
342 | }
343 |
344 | .meals { padding: 0; }
345 |
346 |
347 | /* How it works section
348 | ====================================*/
349 | .steps {
350 | background-color: #f4f4f4;
351 | }
352 |
353 | .steps-box:first-child {
354 | text-align: right; /* Works for inline-block elements */
355 | padding-right: 3%; /* layout will be fluid */
356 | margin-top: 30px;
357 | }
358 |
359 | .steps-box:last-child {
360 | padding-left: 3%;
361 | margin-top: 70px;
362 | }
363 |
364 | .app-screen { width: 40%; }
365 |
366 | .works-steps { margin-bottom: 50px; }
367 |
368 | .works-steps:last-of-type{ /* Gives step 3 more margin bottom unlike sibling elements with 50px */
369 | margin-bottom: 80px;
370 | }
371 |
372 | .works-steps div {
373 | color: #e67e22;
374 | border: 2px solid #e67e22;
375 | display: inline-block; /* will not enforce line break */
376 | border-radius: 50%;
377 | height: 55px;
378 | width: 55px;
379 | text-align: center;
380 | padding: 5px;
381 | float: left; /* We used clearfix on meals section to fix issue of clearing floats */
382 | font-size: 1.5em;
383 | margin-right: 25px;
384 | }
385 |
386 | .btn-app:link,
387 | .btn-app:visited { border: 0; }
388 |
389 | .btn-app img {
390 | height: 50px;
391 | width: auto;
392 | margin-right: 15px;
393 | }
394 |
395 | /* Cities section
396 | ===========================================*/
397 | .box img {
398 | width: 100%;
399 | height: auto;
400 | margin-bottom: 15px;
401 | }
402 |
403 | .city-features { margin-bottom: 5px; }
404 |
405 | /* Testimonials section
406 | ===========================================*/
407 | .testimonials {
408 | background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(img/back-customers-min.jpg);
409 | background-size: cover;
410 | color: #fff;
411 | background-attachment: fixed; /* Parallax effect bitches */
412 | }
413 |
414 | blockquote {
415 | padding: 2%;
416 | font-style: italic;
417 | line-height: 1.5;
418 | position: relative;
419 | margin-top: 30px;
420 | }
421 |
422 | blockquote:before {
423 | content: "\201C";
424 | font-size: 4.5em;
425 | display: block;
426 | position: absolute;
427 | top: -60px;
428 | left: -3px;
429 | }
430 |
431 | cite {
432 | font-size: 0.9em;
433 | font-style: normal;
434 | font-weight: 300;
435 | margin-top: 25px;
436 | display: block;
437 | }
438 |
439 | cite img {
440 | height: 45px;
441 | border-radius: 50%;
442 | margin-right: 10px;
443 | vertical-align: middle;
444 | }
445 |
446 | /* Sign Up section
447 | ===========================================*/
448 | .plans { background-color: #f4f4f4; }
449 |
450 | .plan-box{
451 | background-color: #fff;
452 | border-radius: 5px;
453 | width: 90%;
454 | margin-left: 5%;
455 | margin-right: 5%;
456 | box-shadow: 0 2px 2px #e3e3e3; /* xVal, yVal, blur, color */
457 | }
458 |
459 | .plan-box div {
460 | padding: 15px;
461 | border-bottom: 1px solid #efefef;
462 | }
463 |
464 | .plan-price {
465 | font-size: 3em;
466 | margin-bottom: 10px;
467 | font-weight: 100;
468 | color: #e67e22;
469 | /*box-shadow: 0 2px 2px #e3e3e3;*/
470 | }
471 |
472 | .plan-price span {
473 | font-size: 1rem; /* root font weight */
474 | font-weight: 300;
475 | }
476 |
477 | .plan-price .plan-meal { font-size: 0.8em; }
478 |
479 | .planbox div:first-child {
480 | background-color: #fcfcfc;
481 | border-top-left-radius: 5px;
482 | border-top-right-radius: 5px;
483 | }
484 |
485 | .plan-box div:last-child {
486 | text-align: center;
487 | border-bottom: none;
488 | }
489 |
490 | .plan-box ul { list-style: none; }
491 |
492 | .plan-box ul li { padding: 5px 0; }
493 |
494 |
495 | /* Form section
496 | ===========================================*/
497 | .section-form {
498 | width: 90%;
499 | margin: 0 auto;
500 | }
501 |
502 | input[placeholder],
503 | input[type="submit"], /* had to repeat this style for some reason, works now */
504 | textarea[placeholder],
505 | select
506 | {
507 | font-family: inherit;
508 | font-size: 0.9em;
509 | font-weight: 300;
510 | }
511 |
512 | input[type="text"],
513 | input[type="email"],
514 | select,
515 | textarea {
516 | width: 100%;
517 | padding: 7px;
518 | border-radius: 3px;
519 | border: 1px solid #ccc;
520 | }
521 |
522 | textarea { height: 100px; }
523 |
524 | input[type="checkbox"] { margin: 10px 5px 10px 0; }
525 |
526 | .map-box {
527 | width: 100%;
528 | height: 530px;
529 | position: relative;
530 | }
531 |
532 |
533 | .map {
534 | width: 100%;
535 | height: 530px;
536 | position: relative;
537 | z-index: 0;
538 | }
539 |
540 | .form-box {
541 | position: absolute;
542 | width: 50%;
543 | top: 0;
544 | right: 0;
545 | background-color: rgba(255, 255, 255, 0.8);
546 | z-index: 2;
547 | height: 530px;
548 | padding: 40px 20px 0 30px;
549 | }
550 |
551 | .form-box h2 {
552 | font-size: 1.6em;
553 | }
554 | /* Footer section
555 | ===========================================*/
556 |
557 | footer {
558 | background-color: #333;
559 | padding: 30px;
560 | font-size: 0.8em;
561 | }
562 |
563 | footer-nav {
564 | list-style: none;
565 | float: left;
566 | }
567 |
568 | .social-icons {
569 | list-style: none;
570 | float: right;
571 | }
572 |
573 | .footer-nav li,
574 | .social-icons li {
575 | display: inline-block;
576 | margin-right: 20px;
577 | }
578 |
579 | footer-nav li:last-child,
580 | social-icons li:last-child {
581 | margin-right: 0;
582 | }
583 |
584 | .footer-nav li a:link,
585 | .footer-nav li a:visited,
586 | .social-icons li a:link,
587 | .social-icons li a:visited {
588 | text-decoration: none;
589 | border: 0;
590 | color: #888;
591 | /*transition: color 0.2s;*/
592 | }
593 |
594 | .footer-nav li a:hover,
595 | .footer-nav li a:active {
596 | color: #ddd;
597 | }
598 |
599 | footer p {
600 | color: #888;
601 | text-align: center;
602 | margin-top: 20px;
603 | }
604 | .social-icons li a:link,
605 | .social-icons li a:visited {
606 | font-size: 1.6em;
607 | }
608 |
609 | .ion-social-facebook,
610 | .ion-social-twitter,
611 | .ion-social-instagram,
612 | .ion-social-googleplus {
613 | transition: color 0.2s;
614 | }
615 |
616 | .ion-social-facebook:hover{
617 | color: #3b5998;
618 | }
619 |
620 | .ion-social-twitter:hover{
621 | color: #00aced;
622 | }
623 | .ion-social-instagram:hover{
624 | color: #517fa4;
625 | }
626 | .ion-social-googleplus:hover{
627 | color: #dd4b39;
628 | }
629 | .social-icons li a:hover,
630 | .social-icons li a:active {
631 |
632 | }
633 |
634 |
635 | /* Animations
636 | ===================================*/
637 | .js--wp-1,
638 | .js--wp-2,
639 | .js--wp-3 {
640 | opacity: 0;
641 | -webkit-animation-duration: 1s;
642 | animation-duration: 1s;
643 | }
644 |
645 | .js--wp-1.animated,
646 | .js--wp-2.animated,
647 | .js--wp-3.animated {
648 | opacity: 1;
649 | }
650 |
651 | .js--wp-4 {
652 | -webkit-animation-duration: 1s;
653 | animation-duration: 1s;
654 | }
655 |
--------------------------------------------------------------------------------
/resources/img/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/1.jpg
--------------------------------------------------------------------------------
/resources/img/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/2.jpg
--------------------------------------------------------------------------------
/resources/img/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/3.jpg
--------------------------------------------------------------------------------
/resources/img/4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/4.jpg
--------------------------------------------------------------------------------
/resources/img/5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/5.jpg
--------------------------------------------------------------------------------
/resources/img/6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/6.jpg
--------------------------------------------------------------------------------
/resources/img/7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/7.jpg
--------------------------------------------------------------------------------
/resources/img/8.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/8.jpg
--------------------------------------------------------------------------------
/resources/img/app-iPhone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/app-iPhone.png
--------------------------------------------------------------------------------
/resources/img/back-customers.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/back-customers.jpg
--------------------------------------------------------------------------------
/resources/img/berlin.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/berlin.jpg
--------------------------------------------------------------------------------
/resources/img/customer-1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/customer-1.jpg
--------------------------------------------------------------------------------
/resources/img/customer-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/customer-2.jpg
--------------------------------------------------------------------------------
/resources/img/customer-3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/customer-3.jpg
--------------------------------------------------------------------------------
/resources/img/download-app-android.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/download-app-android.png
--------------------------------------------------------------------------------
/resources/img/download-app.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
9 |
11 |
12 |
13 |
18 |
20 |
21 |
22 |
23 |
26 |
32 |
38 |
45 |
48 |
54 |
57 |
63 |
64 |
65 |
66 |
71 |
77 |
81 |
85 |
86 |
92 |
98 |
104 |
110 |
114 |
117 |
120 |
126 |
127 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/resources/img/hero.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/hero.jpg
--------------------------------------------------------------------------------
/resources/img/lisbon-3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/lisbon-3.jpg
--------------------------------------------------------------------------------
/resources/img/logo-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/logo-white.png
--------------------------------------------------------------------------------
/resources/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/logo.png
--------------------------------------------------------------------------------
/resources/img/london.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/london.jpg
--------------------------------------------------------------------------------
/resources/img/san-francisco.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/resources/img/san-francisco.jpg
--------------------------------------------------------------------------------
/resources/js/scripts.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function(){
2 |
3 | /* Add/ Remove Sticky Navigation */
4 |
5 | $('.js--features').waypoint(function(direction){
6 | if (direction == "down") {
7 | $('nav').addClass('sticky');
8 | } else {
9 | $('nav').removeClass('sticky');
10 | }
11 | }, {
12 | offset: '60px;'
13 | });
14 |
15 | /* Scroll to section on click event */
16 |
17 | $('.js--scroll-to-plans').click(function(){
18 | $('html, body').animate({scrollTop: $('.js--section-plans').offset().top}, 1500);
19 | });
20 |
21 | $('.js--scroll-to-start').click(function(){
22 | $('html, body').animate({scrollTop: $('.js--features').offset().top}, 1000);
23 | });
24 |
25 | /* CSS Tricks: Smooth Scrolling to elements with ID */
26 |
27 | $(function() {
28 | $('a[href*=#]:not([href=#])').click(function() {
29 | if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
30 | var target = $(this.hash);
31 | target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
32 | if (target.length) {
33 | $('html,body').animate({
34 | scrollTop: target.offset().top
35 | }, 1000);
36 | return false;
37 | }
38 | }
39 | });
40 | });
41 |
42 | /* Add Animations on scroll */
43 |
44 | $('.js--wp-1').waypoint(function(direction) {
45 | $('.js--wp-1').addClass('animated fadeIn');
46 | }, {
47 | offset: '50%'
48 | });
49 | $('.js--wp-2').waypoint(function(direction) {
50 | $('.js--wp-2').addClass('animated fadeInUp');
51 | }, {
52 | offset: '50%'
53 | });
54 | $('.js--wp-3').waypoint(function(direction) {
55 | $('.js--wp-3').addClass('animated fadeIn');
56 | }, {
57 | offset: '60%'
58 | });
59 | $('.js--wp-4').waypoint(function(direction) {
60 | $('.js--wp-4').addClass('animated pulse');
61 | }, {
62 | offset: '50%'
63 | });
64 |
65 | /* Mobile Navigation */
66 | $('.js--nav-icon').click(function() {
67 | var nav = $('.js--main-nav');
68 | var icon = $('.js--nav-icon i')
69 |
70 | nav.slideToggle(200);
71 | /* switch from hamburger to cross icon */
72 | if (icon.hasClass('ion-navicon-round')){
73 | icon.addClass('ion-close-round');
74 | icon.removeClass('ion-navicon-round');
75 | } else {
76 | icon.addClass('ion-navicon-round');
77 | icon.removeClass('ion-close-round');
78 | }
79 | });
80 |
81 | /* gmaps.js: Google Maps plugin */
82 | var map = new GMaps({
83 | div: '.map',
84 | lat: 40.0047528,
85 | lng: -75.0,
86 | zoom: 12
87 | });
88 |
89 | map.addMarker({
90 | lat: 40.0047528,
91 | lng: -75.1180329,
92 | title: 'Philadelphia',
93 | infoWindow: {
94 | content: 'Our Philadelphia HQ
'
95 | }
96 | });
97 | });
98 |
99 |
100 |
101 |
102 |
103 |
--------------------------------------------------------------------------------
/vendors/css/grid.css:
--------------------------------------------------------------------------------
1 |
2 | /* SECTIONS ============================================================================= */
3 |
4 | .section {
5 | clear: both;
6 | padding: 0px;
7 | margin: 0px;
8 | }
9 |
10 | /* GROUPING ============================================================================= */
11 |
12 | .row {
13 | zoom: 1; /* For IE 6/7 (trigger hasLayout) */
14 | }
15 |
16 | .row:before,
17 | .row:after {
18 | content:"";
19 | display:table;
20 | }
21 | .row:after {
22 | clear:both;
23 | }
24 |
25 | /* GRID COLUMN SETUP ==================================================================== */
26 |
27 | .col {
28 | display: block;
29 | float:left;
30 | margin: 1% 0 1% 1.6%;
31 | }
32 |
33 | .col:first-child { margin-left: 0; } /* all browsers except IE6 and lower */
34 |
35 |
36 | /* REMOVE MARGINS AS ALL GO FULL WIDTH AT 480 PIXELS */
37 |
38 | @media only screen and (max-width: 480px) {
39 | .col {
40 | /*margin: 1% 0 1% 0%;*/
41 | margin: 0;
42 | }
43 | }
44 |
45 |
46 | /* GRID OF TWO ============================================================================= */
47 |
48 |
49 | .span-2-of-2 {
50 | width: 100%;
51 | }
52 |
53 | .span-1-of-2 {
54 | width: 49.2%;
55 | }
56 |
57 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */
58 |
59 | @media only screen and (max-width: 480px) {
60 | .span-2-of-2 {
61 | width: 100%;
62 | }
63 | .span-1-of-2 {
64 | width: 100%;
65 | }
66 | }
67 |
68 |
69 | /* GRID OF THREE ============================================================================= */
70 |
71 |
72 | .span-3-of-3 {
73 | width: 100%;
74 | }
75 |
76 | .span-2-of-3 {
77 | width: 66.13%;
78 | }
79 |
80 | .span-1-of-3 {
81 | width: 32.26%;
82 | }
83 |
84 |
85 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */
86 |
87 | @media only screen and (max-width: 480px) {
88 | .span-3-of-3 {
89 | width: 100%;
90 | }
91 | .span-2-of-3 {
92 | width: 100%;
93 | }
94 | .span-1-of-3 {
95 | width: 100%;
96 | }
97 | }
98 |
99 | /* GRID OF FOUR ============================================================================= */
100 |
101 |
102 | .span-4-of-4 {
103 | width: 100%;
104 | }
105 |
106 | .span-3-of-4 {
107 | width: 74.6%;
108 | }
109 |
110 | .span-2-of-4 {
111 | width: 49.2%;
112 | }
113 |
114 | .span-1-of-4 {
115 | width: 23.8%;
116 | }
117 |
118 |
119 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */
120 |
121 | @media only screen and (max-width: 480px) {
122 | .span-4-of-4 {
123 | width: 100%;
124 | }
125 | .span-3-of-4 {
126 | width: 100%;
127 | }
128 | .span-2-of-4 {
129 | width: 100%;
130 | }
131 | .span-1-of-4 {
132 | width: 100%;
133 | }
134 | }
135 |
136 |
137 | /* GRID OF FIVE ============================================================================= */
138 |
139 |
140 | .span-5-of-5 {
141 | width: 100%;
142 | }
143 |
144 | .span-4-of-5 {
145 | width: 79.68%;
146 | }
147 |
148 | .span-3-of-5 {
149 | width: 59.36%;
150 | }
151 |
152 | .span-2-of-5 {
153 | width: 39.04%;
154 | }
155 |
156 | .span-1-of-5 {
157 | width: 18.72%;
158 | }
159 |
160 |
161 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */
162 |
163 | @media only screen and (max-width: 480px) {
164 | .span-5-of-5 {
165 | width: 100%;
166 | }
167 | .span-4-of-5 {
168 | width: 100%;
169 | }
170 | .span-3-of-5 {
171 | width: 100%;
172 | }
173 | .span-2-of-5 {
174 | width: 100%;
175 | }
176 | .span-1-of-5 {
177 | width: 100%;
178 | }
179 | }
180 |
181 |
182 | /* GRID OF SIX ============================================================================= */
183 |
184 |
185 | .span-6-of-6 {
186 | width: 100%;
187 | }
188 |
189 | .span-5-of-6 {
190 | width: 83.06%;
191 | }
192 |
193 | .span-4-of-6 {
194 | width: 66.13%;
195 | }
196 |
197 | .span-3-of-6 {
198 | width: 49.2%;
199 | }
200 |
201 | .span-2-of-6 {
202 | width: 32.26%;
203 | }
204 |
205 | .span-1-of-6 {
206 | width: 15.33%;
207 | }
208 |
209 |
210 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */
211 |
212 | @media only screen and (max-width: 480px) {
213 | .span-6-of-6 {
214 | width: 100%;
215 | }
216 | .span-5-of-6 {
217 | width: 100%;
218 | }
219 | .span-4-of-6 {
220 | width: 100%;
221 | }
222 | .span-3-of-6 {
223 | width: 100%;
224 | }
225 | .span-2-of-6 {
226 | width: 100%;
227 | }
228 | .span-1-of-6 {
229 | width: 100%;
230 | }
231 | }
232 |
233 |
234 |
235 | /* GRID OF SEVEN ============================================================================= */
236 |
237 |
238 | .span-7-of-7 {
239 | width: 100%;
240 | }
241 |
242 | .span-6-of-7 {
243 | width: 85.48%;
244 | }
245 |
246 | .span-5-of-7 {
247 | width: 70.97%;
248 | }
249 |
250 | .span-4-of-7 {
251 | width: 56.45%;
252 | }
253 |
254 | .span-3-of-7 {
255 | width: 41.94%;
256 | }
257 |
258 | .span-2-of-7 {
259 | width: 27.42%;
260 | }
261 |
262 | .span-1-of-7 {
263 | width: 12.91%;
264 | }
265 |
266 |
267 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */
268 |
269 | @media only screen and (max-width: 480px) {
270 | .span-7-of-7 {
271 | width: 100%;
272 | }
273 | .span-6-of-7 {
274 | width: 100%;
275 | }
276 | .span-5-of-7 {
277 | width: 100%;
278 | }
279 | .span-4-of-7 {
280 | width: 100%;
281 | }
282 | .span-3-of-7 {
283 | width: 100%;
284 | }
285 | .span-2-of-7 {
286 | width: 100%;
287 | }
288 | .span-1-of-7 {
289 | width: 100%;
290 | }
291 | }
292 |
293 |
294 | /* GRID OF EIGHT ============================================================================= */
295 |
296 |
297 | .span-8-of-8 {
298 | width: 100%;
299 | }
300 |
301 | .span-7-of-8 {
302 | width: 87.3%;
303 | }
304 |
305 | .span-6-of-8 {
306 | width: 74.6%;
307 | }
308 |
309 | .span-5-of-8 {
310 | width: 61.9%;
311 | }
312 |
313 | .span-4-of-8 {
314 | width: 49.2%;
315 | }
316 |
317 | .span-3-of-8 {
318 | width: 36.5%;
319 | }
320 |
321 | .span-2-of-8 {
322 | width: 23.8%;
323 | }
324 |
325 | .span-1-of-8 {
326 | width: 11.1%;
327 | }
328 |
329 |
330 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */
331 |
332 | @media only screen and (max-width: 480px) {
333 | .span-8-of-8 {
334 | width: 100%;
335 | }
336 | .span-7-of-8 {
337 | width: 100%;
338 | }
339 | .span-6-of-8 {
340 | width: 100%;
341 | }
342 | .span-5-of-8 {
343 | width: 100%;
344 | }
345 | .span-4-of-8 {
346 | width: 100%;
347 | }
348 | .span-3-of-8 {
349 | width: 100%;
350 | }
351 | .span-2-of-8 {
352 | width: 100%;
353 | }
354 | .span-1-of-8 {
355 | width: 100%;
356 | }
357 | }
358 |
359 |
360 | /* GRID OF NINE ============================================================================= */
361 |
362 |
363 | .span-9-of-9 {
364 | width: 100%;
365 | }
366 |
367 | .span-8-of-9 {
368 | width: 88.71%;
369 | }
370 |
371 | .span-7-of-9 {
372 | width: 77.42%;
373 | }
374 |
375 | .span-6-of-9 {
376 | width: 66.13%;
377 | }
378 |
379 | .span-5-of-9 {
380 | width: 54.84%;
381 | }
382 |
383 | .span-4-of-9 {
384 | width: 43.55%;
385 | }
386 |
387 | .span-3-of-9 {
388 | width: 32.26%;
389 | }
390 |
391 | .span-2-of-9 {
392 | width: 20.97%;
393 | }
394 |
395 | .span-1-of-9 {
396 | width: 9.68%;
397 | }
398 |
399 |
400 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */
401 |
402 | @media only screen and (max-width: 480px) {
403 | .span-9-of-9 {
404 | width: 100%;
405 | }
406 | .span-8-of-9 {
407 | width: 100%;
408 | }
409 | .span-7-of-9 {
410 | width: 100%;
411 | }
412 | .span-6-of-9 {
413 | width: 100%;
414 | }
415 | .span-5-of-9 {
416 | width: 100%;
417 | }
418 | .span-4-of-9 {
419 | width: 100%;
420 | }
421 | .span-3-of-9 {
422 | width: 100%;
423 | }
424 | .span-2-of-9 {
425 | width: 100%;
426 | }
427 | .span-1-of-9 {
428 | width: 100%;
429 | }
430 | }
431 |
432 |
433 | /* GRID OF TEN ============================================================================= */
434 |
435 |
436 | .span-10-of-10 {
437 | width: 100%;
438 | }
439 |
440 | .span-9-of-10 {
441 | width: 89.84%;
442 | }
443 |
444 | .span-8-of-10 {
445 | width: 79.68%;
446 | }
447 |
448 | .span-7-of-10 {
449 | width: 69.52%;
450 | }
451 |
452 | .span-6-of-10 {
453 | width: 59.36%;
454 | }
455 |
456 | .span-5-of-10 {
457 | width: 49.2%;
458 | }
459 |
460 | .span-4-of-10 {
461 | width: 39.04%;
462 | }
463 |
464 | .span-3-of-10 {
465 | width: 28.88%;
466 | }
467 |
468 | .span-2-of-10 {
469 | width: 18.72%;
470 | }
471 |
472 | .span-1-of-10 {
473 | width: 8.56%;
474 | }
475 |
476 |
477 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */
478 |
479 | @media only screen and (max-width: 480px) {
480 | .span-10-of-10 {
481 | width: 100%;
482 | }
483 | .span-9-of-10 {
484 | width: 100%;
485 | }
486 | .span-8-of-10 {
487 | width: 100%;
488 | }
489 | .span-7-of-10 {
490 | width: 100%;
491 | }
492 | .span-6-of-10 {
493 | width: 100%;
494 | }
495 | .span-5-of-10 {
496 | width: 100%;
497 | }
498 | .span-4-of-10 {
499 | width: 100%;
500 | }
501 | .span-3-of-10 {
502 | width: 100%;
503 | }
504 | .span-2-of-10 {
505 | width: 100%;
506 | }
507 | .span-1-of-10 {
508 | width: 100%;
509 | }
510 | }
511 |
512 |
513 | /* GRID OF ELEVEN ============================================================================= */
514 |
515 | .span-11-of-11 {
516 | width: 100%;
517 | }
518 |
519 | .span-10-of-11 {
520 | width: 90.76%;
521 | }
522 |
523 | .span-9-of-11 {
524 | width: 81.52%;
525 | }
526 |
527 | .span-8-of-11 {
528 | width: 72.29%;
529 | }
530 |
531 | .span-7-of-11 {
532 | width: 63.05%;
533 | }
534 |
535 | .span-6-of-11 {
536 | width: 53.81%;
537 | }
538 |
539 | .span-5-of-11 {
540 | width: 44.58%;
541 | }
542 |
543 | .span-4-of-11 {
544 | width: 35.34%;
545 | }
546 |
547 | .span-3-of-11 {
548 | width: 26.1%;
549 | }
550 |
551 | .span-2-of-11 {
552 | width: 16.87%;
553 | }
554 |
555 | .span-1-of-11 {
556 | width: 7.63%;
557 | }
558 |
559 |
560 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */
561 |
562 | @media only screen and (max-width: 480px) {
563 | .span-11-of-11 {
564 | width: 100%;
565 | }
566 | .span-10-of-11 {
567 | width: 100%;
568 | }
569 | .span-9-of-11 {
570 | width: 100%;
571 | }
572 | .span-8-of-11 {
573 | width: 100%;
574 | }
575 | .span-7-of-11 {
576 | width: 100%;
577 | }
578 | .span-6-of-11 {
579 | width: 100%;
580 | }
581 | .span-5-of-11 {
582 | width: 100%;
583 | }
584 | .span-4-of-11 {
585 | width: 100%;
586 | }
587 | .span-3-of-11 {
588 | width: 100%;
589 | }
590 | .span-2-of-11 {
591 | width: 100%;
592 | }
593 | .span-1-of-11 {
594 | width: 100%;
595 | }
596 | }
597 |
598 |
599 | /* GRID OF TWELVE ============================================================================= */
600 |
601 | .span-12-of-12 {
602 | width: 100%;
603 | }
604 |
605 | .span-11-of-12 {
606 | width: 91.53%;
607 | }
608 |
609 | .span-10-of-12 {
610 | width: 83.06%;
611 | }
612 |
613 | .span-9-of-12 {
614 | width: 74.6%;
615 | }
616 |
617 | .span-8-of-12 {
618 | width: 66.13%;
619 | }
620 |
621 | .span-7-of-12 {
622 | width: 57.66%;
623 | }
624 |
625 | .span-6-of-12 {
626 | width: 49.2%;
627 | }
628 |
629 | .span-5-of-12 {
630 | width: 40.73%;
631 | }
632 |
633 | .span-4-of-12 {
634 | width: 32.26%;
635 | }
636 |
637 | .span-3-of-12 {
638 | width: 23.8%;
639 | }
640 |
641 | .span-2-of-12 {
642 | width: 15.33%;
643 | }
644 |
645 | .span-1-of-12 {
646 | width: 6.86%;
647 | }
648 |
649 |
650 | /* GO FULL WIDTH AT LESS THAN 480 PIXELS */
651 |
652 | @media only screen and (max-width: 480px) {
653 | .span-12-of-12 {
654 | width: 100%;
655 | }
656 | .span-11-of-12 {
657 | width: 100%;
658 | }
659 | .span-10-of-12 {
660 | width: 100%;
661 | }
662 | .span-9-of-12 {
663 | width: 100%;
664 | }
665 | .span-8-of-12 {
666 | width: 100%;
667 | }
668 | .span-7-of-12 {
669 | width: 100%;
670 | }
671 | .span-6-of-12 {
672 | width: 100%;
673 | }
674 | .span-5-of-12 {
675 | width: 100%;
676 | }
677 | .span-4-of-12 {
678 | width: 100%;
679 | }
680 | .span-3-of-12 {
681 | width: 100%;
682 | }
683 | .span-2-of-12 {
684 | width: 100%;
685 | }
686 | .span-1-of-12 {
687 | width: 100%;
688 | }
689 | }
--------------------------------------------------------------------------------
/vendors/css/ionicons.min.css:
--------------------------------------------------------------------------------
1 | @charset "UTF-8";/*!
2 | Ionicons, v2.0.0
3 | Created by Ben Sperry for the Ionic Framework, http://ionicons.com/
4 | https://twitter.com/benjsperry https://twitter.com/ionicframework
5 | MIT License: https://github.com/driftyco/ionicons
6 |
7 | Android-style icons originally built by Google’s
8 | Material Design Icons: https://github.com/google/material-design-icons
9 | used under CC BY http://creativecommons.org/licenses/by/4.0/
10 | Modified icons to fit ionicon’s grid from original.
11 | */@font-face{font-family:"Ionicons";src:url("../fonts/ionicons.eot?v=2.0.0");src:url("../fonts/ionicons.eot?v=2.0.0#iefix") format("embedded-opentype"),url("../fonts/ionicons.ttf?v=2.0.0") format("truetype"),url("../fonts/ionicons.woff?v=2.0.0") format("woff"),url("../fonts/ionicons.svg?v=2.0.0#Ionicons") format("svg");font-weight:normal;font-style:normal}.ion,.ionicons,.ion-alert:before,.ion-alert-circled:before,.ion-android-add:before,.ion-android-add-circle:before,.ion-android-alarm-clock:before,.ion-android-alert:before,.ion-android-apps:before,.ion-android-archive:before,.ion-android-arrow-back:before,.ion-android-arrow-down:before,.ion-android-arrow-dropdown:before,.ion-android-arrow-dropdown-circle:before,.ion-android-arrow-dropleft:before,.ion-android-arrow-dropleft-circle:before,.ion-android-arrow-dropright:before,.ion-android-arrow-dropright-circle:before,.ion-android-arrow-dropup:before,.ion-android-arrow-dropup-circle:before,.ion-android-arrow-forward:before,.ion-android-arrow-up:before,.ion-android-attach:before,.ion-android-bar:before,.ion-android-bicycle:before,.ion-android-boat:before,.ion-android-bookmark:before,.ion-android-bulb:before,.ion-android-bus:before,.ion-android-calendar:before,.ion-android-call:before,.ion-android-camera:before,.ion-android-cancel:before,.ion-android-car:before,.ion-android-cart:before,.ion-android-chat:before,.ion-android-checkbox:before,.ion-android-checkbox-blank:before,.ion-android-checkbox-outline:before,.ion-android-checkbox-outline-blank:before,.ion-android-checkmark-circle:before,.ion-android-clipboard:before,.ion-android-close:before,.ion-android-cloud:before,.ion-android-cloud-circle:before,.ion-android-cloud-done:before,.ion-android-cloud-outline:before,.ion-android-color-palette:before,.ion-android-compass:before,.ion-android-contact:before,.ion-android-contacts:before,.ion-android-contract:before,.ion-android-create:before,.ion-android-delete:before,.ion-android-desktop:before,.ion-android-document:before,.ion-android-done:before,.ion-android-done-all:before,.ion-android-download:before,.ion-android-drafts:before,.ion-android-exit:before,.ion-android-expand:before,.ion-android-favorite:before,.ion-android-favorite-outline:before,.ion-android-film:before,.ion-android-folder:before,.ion-android-folder-open:before,.ion-android-funnel:before,.ion-android-globe:before,.ion-android-hand:before,.ion-android-hangout:before,.ion-android-happy:before,.ion-android-home:before,.ion-android-image:before,.ion-android-laptop:before,.ion-android-list:before,.ion-android-locate:before,.ion-android-lock:before,.ion-android-mail:before,.ion-android-map:before,.ion-android-menu:before,.ion-android-microphone:before,.ion-android-microphone-off:before,.ion-android-more-horizontal:before,.ion-android-more-vertical:before,.ion-android-navigate:before,.ion-android-notifications:before,.ion-android-notifications-none:before,.ion-android-notifications-off:before,.ion-android-open:before,.ion-android-options:before,.ion-android-people:before,.ion-android-person:before,.ion-android-person-add:before,.ion-android-phone-landscape:before,.ion-android-phone-portrait:before,.ion-android-pin:before,.ion-android-plane:before,.ion-android-playstore:before,.ion-android-print:before,.ion-android-radio-button-off:before,.ion-android-radio-button-on:before,.ion-android-refresh:before,.ion-android-remove:before,.ion-android-remove-circle:before,.ion-android-restaurant:before,.ion-android-sad:before,.ion-android-search:before,.ion-android-send:before,.ion-android-settings:before,.ion-android-share:before,.ion-android-share-alt:before,.ion-android-star:before,.ion-android-star-half:before,.ion-android-star-outline:before,.ion-android-stopwatch:before,.ion-android-subway:before,.ion-android-sunny:before,.ion-android-sync:before,.ion-android-textsms:before,.ion-android-time:before,.ion-android-train:before,.ion-android-unlock:before,.ion-android-upload:before,.ion-android-volume-down:before,.ion-android-volume-mute:before,.ion-android-volume-off:before,.ion-android-volume-up:before,.ion-android-walk:before,.ion-android-warning:before,.ion-android-watch:before,.ion-android-wifi:before,.ion-aperture:before,.ion-archive:before,.ion-arrow-down-a:before,.ion-arrow-down-b:before,.ion-arrow-down-c:before,.ion-arrow-expand:before,.ion-arrow-graph-down-left:before,.ion-arrow-graph-down-right:before,.ion-arrow-graph-up-left:before,.ion-arrow-graph-up-right:before,.ion-arrow-left-a:before,.ion-arrow-left-b:before,.ion-arrow-left-c:before,.ion-arrow-move:before,.ion-arrow-resize:before,.ion-arrow-return-left:before,.ion-arrow-return-right:before,.ion-arrow-right-a:before,.ion-arrow-right-b:before,.ion-arrow-right-c:before,.ion-arrow-shrink:before,.ion-arrow-swap:before,.ion-arrow-up-a:before,.ion-arrow-up-b:before,.ion-arrow-up-c:before,.ion-asterisk:before,.ion-at:before,.ion-backspace:before,.ion-backspace-outline:before,.ion-bag:before,.ion-battery-charging:before,.ion-battery-empty:before,.ion-battery-full:before,.ion-battery-half:before,.ion-battery-low:before,.ion-beaker:before,.ion-beer:before,.ion-bluetooth:before,.ion-bonfire:before,.ion-bookmark:before,.ion-bowtie:before,.ion-briefcase:before,.ion-bug:before,.ion-calculator:before,.ion-calendar:before,.ion-camera:before,.ion-card:before,.ion-cash:before,.ion-chatbox:before,.ion-chatbox-working:before,.ion-chatboxes:before,.ion-chatbubble:before,.ion-chatbubble-working:before,.ion-chatbubbles:before,.ion-checkmark:before,.ion-checkmark-circled:before,.ion-checkmark-round:before,.ion-chevron-down:before,.ion-chevron-left:before,.ion-chevron-right:before,.ion-chevron-up:before,.ion-clipboard:before,.ion-clock:before,.ion-close:before,.ion-close-circled:before,.ion-close-round:before,.ion-closed-captioning:before,.ion-cloud:before,.ion-code:before,.ion-code-download:before,.ion-code-working:before,.ion-coffee:before,.ion-compass:before,.ion-compose:before,.ion-connection-bars:before,.ion-contrast:before,.ion-crop:before,.ion-cube:before,.ion-disc:before,.ion-document:before,.ion-document-text:before,.ion-drag:before,.ion-earth:before,.ion-easel:before,.ion-edit:before,.ion-egg:before,.ion-eject:before,.ion-email:before,.ion-email-unread:before,.ion-erlenmeyer-flask:before,.ion-erlenmeyer-flask-bubbles:before,.ion-eye:before,.ion-eye-disabled:before,.ion-female:before,.ion-filing:before,.ion-film-marker:before,.ion-fireball:before,.ion-flag:before,.ion-flame:before,.ion-flash:before,.ion-flash-off:before,.ion-folder:before,.ion-fork:before,.ion-fork-repo:before,.ion-forward:before,.ion-funnel:before,.ion-gear-a:before,.ion-gear-b:before,.ion-grid:before,.ion-hammer:before,.ion-happy:before,.ion-happy-outline:before,.ion-headphone:before,.ion-heart:before,.ion-heart-broken:before,.ion-help:before,.ion-help-buoy:before,.ion-help-circled:before,.ion-home:before,.ion-icecream:before,.ion-image:before,.ion-images:before,.ion-information:before,.ion-information-circled:before,.ion-ionic:before,.ion-ios-alarm:before,.ion-ios-alarm-outline:before,.ion-ios-albums:before,.ion-ios-albums-outline:before,.ion-ios-americanfootball:before,.ion-ios-americanfootball-outline:before,.ion-ios-analytics:before,.ion-ios-analytics-outline:before,.ion-ios-arrow-back:before,.ion-ios-arrow-down:before,.ion-ios-arrow-forward:before,.ion-ios-arrow-left:before,.ion-ios-arrow-right:before,.ion-ios-arrow-thin-down:before,.ion-ios-arrow-thin-left:before,.ion-ios-arrow-thin-right:before,.ion-ios-arrow-thin-up:before,.ion-ios-arrow-up:before,.ion-ios-at:before,.ion-ios-at-outline:before,.ion-ios-barcode:before,.ion-ios-barcode-outline:before,.ion-ios-baseball:before,.ion-ios-baseball-outline:before,.ion-ios-basketball:before,.ion-ios-basketball-outline:before,.ion-ios-bell:before,.ion-ios-bell-outline:before,.ion-ios-body:before,.ion-ios-body-outline:before,.ion-ios-bolt:before,.ion-ios-bolt-outline:before,.ion-ios-book:before,.ion-ios-book-outline:before,.ion-ios-bookmarks:before,.ion-ios-bookmarks-outline:before,.ion-ios-box:before,.ion-ios-box-outline:before,.ion-ios-briefcase:before,.ion-ios-briefcase-outline:before,.ion-ios-browsers:before,.ion-ios-browsers-outline:before,.ion-ios-calculator:before,.ion-ios-calculator-outline:before,.ion-ios-calendar:before,.ion-ios-calendar-outline:before,.ion-ios-camera:before,.ion-ios-camera-outline:before,.ion-ios-cart:before,.ion-ios-cart-outline:before,.ion-ios-chatboxes:before,.ion-ios-chatboxes-outline:before,.ion-ios-chatbubble:before,.ion-ios-chatbubble-outline:before,.ion-ios-checkmark:before,.ion-ios-checkmark-empty:before,.ion-ios-checkmark-outline:before,.ion-ios-circle-filled:before,.ion-ios-circle-outline:before,.ion-ios-clock:before,.ion-ios-clock-outline:before,.ion-ios-close:before,.ion-ios-close-empty:before,.ion-ios-close-outline:before,.ion-ios-cloud:before,.ion-ios-cloud-download:before,.ion-ios-cloud-download-outline:before,.ion-ios-cloud-outline:before,.ion-ios-cloud-upload:before,.ion-ios-cloud-upload-outline:before,.ion-ios-cloudy:before,.ion-ios-cloudy-night:before,.ion-ios-cloudy-night-outline:before,.ion-ios-cloudy-outline:before,.ion-ios-cog:before,.ion-ios-cog-outline:before,.ion-ios-color-filter:before,.ion-ios-color-filter-outline:before,.ion-ios-color-wand:before,.ion-ios-color-wand-outline:before,.ion-ios-compose:before,.ion-ios-compose-outline:before,.ion-ios-contact:before,.ion-ios-contact-outline:before,.ion-ios-copy:before,.ion-ios-copy-outline:before,.ion-ios-crop:before,.ion-ios-crop-strong:before,.ion-ios-download:before,.ion-ios-download-outline:before,.ion-ios-drag:before,.ion-ios-email:before,.ion-ios-email-outline:before,.ion-ios-eye:before,.ion-ios-eye-outline:before,.ion-ios-fastforward:before,.ion-ios-fastforward-outline:before,.ion-ios-filing:before,.ion-ios-filing-outline:before,.ion-ios-film:before,.ion-ios-film-outline:before,.ion-ios-flag:before,.ion-ios-flag-outline:before,.ion-ios-flame:before,.ion-ios-flame-outline:before,.ion-ios-flask:before,.ion-ios-flask-outline:before,.ion-ios-flower:before,.ion-ios-flower-outline:before,.ion-ios-folder:before,.ion-ios-folder-outline:before,.ion-ios-football:before,.ion-ios-football-outline:before,.ion-ios-game-controller-a:before,.ion-ios-game-controller-a-outline:before,.ion-ios-game-controller-b:before,.ion-ios-game-controller-b-outline:before,.ion-ios-gear:before,.ion-ios-gear-outline:before,.ion-ios-glasses:before,.ion-ios-glasses-outline:before,.ion-ios-grid-view:before,.ion-ios-grid-view-outline:before,.ion-ios-heart:before,.ion-ios-heart-outline:before,.ion-ios-help:before,.ion-ios-help-empty:before,.ion-ios-help-outline:before,.ion-ios-home:before,.ion-ios-home-outline:before,.ion-ios-infinite:before,.ion-ios-infinite-outline:before,.ion-ios-information:before,.ion-ios-information-empty:before,.ion-ios-information-outline:before,.ion-ios-ionic-outline:before,.ion-ios-keypad:before,.ion-ios-keypad-outline:before,.ion-ios-lightbulb:before,.ion-ios-lightbulb-outline:before,.ion-ios-list:before,.ion-ios-list-outline:before,.ion-ios-location:before,.ion-ios-location-outline:before,.ion-ios-locked:before,.ion-ios-locked-outline:before,.ion-ios-loop:before,.ion-ios-loop-strong:before,.ion-ios-medical:before,.ion-ios-medical-outline:before,.ion-ios-medkit:before,.ion-ios-medkit-outline:before,.ion-ios-mic:before,.ion-ios-mic-off:before,.ion-ios-mic-outline:before,.ion-ios-minus:before,.ion-ios-minus-empty:before,.ion-ios-minus-outline:before,.ion-ios-monitor:before,.ion-ios-monitor-outline:before,.ion-ios-moon:before,.ion-ios-moon-outline:before,.ion-ios-more:before,.ion-ios-more-outline:before,.ion-ios-musical-note:before,.ion-ios-musical-notes:before,.ion-ios-navigate:before,.ion-ios-navigate-outline:before,.ion-ios-nutrition:before,.ion-ios-nutrition-outline:before,.ion-ios-paper:before,.ion-ios-paper-outline:before,.ion-ios-paperplane:before,.ion-ios-paperplane-outline:before,.ion-ios-partlysunny:before,.ion-ios-partlysunny-outline:before,.ion-ios-pause:before,.ion-ios-pause-outline:before,.ion-ios-paw:before,.ion-ios-paw-outline:before,.ion-ios-people:before,.ion-ios-people-outline:before,.ion-ios-person:before,.ion-ios-person-outline:before,.ion-ios-personadd:before,.ion-ios-personadd-outline:before,.ion-ios-photos:before,.ion-ios-photos-outline:before,.ion-ios-pie:before,.ion-ios-pie-outline:before,.ion-ios-pint:before,.ion-ios-pint-outline:before,.ion-ios-play:before,.ion-ios-play-outline:before,.ion-ios-plus:before,.ion-ios-plus-empty:before,.ion-ios-plus-outline:before,.ion-ios-pricetag:before,.ion-ios-pricetag-outline:before,.ion-ios-pricetags:before,.ion-ios-pricetags-outline:before,.ion-ios-printer:before,.ion-ios-printer-outline:before,.ion-ios-pulse:before,.ion-ios-pulse-strong:before,.ion-ios-rainy:before,.ion-ios-rainy-outline:before,.ion-ios-recording:before,.ion-ios-recording-outline:before,.ion-ios-redo:before,.ion-ios-redo-outline:before,.ion-ios-refresh:before,.ion-ios-refresh-empty:before,.ion-ios-refresh-outline:before,.ion-ios-reload:before,.ion-ios-reverse-camera:before,.ion-ios-reverse-camera-outline:before,.ion-ios-rewind:before,.ion-ios-rewind-outline:before,.ion-ios-rose:before,.ion-ios-rose-outline:before,.ion-ios-search:before,.ion-ios-search-strong:before,.ion-ios-settings:before,.ion-ios-settings-strong:before,.ion-ios-shuffle:before,.ion-ios-shuffle-strong:before,.ion-ios-skipbackward:before,.ion-ios-skipbackward-outline:before,.ion-ios-skipforward:before,.ion-ios-skipforward-outline:before,.ion-ios-snowy:before,.ion-ios-speedometer:before,.ion-ios-speedometer-outline:before,.ion-ios-star:before,.ion-ios-star-half:before,.ion-ios-star-outline:before,.ion-ios-stopwatch:before,.ion-ios-stopwatch-outline:before,.ion-ios-sunny:before,.ion-ios-sunny-outline:before,.ion-ios-telephone:before,.ion-ios-telephone-outline:before,.ion-ios-tennisball:before,.ion-ios-tennisball-outline:before,.ion-ios-thunderstorm:before,.ion-ios-thunderstorm-outline:before,.ion-ios-time:before,.ion-ios-time-outline:before,.ion-ios-timer:before,.ion-ios-timer-outline:before,.ion-ios-toggle:before,.ion-ios-toggle-outline:before,.ion-ios-trash:before,.ion-ios-trash-outline:before,.ion-ios-undo:before,.ion-ios-undo-outline:before,.ion-ios-unlocked:before,.ion-ios-unlocked-outline:before,.ion-ios-upload:before,.ion-ios-upload-outline:before,.ion-ios-videocam:before,.ion-ios-videocam-outline:before,.ion-ios-volume-high:before,.ion-ios-volume-low:before,.ion-ios-wineglass:before,.ion-ios-wineglass-outline:before,.ion-ios-world:before,.ion-ios-world-outline:before,.ion-ipad:before,.ion-iphone:before,.ion-ipod:before,.ion-jet:before,.ion-key:before,.ion-knife:before,.ion-laptop:before,.ion-leaf:before,.ion-levels:before,.ion-lightbulb:before,.ion-link:before,.ion-load-a:before,.ion-load-b:before,.ion-load-c:before,.ion-load-d:before,.ion-location:before,.ion-lock-combination:before,.ion-locked:before,.ion-log-in:before,.ion-log-out:before,.ion-loop:before,.ion-magnet:before,.ion-male:before,.ion-man:before,.ion-map:before,.ion-medkit:before,.ion-merge:before,.ion-mic-a:before,.ion-mic-b:before,.ion-mic-c:before,.ion-minus:before,.ion-minus-circled:before,.ion-minus-round:before,.ion-model-s:before,.ion-monitor:before,.ion-more:before,.ion-mouse:before,.ion-music-note:before,.ion-navicon:before,.ion-navicon-round:before,.ion-navigate:before,.ion-network:before,.ion-no-smoking:before,.ion-nuclear:before,.ion-outlet:before,.ion-paintbrush:before,.ion-paintbucket:before,.ion-paper-airplane:before,.ion-paperclip:before,.ion-pause:before,.ion-person:before,.ion-person-add:before,.ion-person-stalker:before,.ion-pie-graph:before,.ion-pin:before,.ion-pinpoint:before,.ion-pizza:before,.ion-plane:before,.ion-planet:before,.ion-play:before,.ion-playstation:before,.ion-plus:before,.ion-plus-circled:before,.ion-plus-round:before,.ion-podium:before,.ion-pound:before,.ion-power:before,.ion-pricetag:before,.ion-pricetags:before,.ion-printer:before,.ion-pull-request:before,.ion-qr-scanner:before,.ion-quote:before,.ion-radio-waves:before,.ion-record:before,.ion-refresh:before,.ion-reply:before,.ion-reply-all:before,.ion-ribbon-a:before,.ion-ribbon-b:before,.ion-sad:before,.ion-sad-outline:before,.ion-scissors:before,.ion-search:before,.ion-settings:before,.ion-share:before,.ion-shuffle:before,.ion-skip-backward:before,.ion-skip-forward:before,.ion-social-android:before,.ion-social-android-outline:before,.ion-social-angular:before,.ion-social-angular-outline:before,.ion-social-apple:before,.ion-social-apple-outline:before,.ion-social-bitcoin:before,.ion-social-bitcoin-outline:before,.ion-social-buffer:before,.ion-social-buffer-outline:before,.ion-social-chrome:before,.ion-social-chrome-outline:before,.ion-social-codepen:before,.ion-social-codepen-outline:before,.ion-social-css3:before,.ion-social-css3-outline:before,.ion-social-designernews:before,.ion-social-designernews-outline:before,.ion-social-dribbble:before,.ion-social-dribbble-outline:before,.ion-social-dropbox:before,.ion-social-dropbox-outline:before,.ion-social-euro:before,.ion-social-euro-outline:before,.ion-social-facebook:before,.ion-social-facebook-outline:before,.ion-social-foursquare:before,.ion-social-foursquare-outline:before,.ion-social-freebsd-devil:before,.ion-social-github:before,.ion-social-github-outline:before,.ion-social-google:before,.ion-social-google-outline:before,.ion-social-googleplus:before,.ion-social-googleplus-outline:before,.ion-social-hackernews:before,.ion-social-hackernews-outline:before,.ion-social-html5:before,.ion-social-html5-outline:before,.ion-social-instagram:before,.ion-social-instagram-outline:before,.ion-social-javascript:before,.ion-social-javascript-outline:before,.ion-social-linkedin:before,.ion-social-linkedin-outline:before,.ion-social-markdown:before,.ion-social-nodejs:before,.ion-social-octocat:before,.ion-social-pinterest:before,.ion-social-pinterest-outline:before,.ion-social-python:before,.ion-social-reddit:before,.ion-social-reddit-outline:before,.ion-social-rss:before,.ion-social-rss-outline:before,.ion-social-sass:before,.ion-social-skype:before,.ion-social-skype-outline:before,.ion-social-snapchat:before,.ion-social-snapchat-outline:before,.ion-social-tumblr:before,.ion-social-tumblr-outline:before,.ion-social-tux:before,.ion-social-twitch:before,.ion-social-twitch-outline:before,.ion-social-twitter:before,.ion-social-twitter-outline:before,.ion-social-usd:before,.ion-social-usd-outline:before,.ion-social-vimeo:before,.ion-social-vimeo-outline:before,.ion-social-whatsapp:before,.ion-social-whatsapp-outline:before,.ion-social-windows:before,.ion-social-windows-outline:before,.ion-social-wordpress:before,.ion-social-wordpress-outline:before,.ion-social-yahoo:before,.ion-social-yahoo-outline:before,.ion-social-yen:before,.ion-social-yen-outline:before,.ion-social-youtube:before,.ion-social-youtube-outline:before,.ion-soup-can:before,.ion-soup-can-outline:before,.ion-speakerphone:before,.ion-speedometer:before,.ion-spoon:before,.ion-star:before,.ion-stats-bars:before,.ion-steam:before,.ion-stop:before,.ion-thermometer:before,.ion-thumbsdown:before,.ion-thumbsup:before,.ion-toggle:before,.ion-toggle-filled:before,.ion-transgender:before,.ion-trash-a:before,.ion-trash-b:before,.ion-trophy:before,.ion-tshirt:before,.ion-tshirt-outline:before,.ion-umbrella:before,.ion-university:before,.ion-unlocked:before,.ion-upload:before,.ion-usb:before,.ion-videocamera:before,.ion-volume-high:before,.ion-volume-low:before,.ion-volume-medium:before,.ion-volume-mute:before,.ion-wand:before,.ion-waterdrop:before,.ion-wifi:before,.ion-wineglass:before,.ion-woman:before,.ion-wrench:before,.ion-xbox:before{display:inline-block;font-family:"Ionicons";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;text-rendering:auto;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ion-alert:before{content:"\f101"}.ion-alert-circled:before{content:"\f100"}.ion-android-add:before{content:"\f2c7"}.ion-android-add-circle:before{content:"\f359"}.ion-android-alarm-clock:before{content:"\f35a"}.ion-android-alert:before{content:"\f35b"}.ion-android-apps:before{content:"\f35c"}.ion-android-archive:before{content:"\f2c9"}.ion-android-arrow-back:before{content:"\f2ca"}.ion-android-arrow-down:before{content:"\f35d"}.ion-android-arrow-dropdown:before{content:"\f35f"}.ion-android-arrow-dropdown-circle:before{content:"\f35e"}.ion-android-arrow-dropleft:before{content:"\f361"}.ion-android-arrow-dropleft-circle:before{content:"\f360"}.ion-android-arrow-dropright:before{content:"\f363"}.ion-android-arrow-dropright-circle:before{content:"\f362"}.ion-android-arrow-dropup:before{content:"\f365"}.ion-android-arrow-dropup-circle:before{content:"\f364"}.ion-android-arrow-forward:before{content:"\f30f"}.ion-android-arrow-up:before{content:"\f366"}.ion-android-attach:before{content:"\f367"}.ion-android-bar:before{content:"\f368"}.ion-android-bicycle:before{content:"\f369"}.ion-android-boat:before{content:"\f36a"}.ion-android-bookmark:before{content:"\f36b"}.ion-android-bulb:before{content:"\f36c"}.ion-android-bus:before{content:"\f36d"}.ion-android-calendar:before{content:"\f2d1"}.ion-android-call:before{content:"\f2d2"}.ion-android-camera:before{content:"\f2d3"}.ion-android-cancel:before{content:"\f36e"}.ion-android-car:before{content:"\f36f"}.ion-android-cart:before{content:"\f370"}.ion-android-chat:before{content:"\f2d4"}.ion-android-checkbox:before{content:"\f374"}.ion-android-checkbox-blank:before{content:"\f371"}.ion-android-checkbox-outline:before{content:"\f373"}.ion-android-checkbox-outline-blank:before{content:"\f372"}.ion-android-checkmark-circle:before{content:"\f375"}.ion-android-clipboard:before{content:"\f376"}.ion-android-close:before{content:"\f2d7"}.ion-android-cloud:before{content:"\f37a"}.ion-android-cloud-circle:before{content:"\f377"}.ion-android-cloud-done:before{content:"\f378"}.ion-android-cloud-outline:before{content:"\f379"}.ion-android-color-palette:before{content:"\f37b"}.ion-android-compass:before{content:"\f37c"}.ion-android-contact:before{content:"\f2d8"}.ion-android-contacts:before{content:"\f2d9"}.ion-android-contract:before{content:"\f37d"}.ion-android-create:before{content:"\f37e"}.ion-android-delete:before{content:"\f37f"}.ion-android-desktop:before{content:"\f380"}.ion-android-document:before{content:"\f381"}.ion-android-done:before{content:"\f383"}.ion-android-done-all:before{content:"\f382"}.ion-android-download:before{content:"\f2dd"}.ion-android-drafts:before{content:"\f384"}.ion-android-exit:before{content:"\f385"}.ion-android-expand:before{content:"\f386"}.ion-android-favorite:before{content:"\f388"}.ion-android-favorite-outline:before{content:"\f387"}.ion-android-film:before{content:"\f389"}.ion-android-folder:before{content:"\f2e0"}.ion-android-folder-open:before{content:"\f38a"}.ion-android-funnel:before{content:"\f38b"}.ion-android-globe:before{content:"\f38c"}.ion-android-hand:before{content:"\f2e3"}.ion-android-hangout:before{content:"\f38d"}.ion-android-happy:before{content:"\f38e"}.ion-android-home:before{content:"\f38f"}.ion-android-image:before{content:"\f2e4"}.ion-android-laptop:before{content:"\f390"}.ion-android-list:before{content:"\f391"}.ion-android-locate:before{content:"\f2e9"}.ion-android-lock:before{content:"\f392"}.ion-android-mail:before{content:"\f2eb"}.ion-android-map:before{content:"\f393"}.ion-android-menu:before{content:"\f394"}.ion-android-microphone:before{content:"\f2ec"}.ion-android-microphone-off:before{content:"\f395"}.ion-android-more-horizontal:before{content:"\f396"}.ion-android-more-vertical:before{content:"\f397"}.ion-android-navigate:before{content:"\f398"}.ion-android-notifications:before{content:"\f39b"}.ion-android-notifications-none:before{content:"\f399"}.ion-android-notifications-off:before{content:"\f39a"}.ion-android-open:before{content:"\f39c"}.ion-android-options:before{content:"\f39d"}.ion-android-people:before{content:"\f39e"}.ion-android-person:before{content:"\f3a0"}.ion-android-person-add:before{content:"\f39f"}.ion-android-phone-landscape:before{content:"\f3a1"}.ion-android-phone-portrait:before{content:"\f3a2"}.ion-android-pin:before{content:"\f3a3"}.ion-android-plane:before{content:"\f3a4"}.ion-android-playstore:before{content:"\f2f0"}.ion-android-print:before{content:"\f3a5"}.ion-android-radio-button-off:before{content:"\f3a6"}.ion-android-radio-button-on:before{content:"\f3a7"}.ion-android-refresh:before{content:"\f3a8"}.ion-android-remove:before{content:"\f2f4"}.ion-android-remove-circle:before{content:"\f3a9"}.ion-android-restaurant:before{content:"\f3aa"}.ion-android-sad:before{content:"\f3ab"}.ion-android-search:before{content:"\f2f5"}.ion-android-send:before{content:"\f2f6"}.ion-android-settings:before{content:"\f2f7"}.ion-android-share:before{content:"\f2f8"}.ion-android-share-alt:before{content:"\f3ac"}.ion-android-star:before{content:"\f2fc"}.ion-android-star-half:before{content:"\f3ad"}.ion-android-star-outline:before{content:"\f3ae"}.ion-android-stopwatch:before{content:"\f2fd"}.ion-android-subway:before{content:"\f3af"}.ion-android-sunny:before{content:"\f3b0"}.ion-android-sync:before{content:"\f3b1"}.ion-android-textsms:before{content:"\f3b2"}.ion-android-time:before{content:"\f3b3"}.ion-android-train:before{content:"\f3b4"}.ion-android-unlock:before{content:"\f3b5"}.ion-android-upload:before{content:"\f3b6"}.ion-android-volume-down:before{content:"\f3b7"}.ion-android-volume-mute:before{content:"\f3b8"}.ion-android-volume-off:before{content:"\f3b9"}.ion-android-volume-up:before{content:"\f3ba"}.ion-android-walk:before{content:"\f3bb"}.ion-android-warning:before{content:"\f3bc"}.ion-android-watch:before{content:"\f3bd"}.ion-android-wifi:before{content:"\f305"}.ion-aperture:before{content:"\f313"}.ion-archive:before{content:"\f102"}.ion-arrow-down-a:before{content:"\f103"}.ion-arrow-down-b:before{content:"\f104"}.ion-arrow-down-c:before{content:"\f105"}.ion-arrow-expand:before{content:"\f25e"}.ion-arrow-graph-down-left:before{content:"\f25f"}.ion-arrow-graph-down-right:before{content:"\f260"}.ion-arrow-graph-up-left:before{content:"\f261"}.ion-arrow-graph-up-right:before{content:"\f262"}.ion-arrow-left-a:before{content:"\f106"}.ion-arrow-left-b:before{content:"\f107"}.ion-arrow-left-c:before{content:"\f108"}.ion-arrow-move:before{content:"\f263"}.ion-arrow-resize:before{content:"\f264"}.ion-arrow-return-left:before{content:"\f265"}.ion-arrow-return-right:before{content:"\f266"}.ion-arrow-right-a:before{content:"\f109"}.ion-arrow-right-b:before{content:"\f10a"}.ion-arrow-right-c:before{content:"\f10b"}.ion-arrow-shrink:before{content:"\f267"}.ion-arrow-swap:before{content:"\f268"}.ion-arrow-up-a:before{content:"\f10c"}.ion-arrow-up-b:before{content:"\f10d"}.ion-arrow-up-c:before{content:"\f10e"}.ion-asterisk:before{content:"\f314"}.ion-at:before{content:"\f10f"}.ion-backspace:before{content:"\f3bf"}.ion-backspace-outline:before{content:"\f3be"}.ion-bag:before{content:"\f110"}.ion-battery-charging:before{content:"\f111"}.ion-battery-empty:before{content:"\f112"}.ion-battery-full:before{content:"\f113"}.ion-battery-half:before{content:"\f114"}.ion-battery-low:before{content:"\f115"}.ion-beaker:before{content:"\f269"}.ion-beer:before{content:"\f26a"}.ion-bluetooth:before{content:"\f116"}.ion-bonfire:before{content:"\f315"}.ion-bookmark:before{content:"\f26b"}.ion-bowtie:before{content:"\f3c0"}.ion-briefcase:before{content:"\f26c"}.ion-bug:before{content:"\f2be"}.ion-calculator:before{content:"\f26d"}.ion-calendar:before{content:"\f117"}.ion-camera:before{content:"\f118"}.ion-card:before{content:"\f119"}.ion-cash:before{content:"\f316"}.ion-chatbox:before{content:"\f11b"}.ion-chatbox-working:before{content:"\f11a"}.ion-chatboxes:before{content:"\f11c"}.ion-chatbubble:before{content:"\f11e"}.ion-chatbubble-working:before{content:"\f11d"}.ion-chatbubbles:before{content:"\f11f"}.ion-checkmark:before{content:"\f122"}.ion-checkmark-circled:before{content:"\f120"}.ion-checkmark-round:before{content:"\f121"}.ion-chevron-down:before{content:"\f123"}.ion-chevron-left:before{content:"\f124"}.ion-chevron-right:before{content:"\f125"}.ion-chevron-up:before{content:"\f126"}.ion-clipboard:before{content:"\f127"}.ion-clock:before{content:"\f26e"}.ion-close:before{content:"\f12a"}.ion-close-circled:before{content:"\f128"}.ion-close-round:before{content:"\f129"}.ion-closed-captioning:before{content:"\f317"}.ion-cloud:before{content:"\f12b"}.ion-code:before{content:"\f271"}.ion-code-download:before{content:"\f26f"}.ion-code-working:before{content:"\f270"}.ion-coffee:before{content:"\f272"}.ion-compass:before{content:"\f273"}.ion-compose:before{content:"\f12c"}.ion-connection-bars:before{content:"\f274"}.ion-contrast:before{content:"\f275"}.ion-crop:before{content:"\f3c1"}.ion-cube:before{content:"\f318"}.ion-disc:before{content:"\f12d"}.ion-document:before{content:"\f12f"}.ion-document-text:before{content:"\f12e"}.ion-drag:before{content:"\f130"}.ion-earth:before{content:"\f276"}.ion-easel:before{content:"\f3c2"}.ion-edit:before{content:"\f2bf"}.ion-egg:before{content:"\f277"}.ion-eject:before{content:"\f131"}.ion-email:before{content:"\f132"}.ion-email-unread:before{content:"\f3c3"}.ion-erlenmeyer-flask:before{content:"\f3c5"}.ion-erlenmeyer-flask-bubbles:before{content:"\f3c4"}.ion-eye:before{content:"\f133"}.ion-eye-disabled:before{content:"\f306"}.ion-female:before{content:"\f278"}.ion-filing:before{content:"\f134"}.ion-film-marker:before{content:"\f135"}.ion-fireball:before{content:"\f319"}.ion-flag:before{content:"\f279"}.ion-flame:before{content:"\f31a"}.ion-flash:before{content:"\f137"}.ion-flash-off:before{content:"\f136"}.ion-folder:before{content:"\f139"}.ion-fork:before{content:"\f27a"}.ion-fork-repo:before{content:"\f2c0"}.ion-forward:before{content:"\f13a"}.ion-funnel:before{content:"\f31b"}.ion-gear-a:before{content:"\f13d"}.ion-gear-b:before{content:"\f13e"}.ion-grid:before{content:"\f13f"}.ion-hammer:before{content:"\f27b"}.ion-happy:before{content:"\f31c"}.ion-happy-outline:before{content:"\f3c6"}.ion-headphone:before{content:"\f140"}.ion-heart:before{content:"\f141"}.ion-heart-broken:before{content:"\f31d"}.ion-help:before{content:"\f143"}.ion-help-buoy:before{content:"\f27c"}.ion-help-circled:before{content:"\f142"}.ion-home:before{content:"\f144"}.ion-icecream:before{content:"\f27d"}.ion-image:before{content:"\f147"}.ion-images:before{content:"\f148"}.ion-information:before{content:"\f14a"}.ion-information-circled:before{content:"\f149"}.ion-ionic:before{content:"\f14b"}.ion-ios-alarm:before{content:"\f3c8"}.ion-ios-alarm-outline:before{content:"\f3c7"}.ion-ios-albums:before{content:"\f3ca"}.ion-ios-albums-outline:before{content:"\f3c9"}.ion-ios-americanfootball:before{content:"\f3cc"}.ion-ios-americanfootball-outline:before{content:"\f3cb"}.ion-ios-analytics:before{content:"\f3ce"}.ion-ios-analytics-outline:before{content:"\f3cd"}.ion-ios-arrow-back:before{content:"\f3cf"}.ion-ios-arrow-down:before{content:"\f3d0"}.ion-ios-arrow-forward:before{content:"\f3d1"}.ion-ios-arrow-left:before{content:"\f3d2"}.ion-ios-arrow-right:before{content:"\f3d3"}.ion-ios-arrow-thin-down:before{content:"\f3d4"}.ion-ios-arrow-thin-left:before{content:"\f3d5"}.ion-ios-arrow-thin-right:before{content:"\f3d6"}.ion-ios-arrow-thin-up:before{content:"\f3d7"}.ion-ios-arrow-up:before{content:"\f3d8"}.ion-ios-at:before{content:"\f3da"}.ion-ios-at-outline:before{content:"\f3d9"}.ion-ios-barcode:before{content:"\f3dc"}.ion-ios-barcode-outline:before{content:"\f3db"}.ion-ios-baseball:before{content:"\f3de"}.ion-ios-baseball-outline:before{content:"\f3dd"}.ion-ios-basketball:before{content:"\f3e0"}.ion-ios-basketball-outline:before{content:"\f3df"}.ion-ios-bell:before{content:"\f3e2"}.ion-ios-bell-outline:before{content:"\f3e1"}.ion-ios-body:before{content:"\f3e4"}.ion-ios-body-outline:before{content:"\f3e3"}.ion-ios-bolt:before{content:"\f3e6"}.ion-ios-bolt-outline:before{content:"\f3e5"}.ion-ios-book:before{content:"\f3e8"}.ion-ios-book-outline:before{content:"\f3e7"}.ion-ios-bookmarks:before{content:"\f3ea"}.ion-ios-bookmarks-outline:before{content:"\f3e9"}.ion-ios-box:before{content:"\f3ec"}.ion-ios-box-outline:before{content:"\f3eb"}.ion-ios-briefcase:before{content:"\f3ee"}.ion-ios-briefcase-outline:before{content:"\f3ed"}.ion-ios-browsers:before{content:"\f3f0"}.ion-ios-browsers-outline:before{content:"\f3ef"}.ion-ios-calculator:before{content:"\f3f2"}.ion-ios-calculator-outline:before{content:"\f3f1"}.ion-ios-calendar:before{content:"\f3f4"}.ion-ios-calendar-outline:before{content:"\f3f3"}.ion-ios-camera:before{content:"\f3f6"}.ion-ios-camera-outline:before{content:"\f3f5"}.ion-ios-cart:before{content:"\f3f8"}.ion-ios-cart-outline:before{content:"\f3f7"}.ion-ios-chatboxes:before{content:"\f3fa"}.ion-ios-chatboxes-outline:before{content:"\f3f9"}.ion-ios-chatbubble:before{content:"\f3fc"}.ion-ios-chatbubble-outline:before{content:"\f3fb"}.ion-ios-checkmark:before{content:"\f3ff"}.ion-ios-checkmark-empty:before{content:"\f3fd"}.ion-ios-checkmark-outline:before{content:"\f3fe"}.ion-ios-circle-filled:before{content:"\f400"}.ion-ios-circle-outline:before{content:"\f401"}.ion-ios-clock:before{content:"\f403"}.ion-ios-clock-outline:before{content:"\f402"}.ion-ios-close:before{content:"\f406"}.ion-ios-close-empty:before{content:"\f404"}.ion-ios-close-outline:before{content:"\f405"}.ion-ios-cloud:before{content:"\f40c"}.ion-ios-cloud-download:before{content:"\f408"}.ion-ios-cloud-download-outline:before{content:"\f407"}.ion-ios-cloud-outline:before{content:"\f409"}.ion-ios-cloud-upload:before{content:"\f40b"}.ion-ios-cloud-upload-outline:before{content:"\f40a"}.ion-ios-cloudy:before{content:"\f410"}.ion-ios-cloudy-night:before{content:"\f40e"}.ion-ios-cloudy-night-outline:before{content:"\f40d"}.ion-ios-cloudy-outline:before{content:"\f40f"}.ion-ios-cog:before{content:"\f412"}.ion-ios-cog-outline:before{content:"\f411"}.ion-ios-color-filter:before{content:"\f414"}.ion-ios-color-filter-outline:before{content:"\f413"}.ion-ios-color-wand:before{content:"\f416"}.ion-ios-color-wand-outline:before{content:"\f415"}.ion-ios-compose:before{content:"\f418"}.ion-ios-compose-outline:before{content:"\f417"}.ion-ios-contact:before{content:"\f41a"}.ion-ios-contact-outline:before{content:"\f419"}.ion-ios-copy:before{content:"\f41c"}.ion-ios-copy-outline:before{content:"\f41b"}.ion-ios-crop:before{content:"\f41e"}.ion-ios-crop-strong:before{content:"\f41d"}.ion-ios-download:before{content:"\f420"}.ion-ios-download-outline:before{content:"\f41f"}.ion-ios-drag:before{content:"\f421"}.ion-ios-email:before{content:"\f423"}.ion-ios-email-outline:before{content:"\f422"}.ion-ios-eye:before{content:"\f425"}.ion-ios-eye-outline:before{content:"\f424"}.ion-ios-fastforward:before{content:"\f427"}.ion-ios-fastforward-outline:before{content:"\f426"}.ion-ios-filing:before{content:"\f429"}.ion-ios-filing-outline:before{content:"\f428"}.ion-ios-film:before{content:"\f42b"}.ion-ios-film-outline:before{content:"\f42a"}.ion-ios-flag:before{content:"\f42d"}.ion-ios-flag-outline:before{content:"\f42c"}.ion-ios-flame:before{content:"\f42f"}.ion-ios-flame-outline:before{content:"\f42e"}.ion-ios-flask:before{content:"\f431"}.ion-ios-flask-outline:before{content:"\f430"}.ion-ios-flower:before{content:"\f433"}.ion-ios-flower-outline:before{content:"\f432"}.ion-ios-folder:before{content:"\f435"}.ion-ios-folder-outline:before{content:"\f434"}.ion-ios-football:before{content:"\f437"}.ion-ios-football-outline:before{content:"\f436"}.ion-ios-game-controller-a:before{content:"\f439"}.ion-ios-game-controller-a-outline:before{content:"\f438"}.ion-ios-game-controller-b:before{content:"\f43b"}.ion-ios-game-controller-b-outline:before{content:"\f43a"}.ion-ios-gear:before{content:"\f43d"}.ion-ios-gear-outline:before{content:"\f43c"}.ion-ios-glasses:before{content:"\f43f"}.ion-ios-glasses-outline:before{content:"\f43e"}.ion-ios-grid-view:before{content:"\f441"}.ion-ios-grid-view-outline:before{content:"\f440"}.ion-ios-heart:before{content:"\f443"}.ion-ios-heart-outline:before{content:"\f442"}.ion-ios-help:before{content:"\f446"}.ion-ios-help-empty:before{content:"\f444"}.ion-ios-help-outline:before{content:"\f445"}.ion-ios-home:before{content:"\f448"}.ion-ios-home-outline:before{content:"\f447"}.ion-ios-infinite:before{content:"\f44a"}.ion-ios-infinite-outline:before{content:"\f449"}.ion-ios-information:before{content:"\f44d"}.ion-ios-information-empty:before{content:"\f44b"}.ion-ios-information-outline:before{content:"\f44c"}.ion-ios-ionic-outline:before{content:"\f44e"}.ion-ios-keypad:before{content:"\f450"}.ion-ios-keypad-outline:before{content:"\f44f"}.ion-ios-lightbulb:before{content:"\f452"}.ion-ios-lightbulb-outline:before{content:"\f451"}.ion-ios-list:before{content:"\f454"}.ion-ios-list-outline:before{content:"\f453"}.ion-ios-location:before{content:"\f456"}.ion-ios-location-outline:before{content:"\f455"}.ion-ios-locked:before{content:"\f458"}.ion-ios-locked-outline:before{content:"\f457"}.ion-ios-loop:before{content:"\f45a"}.ion-ios-loop-strong:before{content:"\f459"}.ion-ios-medical:before{content:"\f45c"}.ion-ios-medical-outline:before{content:"\f45b"}.ion-ios-medkit:before{content:"\f45e"}.ion-ios-medkit-outline:before{content:"\f45d"}.ion-ios-mic:before{content:"\f461"}.ion-ios-mic-off:before{content:"\f45f"}.ion-ios-mic-outline:before{content:"\f460"}.ion-ios-minus:before{content:"\f464"}.ion-ios-minus-empty:before{content:"\f462"}.ion-ios-minus-outline:before{content:"\f463"}.ion-ios-monitor:before{content:"\f466"}.ion-ios-monitor-outline:before{content:"\f465"}.ion-ios-moon:before{content:"\f468"}.ion-ios-moon-outline:before{content:"\f467"}.ion-ios-more:before{content:"\f46a"}.ion-ios-more-outline:before{content:"\f469"}.ion-ios-musical-note:before{content:"\f46b"}.ion-ios-musical-notes:before{content:"\f46c"}.ion-ios-navigate:before{content:"\f46e"}.ion-ios-navigate-outline:before{content:"\f46d"}.ion-ios-nutrition:before{content:"\f470"}.ion-ios-nutrition-outline:before{content:"\f46f"}.ion-ios-paper:before{content:"\f472"}.ion-ios-paper-outline:before{content:"\f471"}.ion-ios-paperplane:before{content:"\f474"}.ion-ios-paperplane-outline:before{content:"\f473"}.ion-ios-partlysunny:before{content:"\f476"}.ion-ios-partlysunny-outline:before{content:"\f475"}.ion-ios-pause:before{content:"\f478"}.ion-ios-pause-outline:before{content:"\f477"}.ion-ios-paw:before{content:"\f47a"}.ion-ios-paw-outline:before{content:"\f479"}.ion-ios-people:before{content:"\f47c"}.ion-ios-people-outline:before{content:"\f47b"}.ion-ios-person:before{content:"\f47e"}.ion-ios-person-outline:before{content:"\f47d"}.ion-ios-personadd:before{content:"\f480"}.ion-ios-personadd-outline:before{content:"\f47f"}.ion-ios-photos:before{content:"\f482"}.ion-ios-photos-outline:before{content:"\f481"}.ion-ios-pie:before{content:"\f484"}.ion-ios-pie-outline:before{content:"\f483"}.ion-ios-pint:before{content:"\f486"}.ion-ios-pint-outline:before{content:"\f485"}.ion-ios-play:before{content:"\f488"}.ion-ios-play-outline:before{content:"\f487"}.ion-ios-plus:before{content:"\f48b"}.ion-ios-plus-empty:before{content:"\f489"}.ion-ios-plus-outline:before{content:"\f48a"}.ion-ios-pricetag:before{content:"\f48d"}.ion-ios-pricetag-outline:before{content:"\f48c"}.ion-ios-pricetags:before{content:"\f48f"}.ion-ios-pricetags-outline:before{content:"\f48e"}.ion-ios-printer:before{content:"\f491"}.ion-ios-printer-outline:before{content:"\f490"}.ion-ios-pulse:before{content:"\f493"}.ion-ios-pulse-strong:before{content:"\f492"}.ion-ios-rainy:before{content:"\f495"}.ion-ios-rainy-outline:before{content:"\f494"}.ion-ios-recording:before{content:"\f497"}.ion-ios-recording-outline:before{content:"\f496"}.ion-ios-redo:before{content:"\f499"}.ion-ios-redo-outline:before{content:"\f498"}.ion-ios-refresh:before{content:"\f49c"}.ion-ios-refresh-empty:before{content:"\f49a"}.ion-ios-refresh-outline:before{content:"\f49b"}.ion-ios-reload:before{content:"\f49d"}.ion-ios-reverse-camera:before{content:"\f49f"}.ion-ios-reverse-camera-outline:before{content:"\f49e"}.ion-ios-rewind:before{content:"\f4a1"}.ion-ios-rewind-outline:before{content:"\f4a0"}.ion-ios-rose:before{content:"\f4a3"}.ion-ios-rose-outline:before{content:"\f4a2"}.ion-ios-search:before{content:"\f4a5"}.ion-ios-search-strong:before{content:"\f4a4"}.ion-ios-settings:before{content:"\f4a7"}.ion-ios-settings-strong:before{content:"\f4a6"}.ion-ios-shuffle:before{content:"\f4a9"}.ion-ios-shuffle-strong:before{content:"\f4a8"}.ion-ios-skipbackward:before{content:"\f4ab"}.ion-ios-skipbackward-outline:before{content:"\f4aa"}.ion-ios-skipforward:before{content:"\f4ad"}.ion-ios-skipforward-outline:before{content:"\f4ac"}.ion-ios-snowy:before{content:"\f4ae"}.ion-ios-speedometer:before{content:"\f4b0"}.ion-ios-speedometer-outline:before{content:"\f4af"}.ion-ios-star:before{content:"\f4b3"}.ion-ios-star-half:before{content:"\f4b1"}.ion-ios-star-outline:before{content:"\f4b2"}.ion-ios-stopwatch:before{content:"\f4b5"}.ion-ios-stopwatch-outline:before{content:"\f4b4"}.ion-ios-sunny:before{content:"\f4b7"}.ion-ios-sunny-outline:before{content:"\f4b6"}.ion-ios-telephone:before{content:"\f4b9"}.ion-ios-telephone-outline:before{content:"\f4b8"}.ion-ios-tennisball:before{content:"\f4bb"}.ion-ios-tennisball-outline:before{content:"\f4ba"}.ion-ios-thunderstorm:before{content:"\f4bd"}.ion-ios-thunderstorm-outline:before{content:"\f4bc"}.ion-ios-time:before{content:"\f4bf"}.ion-ios-time-outline:before{content:"\f4be"}.ion-ios-timer:before{content:"\f4c1"}.ion-ios-timer-outline:before{content:"\f4c0"}.ion-ios-toggle:before{content:"\f4c3"}.ion-ios-toggle-outline:before{content:"\f4c2"}.ion-ios-trash:before{content:"\f4c5"}.ion-ios-trash-outline:before{content:"\f4c4"}.ion-ios-undo:before{content:"\f4c7"}.ion-ios-undo-outline:before{content:"\f4c6"}.ion-ios-unlocked:before{content:"\f4c9"}.ion-ios-unlocked-outline:before{content:"\f4c8"}.ion-ios-upload:before{content:"\f4cb"}.ion-ios-upload-outline:before{content:"\f4ca"}.ion-ios-videocam:before{content:"\f4cd"}.ion-ios-videocam-outline:before{content:"\f4cc"}.ion-ios-volume-high:before{content:"\f4ce"}.ion-ios-volume-low:before{content:"\f4cf"}.ion-ios-wineglass:before{content:"\f4d1"}.ion-ios-wineglass-outline:before{content:"\f4d0"}.ion-ios-world:before{content:"\f4d3"}.ion-ios-world-outline:before{content:"\f4d2"}.ion-ipad:before{content:"\f1f9"}.ion-iphone:before{content:"\f1fa"}.ion-ipod:before{content:"\f1fb"}.ion-jet:before{content:"\f295"}.ion-key:before{content:"\f296"}.ion-knife:before{content:"\f297"}.ion-laptop:before{content:"\f1fc"}.ion-leaf:before{content:"\f1fd"}.ion-levels:before{content:"\f298"}.ion-lightbulb:before{content:"\f299"}.ion-link:before{content:"\f1fe"}.ion-load-a:before{content:"\f29a"}.ion-load-b:before{content:"\f29b"}.ion-load-c:before{content:"\f29c"}.ion-load-d:before{content:"\f29d"}.ion-location:before{content:"\f1ff"}.ion-lock-combination:before{content:"\f4d4"}.ion-locked:before{content:"\f200"}.ion-log-in:before{content:"\f29e"}.ion-log-out:before{content:"\f29f"}.ion-loop:before{content:"\f201"}.ion-magnet:before{content:"\f2a0"}.ion-male:before{content:"\f2a1"}.ion-man:before{content:"\f202"}.ion-map:before{content:"\f203"}.ion-medkit:before{content:"\f2a2"}.ion-merge:before{content:"\f33f"}.ion-mic-a:before{content:"\f204"}.ion-mic-b:before{content:"\f205"}.ion-mic-c:before{content:"\f206"}.ion-minus:before{content:"\f209"}.ion-minus-circled:before{content:"\f207"}.ion-minus-round:before{content:"\f208"}.ion-model-s:before{content:"\f2c1"}.ion-monitor:before{content:"\f20a"}.ion-more:before{content:"\f20b"}.ion-mouse:before{content:"\f340"}.ion-music-note:before{content:"\f20c"}.ion-navicon:before{content:"\f20e"}.ion-navicon-round:before{content:"\f20d"}.ion-navigate:before{content:"\f2a3"}.ion-network:before{content:"\f341"}.ion-no-smoking:before{content:"\f2c2"}.ion-nuclear:before{content:"\f2a4"}.ion-outlet:before{content:"\f342"}.ion-paintbrush:before{content:"\f4d5"}.ion-paintbucket:before{content:"\f4d6"}.ion-paper-airplane:before{content:"\f2c3"}.ion-paperclip:before{content:"\f20f"}.ion-pause:before{content:"\f210"}.ion-person:before{content:"\f213"}.ion-person-add:before{content:"\f211"}.ion-person-stalker:before{content:"\f212"}.ion-pie-graph:before{content:"\f2a5"}.ion-pin:before{content:"\f2a6"}.ion-pinpoint:before{content:"\f2a7"}.ion-pizza:before{content:"\f2a8"}.ion-plane:before{content:"\f214"}.ion-planet:before{content:"\f343"}.ion-play:before{content:"\f215"}.ion-playstation:before{content:"\f30a"}.ion-plus:before{content:"\f218"}.ion-plus-circled:before{content:"\f216"}.ion-plus-round:before{content:"\f217"}.ion-podium:before{content:"\f344"}.ion-pound:before{content:"\f219"}.ion-power:before{content:"\f2a9"}.ion-pricetag:before{content:"\f2aa"}.ion-pricetags:before{content:"\f2ab"}.ion-printer:before{content:"\f21a"}.ion-pull-request:before{content:"\f345"}.ion-qr-scanner:before{content:"\f346"}.ion-quote:before{content:"\f347"}.ion-radio-waves:before{content:"\f2ac"}.ion-record:before{content:"\f21b"}.ion-refresh:before{content:"\f21c"}.ion-reply:before{content:"\f21e"}.ion-reply-all:before{content:"\f21d"}.ion-ribbon-a:before{content:"\f348"}.ion-ribbon-b:before{content:"\f349"}.ion-sad:before{content:"\f34a"}.ion-sad-outline:before{content:"\f4d7"}.ion-scissors:before{content:"\f34b"}.ion-search:before{content:"\f21f"}.ion-settings:before{content:"\f2ad"}.ion-share:before{content:"\f220"}.ion-shuffle:before{content:"\f221"}.ion-skip-backward:before{content:"\f222"}.ion-skip-forward:before{content:"\f223"}.ion-social-android:before{content:"\f225"}.ion-social-android-outline:before{content:"\f224"}.ion-social-angular:before{content:"\f4d9"}.ion-social-angular-outline:before{content:"\f4d8"}.ion-social-apple:before{content:"\f227"}.ion-social-apple-outline:before{content:"\f226"}.ion-social-bitcoin:before{content:"\f2af"}.ion-social-bitcoin-outline:before{content:"\f2ae"}.ion-social-buffer:before{content:"\f229"}.ion-social-buffer-outline:before{content:"\f228"}.ion-social-chrome:before{content:"\f4db"}.ion-social-chrome-outline:before{content:"\f4da"}.ion-social-codepen:before{content:"\f4dd"}.ion-social-codepen-outline:before{content:"\f4dc"}.ion-social-css3:before{content:"\f4df"}.ion-social-css3-outline:before{content:"\f4de"}.ion-social-designernews:before{content:"\f22b"}.ion-social-designernews-outline:before{content:"\f22a"}.ion-social-dribbble:before{content:"\f22d"}.ion-social-dribbble-outline:before{content:"\f22c"}.ion-social-dropbox:before{content:"\f22f"}.ion-social-dropbox-outline:before{content:"\f22e"}.ion-social-euro:before{content:"\f4e1"}.ion-social-euro-outline:before{content:"\f4e0"}.ion-social-facebook:before{content:"\f231"}.ion-social-facebook-outline:before{content:"\f230"}.ion-social-foursquare:before{content:"\f34d"}.ion-social-foursquare-outline:before{content:"\f34c"}.ion-social-freebsd-devil:before{content:"\f2c4"}.ion-social-github:before{content:"\f233"}.ion-social-github-outline:before{content:"\f232"}.ion-social-google:before{content:"\f34f"}.ion-social-google-outline:before{content:"\f34e"}.ion-social-googleplus:before{content:"\f235"}.ion-social-googleplus-outline:before{content:"\f234"}.ion-social-hackernews:before{content:"\f237"}.ion-social-hackernews-outline:before{content:"\f236"}.ion-social-html5:before{content:"\f4e3"}.ion-social-html5-outline:before{content:"\f4e2"}.ion-social-instagram:before{content:"\f351"}.ion-social-instagram-outline:before{content:"\f350"}.ion-social-javascript:before{content:"\f4e5"}.ion-social-javascript-outline:before{content:"\f4e4"}.ion-social-linkedin:before{content:"\f239"}.ion-social-linkedin-outline:before{content:"\f238"}.ion-social-markdown:before{content:"\f4e6"}.ion-social-nodejs:before{content:"\f4e7"}.ion-social-octocat:before{content:"\f4e8"}.ion-social-pinterest:before{content:"\f2b1"}.ion-social-pinterest-outline:before{content:"\f2b0"}.ion-social-python:before{content:"\f4e9"}.ion-social-reddit:before{content:"\f23b"}.ion-social-reddit-outline:before{content:"\f23a"}.ion-social-rss:before{content:"\f23d"}.ion-social-rss-outline:before{content:"\f23c"}.ion-social-sass:before{content:"\f4ea"}.ion-social-skype:before{content:"\f23f"}.ion-social-skype-outline:before{content:"\f23e"}.ion-social-snapchat:before{content:"\f4ec"}.ion-social-snapchat-outline:before{content:"\f4eb"}.ion-social-tumblr:before{content:"\f241"}.ion-social-tumblr-outline:before{content:"\f240"}.ion-social-tux:before{content:"\f2c5"}.ion-social-twitch:before{content:"\f4ee"}.ion-social-twitch-outline:before{content:"\f4ed"}.ion-social-twitter:before{content:"\f243"}.ion-social-twitter-outline:before{content:"\f242"}.ion-social-usd:before{content:"\f353"}.ion-social-usd-outline:before{content:"\f352"}.ion-social-vimeo:before{content:"\f245"}.ion-social-vimeo-outline:before{content:"\f244"}.ion-social-whatsapp:before{content:"\f4f0"}.ion-social-whatsapp-outline:before{content:"\f4ef"}.ion-social-windows:before{content:"\f247"}.ion-social-windows-outline:before{content:"\f246"}.ion-social-wordpress:before{content:"\f249"}.ion-social-wordpress-outline:before{content:"\f248"}.ion-social-yahoo:before{content:"\f24b"}.ion-social-yahoo-outline:before{content:"\f24a"}.ion-social-yen:before{content:"\f4f2"}.ion-social-yen-outline:before{content:"\f4f1"}.ion-social-youtube:before{content:"\f24d"}.ion-social-youtube-outline:before{content:"\f24c"}.ion-soup-can:before{content:"\f4f4"}.ion-soup-can-outline:before{content:"\f4f3"}.ion-speakerphone:before{content:"\f2b2"}.ion-speedometer:before{content:"\f2b3"}.ion-spoon:before{content:"\f2b4"}.ion-star:before{content:"\f24e"}.ion-stats-bars:before{content:"\f2b5"}.ion-steam:before{content:"\f30b"}.ion-stop:before{content:"\f24f"}.ion-thermometer:before{content:"\f2b6"}.ion-thumbsdown:before{content:"\f250"}.ion-thumbsup:before{content:"\f251"}.ion-toggle:before{content:"\f355"}.ion-toggle-filled:before{content:"\f354"}.ion-transgender:before{content:"\f4f5"}.ion-trash-a:before{content:"\f252"}.ion-trash-b:before{content:"\f253"}.ion-trophy:before{content:"\f356"}.ion-tshirt:before{content:"\f4f7"}.ion-tshirt-outline:before{content:"\f4f6"}.ion-umbrella:before{content:"\f2b7"}.ion-university:before{content:"\f357"}.ion-unlocked:before{content:"\f254"}.ion-upload:before{content:"\f255"}.ion-usb:before{content:"\f2b8"}.ion-videocamera:before{content:"\f256"}.ion-volume-high:before{content:"\f257"}.ion-volume-low:before{content:"\f258"}.ion-volume-medium:before{content:"\f259"}.ion-volume-mute:before{content:"\f25a"}.ion-wand:before{content:"\f358"}.ion-waterdrop:before{content:"\f25b"}.ion-wifi:before{content:"\f25c"}.ion-wineglass:before{content:"\f2b9"}.ion-woman:before{content:"\f25d"}.ion-wrench:before{content:"\f2ba"}.ion-xbox:before{content:"\f30c"}
12 |
--------------------------------------------------------------------------------
/vendors/css/node_modules/normalize.css/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | === HEAD
2 |
3 | === 3.0.3 (March 30, 2015)
4 |
5 | * Remove unnecessary vendor prefixes.
6 | * Add `main` property.
7 |
8 | === 3.0.2 (October 4, 2014)
9 |
10 | * Only alter `background-color` of links in IE 10.
11 | * Add `menu` element to HTML5 display definitions.
12 |
13 | === 3.0.1 (March 27, 2014)
14 |
15 | * Add package.json for npm support.
16 |
17 | === 3.0.0 (January 28, 2014)
18 |
19 | === 3.0.0-rc.1 (January 26, 2014)
20 |
21 | * Explicit tests for each normalization.
22 | * Fix i18n for `q` element.
23 | * Fix `pre` text formatting and overflow.
24 | * Fix vertical alignment of `progress`.
25 | * Address `button` overflow in IE 8/9/10.
26 | * Revert `textarea` alignment modification.
27 | * Fix number input button cursor in Chrome on OS X.
28 | * Remove `a:focus` outline normalization.
29 | * Fix `figure` margin normalization.
30 | * Normalize `optgroup`.
31 | * Remove default table cell padding.
32 | * Set correct display for `progress` in IE 8/9.
33 | * Fix `font` and `color` inheritance for forms.
34 |
35 | === 2.1.3 (August 26, 2013)
36 |
37 | * Fix component.json.
38 | * Remove the gray background color from active links in IE 10.
39 |
40 | === 2.1.2 (May 11, 2013)
41 |
42 | * Revert root `color` and `background` normalizations.
43 |
44 | === 2.1.1 (April 8, 2013)
45 |
46 | * Normalize root `color` and `background` to counter the effects of system
47 | color schemes.
48 |
49 | === 2.1.0 (January 21, 2013)
50 |
51 | * Normalize `text-transform` for `button` and `select`.
52 | * Normalize `h1` margin when within HTML5 sectioning elements.
53 | * Normalize `hr` element.
54 | * Remove unnecessary `pre` styles.
55 | * Add `main` element to HTML5 display definitions.
56 | * Fix cursor style for disabled button `input`.
57 |
58 | === 2.0.1 (August 20, 2012)
59 |
60 | * Remove stray IE 6/7 `inline-block` hack from HTML5 display settings.
61 |
62 | === 2.0.0 (August 19, 2012)
63 |
64 | * Remove legacy browser form normalizations.
65 | * Remove all list normalizations.
66 | * Add `quotes` normalizations.
67 | * Remove all heading normalizations except `h1` font size.
68 | * Form elements automatically inherit `font-family` from ancestor.
69 | * Drop support for IE 6/7, Firefox < 4, and Safari < 5.
70 |
71 | === 1.0.1 (August 19, 2012)
72 |
73 | * Adjust `small` font size normalization.
74 |
75 | === 1.0.0 (August 14, 2012)
76 |
77 | (Only the notable changes since public release)
78 |
79 | * Add MIT License.
80 | * Hide `audio` elements without controls in iOS 5 (#69).
81 | * Normalize heading margins and font size.
82 | * Move font-family normalization from `body` to `html` (#62).
83 | * Remove scrollbar normalization (#64 #65).
84 | * Remove excess padding from checkbox and radio inputs in IE 7 (#42).
85 | * Add IE9 correction for SVG overflow (#16).
86 | * Add fix for legend not inheriting color in IE 6/7/8/9.
87 |
--------------------------------------------------------------------------------
/vendors/css/node_modules/normalize.css/LICENSE.md:
--------------------------------------------------------------------------------
1 | Copyright (c) Nicolas Gallagher and Jonathan Neal
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of
4 | this software and associated documentation files (the "Software"), to deal in
5 | the Software without restriction, including without limitation the rights to
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7 | of the Software, and to permit persons to whom the Software is furnished to do
8 | so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 | SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendors/css/node_modules/normalize.css/README.md:
--------------------------------------------------------------------------------
1 | # normalize.css v3
2 |
3 | Normalize.css is a customisable CSS file that makes browsers render all
4 | elements more consistently and in line with modern standards.
5 |
6 | The project relies on researching the differences between default browser
7 | styles in order to precisely target only the styles that need or benefit from
8 | normalizing.
9 |
10 | [View the test file](http://necolas.github.io/normalize.css/latest/test.html)
11 |
12 | ## Install
13 |
14 | * [npm](http://npmjs.org/): `npm install --save normalize.css`
15 | * [Component(1)](https://github.com/component/component/): `component install necolas/normalize.css`
16 | * [Bower](http://bower.io/): `bower install --save normalize.css`
17 | * [cdnjs](https://cdnjs.com/libraries/normalize)
18 | * [Download](http://necolas.github.io/normalize.css/latest/normalize.css).
19 |
20 | No other styles should come before Normalize.css.
21 |
22 | It is recommended that you include the `normalize.css` file as untouched
23 | library code.
24 |
25 | ## What does it do?
26 |
27 | * Preserves useful defaults, unlike many CSS resets.
28 | * Normalizes styles for a wide range of elements.
29 | * Corrects bugs and common browser inconsistencies.
30 | * Improves usability with subtle improvements.
31 | * Explains what code does using detailed comments.
32 |
33 | ## Browser support
34 |
35 | * Google Chrome (latest)
36 | * Mozilla Firefox (latest)
37 | * Mozilla Firefox ESR
38 | * Opera (latest)
39 | * Apple Safari 6+
40 | * Internet Explorer 8+
41 |
42 | [Normalize.css v1 provides legacy browser
43 | support](https://github.com/necolas/normalize.css/tree/v1) (IE 6+, Safari 4+),
44 | but is no longer actively developed.
45 |
46 | ## Extended details
47 |
48 | Additional detail and explanation of the esoteric parts of normalize.css.
49 |
50 | #### `pre, code, kbd, samp`
51 |
52 | The `font-family: monospace, monospace` hack fixes the inheritance and scaling
53 | of font-size for preformated text. The duplication of `monospace` is
54 | intentional. [Source](http://en.wikipedia.org/wiki/User:Davidgothberg/Test59).
55 |
56 | #### `sub, sup`
57 |
58 | Normally, using `sub` or `sup` affects the line-box height of text in all
59 | browsers. [Source](http://gist.github.com/413930).
60 |
61 | #### `svg:not(:root)`
62 |
63 | Adding `overflow: hidden` fixes IE9's SVG rendering. Earlier versions of IE
64 | don't support SVG, so we can safely use the `:not()` and `:root` selectors that
65 | modern browsers use in the default UA stylesheets to apply this style. [SVG
66 | Mailing List discussion](http://lists.w3.org/Archives/Public/public-svg-wg/2008JulSep/0339.html)
67 |
68 | #### `input[type="search"]`
69 |
70 | The search input is not fully stylable by default. In Chrome and Safari on
71 | OSX/iOS you can't control `font`, `padding`, `border`, or `background`. In
72 | Chrome and Safari on Windows you can't control `border` properly. It will apply
73 | `border-width` but will only show a border color (which cannot be controlled)
74 | for the outer 1px of that border. Applying `-webkit-appearance: textfield`
75 | addresses these issues without removing the benefits of search inputs (e.g.
76 | showing past searches).
77 |
78 | #### `legend`
79 |
80 | Adding `border: 0` corrects an IE 8–11 bug where `color` (yes, `color`) is not
81 | inherited by `legend`.
82 |
83 | ## Contributing
84 |
85 | Please read the CONTRIBUTING.md
86 |
87 | ## Acknowledgements
88 |
89 | Normalize.css is a project by [Nicolas Gallagher](https://github.com/necolas),
90 | co-created with [Jonathan Neal](https://github.com/jonathantneal).
91 |
--------------------------------------------------------------------------------
/vendors/css/node_modules/normalize.css/normalize.css:
--------------------------------------------------------------------------------
1 | /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
2 |
3 | /**
4 | * 1. Set default font family to sans-serif.
5 | * 2. Prevent iOS and IE text size adjust after device orientation change,
6 | * without disabling user zoom.
7 | */
8 |
9 | html {
10 | font-family: sans-serif; /* 1 */
11 | -ms-text-size-adjust: 100%; /* 2 */
12 | -webkit-text-size-adjust: 100%; /* 2 */
13 | }
14 |
15 | /**
16 | * Remove default margin.
17 | */
18 |
19 | body {
20 | margin: 0;
21 | }
22 |
23 | /* HTML5 display definitions
24 | ========================================================================== */
25 |
26 | /**
27 | * Correct `block` display not defined for any HTML5 element in IE 8/9.
28 | * Correct `block` display not defined for `details` or `summary` in IE 10/11
29 | * and Firefox.
30 | * Correct `block` display not defined for `main` in IE 11.
31 | */
32 |
33 | article,
34 | aside,
35 | details,
36 | figcaption,
37 | figure,
38 | footer,
39 | header,
40 | hgroup,
41 | main,
42 | menu,
43 | nav,
44 | section,
45 | summary {
46 | display: block;
47 | }
48 |
49 | /**
50 | * 1. Correct `inline-block` display not defined in IE 8/9.
51 | * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
52 | */
53 |
54 | audio,
55 | canvas,
56 | progress,
57 | video {
58 | display: inline-block; /* 1 */
59 | vertical-align: baseline; /* 2 */
60 | }
61 |
62 | /**
63 | * Prevent modern browsers from displaying `audio` without controls.
64 | * Remove excess height in iOS 5 devices.
65 | */
66 |
67 | audio:not([controls]) {
68 | display: none;
69 | height: 0;
70 | }
71 |
72 | /**
73 | * Address `[hidden]` styling not present in IE 8/9/10.
74 | * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
75 | */
76 |
77 | [hidden],
78 | template {
79 | display: none;
80 | }
81 |
82 | /* Links
83 | ========================================================================== */
84 |
85 | /**
86 | * Remove the gray background color from active links in IE 10.
87 | */
88 |
89 | a {
90 | background-color: transparent;
91 | }
92 |
93 | /**
94 | * Improve readability of focused elements when they are also in an
95 | * active/hover state.
96 | */
97 |
98 | a:active,
99 | a:hover {
100 | outline: 0;
101 | }
102 |
103 | /* Text-level semantics
104 | ========================================================================== */
105 |
106 | /**
107 | * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
108 | */
109 |
110 | abbr[title] {
111 | border-bottom: 1px dotted;
112 | }
113 |
114 | /**
115 | * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
116 | */
117 |
118 | b,
119 | strong {
120 | font-weight: bold;
121 | }
122 |
123 | /**
124 | * Address styling not present in Safari and Chrome.
125 | */
126 |
127 | dfn {
128 | font-style: italic;
129 | }
130 |
131 | /**
132 | * Address variable `h1` font-size and margin within `section` and `article`
133 | * contexts in Firefox 4+, Safari, and Chrome.
134 | */
135 |
136 | h1 {
137 | font-size: 2em;
138 | margin: 0.67em 0;
139 | }
140 |
141 | /**
142 | * Address styling not present in IE 8/9.
143 | */
144 |
145 | mark {
146 | background: #ff0;
147 | color: #000;
148 | }
149 |
150 | /**
151 | * Address inconsistent and variable font size in all browsers.
152 | */
153 |
154 | small {
155 | font-size: 80%;
156 | }
157 |
158 | /**
159 | * Prevent `sub` and `sup` affecting `line-height` in all browsers.
160 | */
161 |
162 | sub,
163 | sup {
164 | font-size: 75%;
165 | line-height: 0;
166 | position: relative;
167 | vertical-align: baseline;
168 | }
169 |
170 | sup {
171 | top: -0.5em;
172 | }
173 |
174 | sub {
175 | bottom: -0.25em;
176 | }
177 |
178 | /* Embedded content
179 | ========================================================================== */
180 |
181 | /**
182 | * Remove border when inside `a` element in IE 8/9/10.
183 | */
184 |
185 | img {
186 | border: 0;
187 | }
188 |
189 | /**
190 | * Correct overflow not hidden in IE 9/10/11.
191 | */
192 |
193 | svg:not(:root) {
194 | overflow: hidden;
195 | }
196 |
197 | /* Grouping content
198 | ========================================================================== */
199 |
200 | /**
201 | * Address margin not present in IE 8/9 and Safari.
202 | */
203 |
204 | figure {
205 | margin: 1em 40px;
206 | }
207 |
208 | /**
209 | * Address differences between Firefox and other browsers.
210 | */
211 |
212 | hr {
213 | box-sizing: content-box;
214 | height: 0;
215 | }
216 |
217 | /**
218 | * Contain overflow in all browsers.
219 | */
220 |
221 | pre {
222 | overflow: auto;
223 | }
224 |
225 | /**
226 | * Address odd `em`-unit font size rendering in all browsers.
227 | */
228 |
229 | code,
230 | kbd,
231 | pre,
232 | samp {
233 | font-family: monospace, monospace;
234 | font-size: 1em;
235 | }
236 |
237 | /* Forms
238 | ========================================================================== */
239 |
240 | /**
241 | * Known limitation: by default, Chrome and Safari on OS X allow very limited
242 | * styling of `select`, unless a `border` property is set.
243 | */
244 |
245 | /**
246 | * 1. Correct color not being inherited.
247 | * Known issue: affects color of disabled elements.
248 | * 2. Correct font properties not being inherited.
249 | * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
250 | */
251 |
252 | button,
253 | input,
254 | optgroup,
255 | select,
256 | textarea {
257 | color: inherit; /* 1 */
258 | font: inherit; /* 2 */
259 | margin: 0; /* 3 */
260 | }
261 |
262 | /**
263 | * Address `overflow` set to `hidden` in IE 8/9/10/11.
264 | */
265 |
266 | button {
267 | overflow: visible;
268 | }
269 |
270 | /**
271 | * Address inconsistent `text-transform` inheritance for `button` and `select`.
272 | * All other form control elements do not inherit `text-transform` values.
273 | * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
274 | * Correct `select` style inheritance in Firefox.
275 | */
276 |
277 | button,
278 | select {
279 | text-transform: none;
280 | }
281 |
282 | /**
283 | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
284 | * and `video` controls.
285 | * 2. Correct inability to style clickable `input` types in iOS.
286 | * 3. Improve usability and consistency of cursor style between image-type
287 | * `input` and others.
288 | */
289 |
290 | button,
291 | html input[type="button"], /* 1 */
292 | input[type="reset"],
293 | input[type="submit"] {
294 | -webkit-appearance: button; /* 2 */
295 | cursor: pointer; /* 3 */
296 | }
297 |
298 | /**
299 | * Re-set default cursor for disabled elements.
300 | */
301 |
302 | button[disabled],
303 | html input[disabled] {
304 | cursor: default;
305 | }
306 |
307 | /**
308 | * Remove inner padding and border in Firefox 4+.
309 | */
310 |
311 | button::-moz-focus-inner,
312 | input::-moz-focus-inner {
313 | border: 0;
314 | padding: 0;
315 | }
316 |
317 | /**
318 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in
319 | * the UA stylesheet.
320 | */
321 |
322 | input {
323 | line-height: normal;
324 | }
325 |
326 | /**
327 | * It's recommended that you don't attempt to style these elements.
328 | * Firefox's implementation doesn't respect box-sizing, padding, or width.
329 | *
330 | * 1. Address box sizing set to `content-box` in IE 8/9/10.
331 | * 2. Remove excess padding in IE 8/9/10.
332 | */
333 |
334 | input[type="checkbox"],
335 | input[type="radio"] {
336 | box-sizing: border-box; /* 1 */
337 | padding: 0; /* 2 */
338 | }
339 |
340 | /**
341 | * Fix the cursor style for Chrome's increment/decrement buttons. For certain
342 | * `font-size` values of the `input`, it causes the cursor style of the
343 | * decrement button to change from `default` to `text`.
344 | */
345 |
346 | input[type="number"]::-webkit-inner-spin-button,
347 | input[type="number"]::-webkit-outer-spin-button {
348 | height: auto;
349 | }
350 |
351 | /**
352 | * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
353 | * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
354 | */
355 |
356 | input[type="search"] {
357 | -webkit-appearance: textfield; /* 1 */
358 | box-sizing: content-box; /* 2 */
359 | }
360 |
361 | /**
362 | * Remove inner padding and search cancel button in Safari and Chrome on OS X.
363 | * Safari (but not Chrome) clips the cancel button when the search input has
364 | * padding (and `textfield` appearance).
365 | */
366 |
367 | input[type="search"]::-webkit-search-cancel-button,
368 | input[type="search"]::-webkit-search-decoration {
369 | -webkit-appearance: none;
370 | }
371 |
372 | /**
373 | * Define consistent border, margin, and padding.
374 | */
375 |
376 | fieldset {
377 | border: 1px solid #c0c0c0;
378 | margin: 0 2px;
379 | padding: 0.35em 0.625em 0.75em;
380 | }
381 |
382 | /**
383 | * 1. Correct `color` not being inherited in IE 8/9/10/11.
384 | * 2. Remove padding so people aren't caught out if they zero out fieldsets.
385 | */
386 |
387 | legend {
388 | border: 0; /* 1 */
389 | padding: 0; /* 2 */
390 | }
391 |
392 | /**
393 | * Remove default vertical scrollbar in IE 8/9/10/11.
394 | */
395 |
396 | textarea {
397 | overflow: auto;
398 | }
399 |
400 | /**
401 | * Don't inherit the `font-weight` (applied by a rule above).
402 | * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
403 | */
404 |
405 | optgroup {
406 | font-weight: bold;
407 | }
408 |
409 | /* Tables
410 | ========================================================================== */
411 |
412 | /**
413 | * Remove most spacing between table cells.
414 | */
415 |
416 | table {
417 | border-collapse: collapse;
418 | border-spacing: 0;
419 | }
420 |
421 | td,
422 | th {
423 | padding: 0;
424 | }
425 |
--------------------------------------------------------------------------------
/vendors/css/node_modules/normalize.css/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "normalize.css",
3 | "version": "3.0.3",
4 | "description": "Normalize.css as a node packaged module",
5 | "style": "normalize.css",
6 | "files": [
7 | "LICENSE.md",
8 | "normalize.css"
9 | ],
10 | "homepage": "http://necolas.github.io/normalize.css",
11 | "repository": {
12 | "type": "git",
13 | "url": "git://github.com/necolas/normalize.css.git"
14 | },
15 | "main": "normalize.css",
16 | "author": {
17 | "name": "Nicolas Gallagher"
18 | },
19 | "license": "MIT",
20 | "gitHead": "2bdda84272650aedfb45d8abe11a6d177933a803",
21 | "bugs": {
22 | "url": "https://github.com/necolas/normalize.css/issues"
23 | },
24 | "_id": "normalize.css@3.0.3",
25 | "scripts": {},
26 | "_shasum": "acc00262e235a2caa91363a2e5e3bfa4f8ad05c6",
27 | "_from": "normalize.css@*",
28 | "_npmVersion": "2.7.0",
29 | "_nodeVersion": "0.10.35",
30 | "_npmUser": {
31 | "name": "necolas",
32 | "email": "nicolasgallagher@gmail.com"
33 | },
34 | "maintainers": [
35 | {
36 | "name": "tjholowaychuk",
37 | "email": "tj@vision-media.ca"
38 | },
39 | {
40 | "name": "necolas",
41 | "email": "nicolasgallagher@gmail.com"
42 | }
43 | ],
44 | "dist": {
45 | "shasum": "acc00262e235a2caa91363a2e5e3bfa4f8ad05c6",
46 | "tarball": "http://registry.npmjs.org/normalize.css/-/normalize.css-3.0.3.tgz"
47 | },
48 | "directories": {},
49 | "_resolved": "https://registry.npmjs.org/normalize.css/-/normalize.css-3.0.3.tgz"
50 | }
51 |
--------------------------------------------------------------------------------
/vendors/fonts/ionicons.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/vendors/fonts/ionicons.eot
--------------------------------------------------------------------------------
/vendors/fonts/ionicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/vendors/fonts/ionicons.ttf
--------------------------------------------------------------------------------
/vendors/fonts/ionicons.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lvmvr/omnifood-website/caa9d3ff02c866f1e1a740059e1dd8bebec18ea3/vendors/fonts/ionicons.woff
--------------------------------------------------------------------------------
/vendors/js/gmaps.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | (function(root, factory) {
3 | if(typeof exports === 'object') {
4 | module.exports = factory();
5 | }
6 | else if(typeof define === 'function' && define.amd) {
7 | define(['jquery', 'googlemaps!'], factory);
8 | }
9 | else {
10 | root.GMaps = factory();
11 | }
12 |
13 |
14 | }(this, function() {
15 |
16 | /*!
17 | * GMaps.js v0.4.18
18 | * http://hpneo.github.com/gmaps/
19 | *
20 | * Copyright 2015, Gustavo Leon
21 | * Released under the MIT License.
22 | */
23 |
24 | if (!(typeof window.google === 'object' && window.google.maps)) {
25 | throw 'Google Maps API is required. Please register the following JavaScript library http://maps.google.com/maps/api/js?sensor=true.'
26 | }
27 |
28 | var extend_object = function(obj, new_obj) {
29 | var name;
30 |
31 | if (obj === new_obj) {
32 | return obj;
33 | }
34 |
35 | for (name in new_obj) {
36 | obj[name] = new_obj[name];
37 | }
38 |
39 | return obj;
40 | };
41 |
42 | var replace_object = function(obj, replace) {
43 | var name;
44 |
45 | if (obj === replace) {
46 | return obj;
47 | }
48 |
49 | for (name in replace) {
50 | if (obj[name] != undefined) {
51 | obj[name] = replace[name];
52 | }
53 | }
54 |
55 | return obj;
56 | };
57 |
58 | var array_map = function(array, callback) {
59 | var original_callback_params = Array.prototype.slice.call(arguments, 2),
60 | array_return = [],
61 | array_length = array.length,
62 | i;
63 |
64 | if (Array.prototype.map && array.map === Array.prototype.map) {
65 | array_return = Array.prototype.map.call(array, function(item) {
66 | var callback_params = original_callback_params.slice(0);
67 | callback_params.splice(0, 0, item);
68 |
69 | return callback.apply(this, callback_params);
70 | });
71 | }
72 | else {
73 | for (i = 0; i < array_length; i++) {
74 | callback_params = original_callback_params;
75 | callback_params.splice(0, 0, array[i]);
76 | array_return.push(callback.apply(this, callback_params));
77 | }
78 | }
79 |
80 | return array_return;
81 | };
82 |
83 | var array_flat = function(array) {
84 | var new_array = [],
85 | i;
86 |
87 | for (i = 0; i < array.length; i++) {
88 | new_array = new_array.concat(array[i]);
89 | }
90 |
91 | return new_array;
92 | };
93 |
94 | var coordsToLatLngs = function(coords, useGeoJSON) {
95 | var first_coord = coords[0],
96 | second_coord = coords[1];
97 |
98 | if (useGeoJSON) {
99 | first_coord = coords[1];
100 | second_coord = coords[0];
101 | }
102 |
103 | return new google.maps.LatLng(first_coord, second_coord);
104 | };
105 |
106 | var arrayToLatLng = function(coords, useGeoJSON) {
107 | var i;
108 |
109 | for (i = 0; i < coords.length; i++) {
110 | if (!(coords[i] instanceof google.maps.LatLng)) {
111 | if (coords[i].length > 0 && typeof(coords[i][0]) === "object") {
112 | coords[i] = arrayToLatLng(coords[i], useGeoJSON);
113 | }
114 | else {
115 | coords[i] = coordsToLatLngs(coords[i], useGeoJSON);
116 | }
117 | }
118 | }
119 |
120 | return coords;
121 | };
122 |
123 |
124 | var getElementsByClassName = function (class_name, context) {
125 |
126 | var element,
127 | _class = class_name.replace('.', '');
128 |
129 | if ('jQuery' in this && context) {
130 | element = $("." + _class, context)[0];
131 | } else {
132 | element = document.getElementsByClassName(_class)[0];
133 | }
134 | return element;
135 |
136 | };
137 |
138 | var getElementById = function(id, context) {
139 | var element,
140 | id = id.replace('#', '');
141 |
142 | if ('jQuery' in window && context) {
143 | element = $('#' + id, context)[0];
144 | } else {
145 | element = document.getElementById(id);
146 | };
147 |
148 | return element;
149 | };
150 |
151 | var findAbsolutePosition = function(obj) {
152 | var curleft = 0,
153 | curtop = 0;
154 |
155 | if (obj.offsetParent) {
156 | do {
157 | curleft += obj.offsetLeft;
158 | curtop += obj.offsetTop;
159 | } while (obj = obj.offsetParent);
160 | }
161 |
162 | return [curleft, curtop];
163 | };
164 |
165 | var GMaps = (function(global) {
166 | "use strict";
167 |
168 | var doc = document;
169 |
170 | var GMaps = function(options) {
171 | if (!this) return new GMaps(options);
172 |
173 | options.zoom = options.zoom || 15;
174 | options.mapType = options.mapType || 'roadmap';
175 |
176 | var self = this,
177 | i,
178 | events_that_hide_context_menu = [
179 | 'bounds_changed', 'center_changed', 'click', 'dblclick', 'drag',
180 | 'dragend', 'dragstart', 'idle', 'maptypeid_changed', 'projection_changed',
181 | 'resize', 'tilesloaded', 'zoom_changed'
182 | ],
183 | events_that_doesnt_hide_context_menu = ['mousemove', 'mouseout', 'mouseover'],
184 | options_to_be_deleted = ['el', 'lat', 'lng', 'mapType', 'width', 'height', 'markerClusterer', 'enableNewStyle'],
185 | identifier = options.el || options.div,
186 | markerClustererFunction = options.markerClusterer,
187 | mapType = google.maps.MapTypeId[options.mapType.toUpperCase()],
188 | map_center = new google.maps.LatLng(options.lat, options.lng),
189 | zoomControl = options.zoomControl || true,
190 | zoomControlOpt = options.zoomControlOpt || {
191 | style: 'DEFAULT',
192 | position: 'TOP_LEFT'
193 | },
194 | zoomControlStyle = zoomControlOpt.style || 'DEFAULT',
195 | zoomControlPosition = zoomControlOpt.position || 'TOP_LEFT',
196 | panControl = options.panControl || true,
197 | mapTypeControl = options.mapTypeControl || true,
198 | scaleControl = options.scaleControl || true,
199 | streetViewControl = options.streetViewControl || true,
200 | overviewMapControl = overviewMapControl || true,
201 | map_options = {},
202 | map_base_options = {
203 | zoom: this.zoom,
204 | center: map_center,
205 | mapTypeId: mapType
206 | },
207 | map_controls_options = {
208 | panControl: panControl,
209 | zoomControl: zoomControl,
210 | zoomControlOptions: {
211 | style: google.maps.ZoomControlStyle[zoomControlStyle],
212 | position: google.maps.ControlPosition[zoomControlPosition]
213 | },
214 | mapTypeControl: mapTypeControl,
215 | scaleControl: scaleControl,
216 | streetViewControl: streetViewControl,
217 | overviewMapControl: overviewMapControl
218 | };
219 |
220 | if (typeof(options.el) === 'string' || typeof(options.div) === 'string') {
221 |
222 | if (identifier.indexOf("#") > -1) {
223 | this.el = getElementById(identifier, options.context);
224 | } else {
225 | this.el = getElementsByClassName.apply(this, [identifier, options.context]);
226 | }
227 |
228 | } else {
229 | this.el = identifier;
230 | }
231 |
232 | if (typeof(this.el) === 'undefined' || this.el === null) {
233 | throw 'No element defined.';
234 | }
235 |
236 | window.context_menu = window.context_menu || {};
237 | window.context_menu[self.el.id] = {};
238 |
239 | this.controls = [];
240 | this.overlays = [];
241 | this.layers = []; // array with kml/georss and fusiontables layers, can be as many
242 | this.singleLayers = {}; // object with the other layers, only one per layer
243 | this.markers = [];
244 | this.polylines = [];
245 | this.routes = [];
246 | this.polygons = [];
247 | this.infoWindow = null;
248 | this.overlay_el = null;
249 | this.zoom = options.zoom;
250 | this.registered_events = {};
251 |
252 | this.el.style.width = options.width || this.el.scrollWidth || this.el.offsetWidth;
253 | this.el.style.height = options.height || this.el.scrollHeight || this.el.offsetHeight;
254 |
255 | google.maps.visualRefresh = options.enableNewStyle;
256 |
257 | for (i = 0; i < options_to_be_deleted.length; i++) {
258 | delete options[options_to_be_deleted[i]];
259 | }
260 |
261 | if(options.disableDefaultUI != true) {
262 | map_base_options = extend_object(map_base_options, map_controls_options);
263 | }
264 |
265 | map_options = extend_object(map_base_options, options);
266 |
267 | for (i = 0; i < events_that_hide_context_menu.length; i++) {
268 | delete map_options[events_that_hide_context_menu[i]];
269 | }
270 |
271 | for (i = 0; i < events_that_doesnt_hide_context_menu.length; i++) {
272 | delete map_options[events_that_doesnt_hide_context_menu[i]];
273 | }
274 |
275 | this.map = new google.maps.Map(this.el, map_options);
276 |
277 | if (markerClustererFunction) {
278 | this.markerClusterer = markerClustererFunction.apply(this, [this.map]);
279 | }
280 |
281 | var buildContextMenuHTML = function(control, e) {
282 | var html = '',
283 | options = window.context_menu[self.el.id][control];
284 |
285 | for (var i in options){
286 | if (options.hasOwnProperty(i)) {
287 | var option = options[i];
288 |
289 | html += '' + option.title + ' ';
290 | }
291 | }
292 |
293 | if (!getElementById('gmaps_context_menu')) return;
294 |
295 | var context_menu_element = getElementById('gmaps_context_menu');
296 |
297 | context_menu_element.innerHTML = html;
298 |
299 | var context_menu_items = context_menu_element.getElementsByTagName('a'),
300 | context_menu_items_count = context_menu_items.length,
301 | i;
302 |
303 | for (i = 0; i < context_menu_items_count; i++) {
304 | var context_menu_item = context_menu_items[i];
305 |
306 | var assign_menu_item_action = function(ev){
307 | ev.preventDefault();
308 |
309 | options[this.id.replace(control + '_', '')].action.apply(self, [e]);
310 | self.hideContextMenu();
311 | };
312 |
313 | google.maps.event.clearListeners(context_menu_item, 'click');
314 | google.maps.event.addDomListenerOnce(context_menu_item, 'click', assign_menu_item_action, false);
315 | }
316 |
317 | var position = findAbsolutePosition.apply(this, [self.el]),
318 | left = position[0] + e.pixel.x - 15,
319 | top = position[1] + e.pixel.y- 15;
320 |
321 | context_menu_element.style.left = left + "px";
322 | context_menu_element.style.top = top + "px";
323 |
324 | context_menu_element.style.display = 'block';
325 | };
326 |
327 | this.buildContextMenu = function(control, e) {
328 | if (control === 'marker') {
329 | e.pixel = {};
330 |
331 | var overlay = new google.maps.OverlayView();
332 | overlay.setMap(self.map);
333 |
334 | overlay.draw = function() {
335 | var projection = overlay.getProjection(),
336 | position = e.marker.getPosition();
337 |
338 | e.pixel = projection.fromLatLngToContainerPixel(position);
339 |
340 | buildContextMenuHTML(control, e);
341 | };
342 | }
343 | else {
344 | buildContextMenuHTML(control, e);
345 | }
346 | };
347 |
348 | this.setContextMenu = function(options) {
349 | window.context_menu[self.el.id][options.control] = {};
350 |
351 | var i,
352 | ul = doc.createElement('ul');
353 |
354 | for (i in options.options) {
355 | if (options.options.hasOwnProperty(i)) {
356 | var option = options.options[i];
357 |
358 | window.context_menu[self.el.id][options.control][option.name] = {
359 | title: option.title,
360 | action: option.action
361 | };
362 | }
363 | }
364 |
365 | ul.id = 'gmaps_context_menu';
366 | ul.style.display = 'none';
367 | ul.style.position = 'absolute';
368 | ul.style.minWidth = '100px';
369 | ul.style.background = 'white';
370 | ul.style.listStyle = 'none';
371 | ul.style.padding = '8px';
372 | ul.style.boxShadow = '2px 2px 6px #ccc';
373 |
374 | doc.body.appendChild(ul);
375 |
376 | var context_menu_element = getElementById('gmaps_context_menu')
377 |
378 | google.maps.event.addDomListener(context_menu_element, 'mouseout', function(ev) {
379 | if (!ev.relatedTarget || !this.contains(ev.relatedTarget)) {
380 | window.setTimeout(function(){
381 | context_menu_element.style.display = 'none';
382 | }, 400);
383 | }
384 | }, false);
385 | };
386 |
387 | this.hideContextMenu = function() {
388 | var context_menu_element = getElementById('gmaps_context_menu');
389 |
390 | if (context_menu_element) {
391 | context_menu_element.style.display = 'none';
392 | }
393 | };
394 |
395 | var setupListener = function(object, name) {
396 | google.maps.event.addListener(object, name, function(e){
397 | if (e == undefined) {
398 | e = this;
399 | }
400 |
401 | options[name].apply(this, [e]);
402 |
403 | self.hideContextMenu();
404 | });
405 | };
406 |
407 | //google.maps.event.addListener(this.map, 'idle', this.hideContextMenu);
408 | google.maps.event.addListener(this.map, 'zoom_changed', this.hideContextMenu);
409 |
410 | for (var ev = 0; ev < events_that_hide_context_menu.length; ev++) {
411 | var name = events_that_hide_context_menu[ev];
412 |
413 | if (name in options) {
414 | setupListener(this.map, name);
415 | }
416 | }
417 |
418 | for (var ev = 0; ev < events_that_doesnt_hide_context_menu.length; ev++) {
419 | var name = events_that_doesnt_hide_context_menu[ev];
420 |
421 | if (name in options) {
422 | setupListener(this.map, name);
423 | }
424 | }
425 |
426 | google.maps.event.addListener(this.map, 'rightclick', function(e) {
427 | if (options.rightclick) {
428 | options.rightclick.apply(this, [e]);
429 | }
430 |
431 | if(window.context_menu[self.el.id]['map'] != undefined) {
432 | self.buildContextMenu('map', e);
433 | }
434 | });
435 |
436 | this.refresh = function() {
437 | google.maps.event.trigger(this.map, 'resize');
438 | };
439 |
440 | this.fitZoom = function() {
441 | var latLngs = [],
442 | markers_length = this.markers.length,
443 | i;
444 |
445 | for (i = 0; i < markers_length; i++) {
446 | if(typeof(this.markers[i].visible) === 'boolean' && this.markers[i].visible) {
447 | latLngs.push(this.markers[i].getPosition());
448 | }
449 | }
450 |
451 | this.fitLatLngBounds(latLngs);
452 | };
453 |
454 | this.fitLatLngBounds = function(latLngs) {
455 | var total = latLngs.length,
456 | bounds = new google.maps.LatLngBounds(),
457 | i;
458 |
459 | for(i = 0; i < total; i++) {
460 | bounds.extend(latLngs[i]);
461 | }
462 |
463 | this.map.fitBounds(bounds);
464 | };
465 |
466 | this.setCenter = function(lat, lng, callback) {
467 | this.map.panTo(new google.maps.LatLng(lat, lng));
468 |
469 | if (callback) {
470 | callback();
471 | }
472 | };
473 |
474 | this.getElement = function() {
475 | return this.el;
476 | };
477 |
478 | this.zoomIn = function(value) {
479 | value = value || 1;
480 |
481 | this.zoom = this.map.getZoom() + value;
482 | this.map.setZoom(this.zoom);
483 | };
484 |
485 | this.zoomOut = function(value) {
486 | value = value || 1;
487 |
488 | this.zoom = this.map.getZoom() - value;
489 | this.map.setZoom(this.zoom);
490 | };
491 |
492 | var native_methods = [],
493 | method;
494 |
495 | for (method in this.map) {
496 | if (typeof(this.map[method]) == 'function' && !this[method]) {
497 | native_methods.push(method);
498 | }
499 | }
500 |
501 | for (i = 0; i < native_methods.length; i++) {
502 | (function(gmaps, scope, method_name) {
503 | gmaps[method_name] = function(){
504 | return scope[method_name].apply(scope, arguments);
505 | };
506 | })(this, this.map, native_methods[i]);
507 | }
508 | };
509 |
510 | return GMaps;
511 | })(this);
512 |
513 | GMaps.prototype.createControl = function(options) {
514 | var control = document.createElement('div');
515 |
516 | control.style.cursor = 'pointer';
517 |
518 | if (options.disableDefaultStyles !== true) {
519 | control.style.fontFamily = 'Roboto, Arial, sans-serif';
520 | control.style.fontSize = '11px';
521 | control.style.boxShadow = 'rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px';
522 | }
523 |
524 | for (var option in options.style) {
525 | control.style[option] = options.style[option];
526 | }
527 |
528 | if (options.id) {
529 | control.id = options.id;
530 | }
531 |
532 | if (options.classes) {
533 | control.className = options.classes;
534 | }
535 |
536 | if (options.content) {
537 | if (typeof options.content === 'string') {
538 | control.innerHTML = options.content;
539 | }
540 | else if (options.content instanceof HTMLElement) {
541 | control.appendChild(options.content);
542 | }
543 | }
544 |
545 | if (options.position) {
546 | control.position = google.maps.ControlPosition[options.position.toUpperCase()];
547 | }
548 |
549 | for (var ev in options.events) {
550 | (function(object, name) {
551 | google.maps.event.addDomListener(object, name, function(){
552 | options.events[name].apply(this, [this]);
553 | });
554 | })(control, ev);
555 | }
556 |
557 | control.index = 1;
558 |
559 | return control;
560 | };
561 |
562 | GMaps.prototype.addControl = function(options) {
563 | var control = this.createControl(options);
564 |
565 | this.controls.push(control);
566 | this.map.controls[control.position].push(control);
567 |
568 | return control;
569 | };
570 |
571 | GMaps.prototype.removeControl = function(control) {
572 | var position = null,
573 | i;
574 |
575 | for (i = 0; i < this.controls.length; i++) {
576 | if (this.controls[i] == control) {
577 | position = this.controls[i].position;
578 | this.controls.splice(i, 1);
579 | }
580 | }
581 |
582 | if (position) {
583 | for (i = 0; i < this.map.controls.length; i++) {
584 | var controlsForPosition = this.map.controls[control.position];
585 |
586 | if (controlsForPosition.getAt(i) == control) {
587 | controlsForPosition.removeAt(i);
588 |
589 | break;
590 | }
591 | }
592 | }
593 |
594 | return control;
595 | };
596 |
597 | GMaps.prototype.createMarker = function(options) {
598 | if (options.lat == undefined && options.lng == undefined && options.position == undefined) {
599 | throw 'No latitude or longitude defined.';
600 | }
601 |
602 | var self = this,
603 | details = options.details,
604 | fences = options.fences,
605 | outside = options.outside,
606 | base_options = {
607 | position: new google.maps.LatLng(options.lat, options.lng),
608 | map: null
609 | },
610 | marker_options = extend_object(base_options, options);
611 |
612 | delete marker_options.lat;
613 | delete marker_options.lng;
614 | delete marker_options.fences;
615 | delete marker_options.outside;
616 |
617 | var marker = new google.maps.Marker(marker_options);
618 |
619 | marker.fences = fences;
620 |
621 | if (options.infoWindow) {
622 | marker.infoWindow = new google.maps.InfoWindow(options.infoWindow);
623 |
624 | var info_window_events = ['closeclick', 'content_changed', 'domready', 'position_changed', 'zindex_changed'];
625 |
626 | for (var ev = 0; ev < info_window_events.length; ev++) {
627 | (function(object, name) {
628 | if (options.infoWindow[name]) {
629 | google.maps.event.addListener(object, name, function(e){
630 | options.infoWindow[name].apply(this, [e]);
631 | });
632 | }
633 | })(marker.infoWindow, info_window_events[ev]);
634 | }
635 | }
636 |
637 | var marker_events = ['animation_changed', 'clickable_changed', 'cursor_changed', 'draggable_changed', 'flat_changed', 'icon_changed', 'position_changed', 'shadow_changed', 'shape_changed', 'title_changed', 'visible_changed', 'zindex_changed'];
638 |
639 | var marker_events_with_mouse = ['dblclick', 'drag', 'dragend', 'dragstart', 'mousedown', 'mouseout', 'mouseover', 'mouseup'];
640 |
641 | for (var ev = 0; ev < marker_events.length; ev++) {
642 | (function(object, name) {
643 | if (options[name]) {
644 | google.maps.event.addListener(object, name, function(){
645 | options[name].apply(this, [this]);
646 | });
647 | }
648 | })(marker, marker_events[ev]);
649 | }
650 |
651 | for (var ev = 0; ev < marker_events_with_mouse.length; ev++) {
652 | (function(map, object, name) {
653 | if (options[name]) {
654 | google.maps.event.addListener(object, name, function(me){
655 | if(!me.pixel){
656 | me.pixel = map.getProjection().fromLatLngToPoint(me.latLng)
657 | }
658 |
659 | options[name].apply(this, [me]);
660 | });
661 | }
662 | })(this.map, marker, marker_events_with_mouse[ev]);
663 | }
664 |
665 | google.maps.event.addListener(marker, 'click', function() {
666 | this.details = details;
667 |
668 | if (options.click) {
669 | options.click.apply(this, [this]);
670 | }
671 |
672 | if (marker.infoWindow) {
673 | self.hideInfoWindows();
674 | marker.infoWindow.open(self.map, marker);
675 | }
676 | });
677 |
678 | google.maps.event.addListener(marker, 'rightclick', function(e) {
679 | e.marker = this;
680 |
681 | if (options.rightclick) {
682 | options.rightclick.apply(this, [e]);
683 | }
684 |
685 | if (window.context_menu[self.el.id]['marker'] != undefined) {
686 | self.buildContextMenu('marker', e);
687 | }
688 | });
689 |
690 | if (marker.fences) {
691 | google.maps.event.addListener(marker, 'dragend', function() {
692 | self.checkMarkerGeofence(marker, function(m, f) {
693 | outside(m, f);
694 | });
695 | });
696 | }
697 |
698 | return marker;
699 | };
700 |
701 | GMaps.prototype.addMarker = function(options) {
702 | var marker;
703 | if(options.hasOwnProperty('gm_accessors_')) {
704 | // Native google.maps.Marker object
705 | marker = options;
706 | }
707 | else {
708 | if ((options.hasOwnProperty('lat') && options.hasOwnProperty('lng')) || options.position) {
709 | marker = this.createMarker(options);
710 | }
711 | else {
712 | throw 'No latitude or longitude defined.';
713 | }
714 | }
715 |
716 | marker.setMap(this.map);
717 |
718 | if(this.markerClusterer) {
719 | this.markerClusterer.addMarker(marker);
720 | }
721 |
722 | this.markers.push(marker);
723 |
724 | GMaps.fire('marker_added', marker, this);
725 |
726 | return marker;
727 | };
728 |
729 | GMaps.prototype.addMarkers = function(array) {
730 | for (var i = 0, marker; marker=array[i]; i++) {
731 | this.addMarker(marker);
732 | }
733 |
734 | return this.markers;
735 | };
736 |
737 | GMaps.prototype.hideInfoWindows = function() {
738 | for (var i = 0, marker; marker = this.markers[i]; i++){
739 | if (marker.infoWindow) {
740 | marker.infoWindow.close();
741 | }
742 | }
743 | };
744 |
745 | GMaps.prototype.removeMarker = function(marker) {
746 | for (var i = 0; i < this.markers.length; i++) {
747 | if (this.markers[i] === marker) {
748 | this.markers[i].setMap(null);
749 | this.markers.splice(i, 1);
750 |
751 | if(this.markerClusterer) {
752 | this.markerClusterer.removeMarker(marker);
753 | }
754 |
755 | GMaps.fire('marker_removed', marker, this);
756 |
757 | break;
758 | }
759 | }
760 |
761 | return marker;
762 | };
763 |
764 | GMaps.prototype.removeMarkers = function (collection) {
765 | var new_markers = [];
766 |
767 | if (typeof collection == 'undefined') {
768 | for (var i = 0; i < this.markers.length; i++) {
769 | var marker = this.markers[i];
770 | marker.setMap(null);
771 |
772 | if(this.markerClusterer) {
773 | this.markerClusterer.removeMarker(marker);
774 | }
775 |
776 | GMaps.fire('marker_removed', marker, this);
777 | }
778 |
779 | this.markers = new_markers;
780 | }
781 | else {
782 | for (var i = 0; i < collection.length; i++) {
783 | var index = this.markers.indexOf(collection[i]);
784 |
785 | if (index > -1) {
786 | var marker = this.markers[index];
787 | marker.setMap(null);
788 |
789 | if(this.markerClusterer) {
790 | this.markerClusterer.removeMarker(marker);
791 | }
792 |
793 | GMaps.fire('marker_removed', marker, this);
794 | }
795 | }
796 |
797 | for (var i = 0; i < this.markers.length; i++) {
798 | var marker = this.markers[i];
799 | if (marker.getMap() != null) {
800 | new_markers.push(marker);
801 | }
802 | }
803 |
804 | this.markers = new_markers;
805 | }
806 | };
807 |
808 | GMaps.prototype.drawOverlay = function(options) {
809 | var overlay = new google.maps.OverlayView(),
810 | auto_show = true;
811 |
812 | overlay.setMap(this.map);
813 |
814 | if (options.auto_show != null) {
815 | auto_show = options.auto_show;
816 | }
817 |
818 | overlay.onAdd = function() {
819 | var el = document.createElement('div');
820 |
821 | el.style.borderStyle = "none";
822 | el.style.borderWidth = "0px";
823 | el.style.position = "absolute";
824 | el.style.zIndex = 100;
825 | el.innerHTML = options.content;
826 |
827 | overlay.el = el;
828 |
829 | if (!options.layer) {
830 | options.layer = 'overlayLayer';
831 | }
832 |
833 | var panes = this.getPanes(),
834 | overlayLayer = panes[options.layer],
835 | stop_overlay_events = ['contextmenu', 'DOMMouseScroll', 'dblclick', 'mousedown'];
836 |
837 | overlayLayer.appendChild(el);
838 |
839 | for (var ev = 0; ev < stop_overlay_events.length; ev++) {
840 | (function(object, name) {
841 | google.maps.event.addDomListener(object, name, function(e){
842 | if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && document.all) {
843 | e.cancelBubble = true;
844 | e.returnValue = false;
845 | }
846 | else {
847 | e.stopPropagation();
848 | }
849 | });
850 | })(el, stop_overlay_events[ev]);
851 | }
852 |
853 | if (options.click) {
854 | panes.overlayMouseTarget.appendChild(overlay.el);
855 | google.maps.event.addDomListener(overlay.el, 'click', function() {
856 | options.click.apply(overlay, [overlay]);
857 | });
858 | }
859 |
860 | google.maps.event.trigger(this, 'ready');
861 | };
862 |
863 | overlay.draw = function() {
864 | var projection = this.getProjection(),
865 | pixel = projection.fromLatLngToDivPixel(new google.maps.LatLng(options.lat, options.lng));
866 |
867 | options.horizontalOffset = options.horizontalOffset || 0;
868 | options.verticalOffset = options.verticalOffset || 0;
869 |
870 | var el = overlay.el,
871 | content = el.children[0],
872 | content_height = content.clientHeight,
873 | content_width = content.clientWidth;
874 |
875 | switch (options.verticalAlign) {
876 | case 'top':
877 | el.style.top = (pixel.y - content_height + options.verticalOffset) + 'px';
878 | break;
879 | default:
880 | case 'middle':
881 | el.style.top = (pixel.y - (content_height / 2) + options.verticalOffset) + 'px';
882 | break;
883 | case 'bottom':
884 | el.style.top = (pixel.y + options.verticalOffset) + 'px';
885 | break;
886 | }
887 |
888 | switch (options.horizontalAlign) {
889 | case 'left':
890 | el.style.left = (pixel.x - content_width + options.horizontalOffset) + 'px';
891 | break;
892 | default:
893 | case 'center':
894 | el.style.left = (pixel.x - (content_width / 2) + options.horizontalOffset) + 'px';
895 | break;
896 | case 'right':
897 | el.style.left = (pixel.x + options.horizontalOffset) + 'px';
898 | break;
899 | }
900 |
901 | el.style.display = auto_show ? 'block' : 'none';
902 |
903 | if (!auto_show) {
904 | options.show.apply(this, [el]);
905 | }
906 | };
907 |
908 | overlay.onRemove = function() {
909 | var el = overlay.el;
910 |
911 | if (options.remove) {
912 | options.remove.apply(this, [el]);
913 | }
914 | else {
915 | overlay.el.parentNode.removeChild(overlay.el);
916 | overlay.el = null;
917 | }
918 | };
919 |
920 | this.overlays.push(overlay);
921 | return overlay;
922 | };
923 |
924 | GMaps.prototype.removeOverlay = function(overlay) {
925 | for (var i = 0; i < this.overlays.length; i++) {
926 | if (this.overlays[i] === overlay) {
927 | this.overlays[i].setMap(null);
928 | this.overlays.splice(i, 1);
929 |
930 | break;
931 | }
932 | }
933 | };
934 |
935 | GMaps.prototype.removeOverlays = function() {
936 | for (var i = 0, item; item = this.overlays[i]; i++) {
937 | item.setMap(null);
938 | }
939 |
940 | this.overlays = [];
941 | };
942 |
943 | GMaps.prototype.drawPolyline = function(options) {
944 | var path = [],
945 | points = options.path;
946 |
947 | if (points.length) {
948 | if (points[0][0] === undefined) {
949 | path = points;
950 | }
951 | else {
952 | for (var i = 0, latlng; latlng = points[i]; i++) {
953 | path.push(new google.maps.LatLng(latlng[0], latlng[1]));
954 | }
955 | }
956 | }
957 |
958 | var polyline_options = {
959 | map: this.map,
960 | path: path,
961 | strokeColor: options.strokeColor,
962 | strokeOpacity: options.strokeOpacity,
963 | strokeWeight: options.strokeWeight,
964 | geodesic: options.geodesic,
965 | clickable: true,
966 | editable: false,
967 | visible: true
968 | };
969 |
970 | if (options.hasOwnProperty("clickable")) {
971 | polyline_options.clickable = options.clickable;
972 | }
973 |
974 | if (options.hasOwnProperty("editable")) {
975 | polyline_options.editable = options.editable;
976 | }
977 |
978 | if (options.hasOwnProperty("icons")) {
979 | polyline_options.icons = options.icons;
980 | }
981 |
982 | if (options.hasOwnProperty("zIndex")) {
983 | polyline_options.zIndex = options.zIndex;
984 | }
985 |
986 | var polyline = new google.maps.Polyline(polyline_options);
987 |
988 | var polyline_events = ['click', 'dblclick', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick'];
989 |
990 | for (var ev = 0; ev < polyline_events.length; ev++) {
991 | (function(object, name) {
992 | if (options[name]) {
993 | google.maps.event.addListener(object, name, function(e){
994 | options[name].apply(this, [e]);
995 | });
996 | }
997 | })(polyline, polyline_events[ev]);
998 | }
999 |
1000 | this.polylines.push(polyline);
1001 |
1002 | GMaps.fire('polyline_added', polyline, this);
1003 |
1004 | return polyline;
1005 | };
1006 |
1007 | GMaps.prototype.removePolyline = function(polyline) {
1008 | for (var i = 0; i < this.polylines.length; i++) {
1009 | if (this.polylines[i] === polyline) {
1010 | this.polylines[i].setMap(null);
1011 | this.polylines.splice(i, 1);
1012 |
1013 | GMaps.fire('polyline_removed', polyline, this);
1014 |
1015 | break;
1016 | }
1017 | }
1018 | };
1019 |
1020 | GMaps.prototype.removePolylines = function() {
1021 | for (var i = 0, item; item = this.polylines[i]; i++) {
1022 | item.setMap(null);
1023 | }
1024 |
1025 | this.polylines = [];
1026 | };
1027 |
1028 | GMaps.prototype.drawCircle = function(options) {
1029 | options = extend_object({
1030 | map: this.map,
1031 | center: new google.maps.LatLng(options.lat, options.lng)
1032 | }, options);
1033 |
1034 | delete options.lat;
1035 | delete options.lng;
1036 |
1037 | var polygon = new google.maps.Circle(options),
1038 | polygon_events = ['click', 'dblclick', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick'];
1039 |
1040 | for (var ev = 0; ev < polygon_events.length; ev++) {
1041 | (function(object, name) {
1042 | if (options[name]) {
1043 | google.maps.event.addListener(object, name, function(e){
1044 | options[name].apply(this, [e]);
1045 | });
1046 | }
1047 | })(polygon, polygon_events[ev]);
1048 | }
1049 |
1050 | this.polygons.push(polygon);
1051 |
1052 | return polygon;
1053 | };
1054 |
1055 | GMaps.prototype.drawRectangle = function(options) {
1056 | options = extend_object({
1057 | map: this.map
1058 | }, options);
1059 |
1060 | var latLngBounds = new google.maps.LatLngBounds(
1061 | new google.maps.LatLng(options.bounds[0][0], options.bounds[0][1]),
1062 | new google.maps.LatLng(options.bounds[1][0], options.bounds[1][1])
1063 | );
1064 |
1065 | options.bounds = latLngBounds;
1066 |
1067 | var polygon = new google.maps.Rectangle(options),
1068 | polygon_events = ['click', 'dblclick', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick'];
1069 |
1070 | for (var ev = 0; ev < polygon_events.length; ev++) {
1071 | (function(object, name) {
1072 | if (options[name]) {
1073 | google.maps.event.addListener(object, name, function(e){
1074 | options[name].apply(this, [e]);
1075 | });
1076 | }
1077 | })(polygon, polygon_events[ev]);
1078 | }
1079 |
1080 | this.polygons.push(polygon);
1081 |
1082 | return polygon;
1083 | };
1084 |
1085 | GMaps.prototype.drawPolygon = function(options) {
1086 | var useGeoJSON = false;
1087 |
1088 | if(options.hasOwnProperty("useGeoJSON")) {
1089 | useGeoJSON = options.useGeoJSON;
1090 | }
1091 |
1092 | delete options.useGeoJSON;
1093 |
1094 | options = extend_object({
1095 | map: this.map
1096 | }, options);
1097 |
1098 | if (useGeoJSON == false) {
1099 | options.paths = [options.paths.slice(0)];
1100 | }
1101 |
1102 | if (options.paths.length > 0) {
1103 | if (options.paths[0].length > 0) {
1104 | options.paths = array_flat(array_map(options.paths, arrayToLatLng, useGeoJSON));
1105 | }
1106 | }
1107 |
1108 | var polygon = new google.maps.Polygon(options),
1109 | polygon_events = ['click', 'dblclick', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick'];
1110 |
1111 | for (var ev = 0; ev < polygon_events.length; ev++) {
1112 | (function(object, name) {
1113 | if (options[name]) {
1114 | google.maps.event.addListener(object, name, function(e){
1115 | options[name].apply(this, [e]);
1116 | });
1117 | }
1118 | })(polygon, polygon_events[ev]);
1119 | }
1120 |
1121 | this.polygons.push(polygon);
1122 |
1123 | GMaps.fire('polygon_added', polygon, this);
1124 |
1125 | return polygon;
1126 | };
1127 |
1128 | GMaps.prototype.removePolygon = function(polygon) {
1129 | for (var i = 0; i < this.polygons.length; i++) {
1130 | if (this.polygons[i] === polygon) {
1131 | this.polygons[i].setMap(null);
1132 | this.polygons.splice(i, 1);
1133 |
1134 | GMaps.fire('polygon_removed', polygon, this);
1135 |
1136 | break;
1137 | }
1138 | }
1139 | };
1140 |
1141 | GMaps.prototype.removePolygons = function() {
1142 | for (var i = 0, item; item = this.polygons[i]; i++) {
1143 | item.setMap(null);
1144 | }
1145 |
1146 | this.polygons = [];
1147 | };
1148 |
1149 | GMaps.prototype.getFromFusionTables = function(options) {
1150 | var events = options.events;
1151 |
1152 | delete options.events;
1153 |
1154 | var fusion_tables_options = options,
1155 | layer = new google.maps.FusionTablesLayer(fusion_tables_options);
1156 |
1157 | for (var ev in events) {
1158 | (function(object, name) {
1159 | google.maps.event.addListener(object, name, function(e) {
1160 | events[name].apply(this, [e]);
1161 | });
1162 | })(layer, ev);
1163 | }
1164 |
1165 | this.layers.push(layer);
1166 |
1167 | return layer;
1168 | };
1169 |
1170 | GMaps.prototype.loadFromFusionTables = function(options) {
1171 | var layer = this.getFromFusionTables(options);
1172 | layer.setMap(this.map);
1173 |
1174 | return layer;
1175 | };
1176 |
1177 | GMaps.prototype.getFromKML = function(options) {
1178 | var url = options.url,
1179 | events = options.events;
1180 |
1181 | delete options.url;
1182 | delete options.events;
1183 |
1184 | var kml_options = options,
1185 | layer = new google.maps.KmlLayer(url, kml_options);
1186 |
1187 | for (var ev in events) {
1188 | (function(object, name) {
1189 | google.maps.event.addListener(object, name, function(e) {
1190 | events[name].apply(this, [e]);
1191 | });
1192 | })(layer, ev);
1193 | }
1194 |
1195 | this.layers.push(layer);
1196 |
1197 | return layer;
1198 | };
1199 |
1200 | GMaps.prototype.loadFromKML = function(options) {
1201 | var layer = this.getFromKML(options);
1202 | layer.setMap(this.map);
1203 |
1204 | return layer;
1205 | };
1206 |
1207 | GMaps.prototype.addLayer = function(layerName, options) {
1208 | //var default_layers = ['weather', 'clouds', 'traffic', 'transit', 'bicycling', 'panoramio', 'places'];
1209 | options = options || {};
1210 | var layer;
1211 |
1212 | switch(layerName) {
1213 | case 'weather': this.singleLayers.weather = layer = new google.maps.weather.WeatherLayer();
1214 | break;
1215 | case 'clouds': this.singleLayers.clouds = layer = new google.maps.weather.CloudLayer();
1216 | break;
1217 | case 'traffic': this.singleLayers.traffic = layer = new google.maps.TrafficLayer();
1218 | break;
1219 | case 'transit': this.singleLayers.transit = layer = new google.maps.TransitLayer();
1220 | break;
1221 | case 'bicycling': this.singleLayers.bicycling = layer = new google.maps.BicyclingLayer();
1222 | break;
1223 | case 'panoramio':
1224 | this.singleLayers.panoramio = layer = new google.maps.panoramio.PanoramioLayer();
1225 | layer.setTag(options.filter);
1226 | delete options.filter;
1227 |
1228 | //click event
1229 | if (options.click) {
1230 | google.maps.event.addListener(layer, 'click', function(event) {
1231 | options.click(event);
1232 | delete options.click;
1233 | });
1234 | }
1235 | break;
1236 | case 'places':
1237 | this.singleLayers.places = layer = new google.maps.places.PlacesService(this.map);
1238 |
1239 | //search, nearbySearch, radarSearch callback, Both are the same
1240 | if (options.search || options.nearbySearch || options.radarSearch) {
1241 | var placeSearchRequest = {
1242 | bounds : options.bounds || null,
1243 | keyword : options.keyword || null,
1244 | location : options.location || null,
1245 | name : options.name || null,
1246 | radius : options.radius || null,
1247 | rankBy : options.rankBy || null,
1248 | types : options.types || null
1249 | };
1250 |
1251 | if (options.radarSearch) {
1252 | layer.radarSearch(placeSearchRequest, options.radarSearch);
1253 | }
1254 |
1255 | if (options.search) {
1256 | layer.search(placeSearchRequest, options.search);
1257 | }
1258 |
1259 | if (options.nearbySearch) {
1260 | layer.nearbySearch(placeSearchRequest, options.nearbySearch);
1261 | }
1262 | }
1263 |
1264 | //textSearch callback
1265 | if (options.textSearch) {
1266 | var textSearchRequest = {
1267 | bounds : options.bounds || null,
1268 | location : options.location || null,
1269 | query : options.query || null,
1270 | radius : options.radius || null
1271 | };
1272 |
1273 | layer.textSearch(textSearchRequest, options.textSearch);
1274 | }
1275 | break;
1276 | }
1277 |
1278 | if (layer !== undefined) {
1279 | if (typeof layer.setOptions == 'function') {
1280 | layer.setOptions(options);
1281 | }
1282 | if (typeof layer.setMap == 'function') {
1283 | layer.setMap(this.map);
1284 | }
1285 |
1286 | return layer;
1287 | }
1288 | };
1289 |
1290 | GMaps.prototype.removeLayer = function(layer) {
1291 | if (typeof(layer) == "string" && this.singleLayers[layer] !== undefined) {
1292 | this.singleLayers[layer].setMap(null);
1293 |
1294 | delete this.singleLayers[layer];
1295 | }
1296 | else {
1297 | for (var i = 0; i < this.layers.length; i++) {
1298 | if (this.layers[i] === layer) {
1299 | this.layers[i].setMap(null);
1300 | this.layers.splice(i, 1);
1301 |
1302 | break;
1303 | }
1304 | }
1305 | }
1306 | };
1307 |
1308 | var travelMode, unitSystem;
1309 |
1310 | GMaps.prototype.getRoutes = function(options) {
1311 | switch (options.travelMode) {
1312 | case 'bicycling':
1313 | travelMode = google.maps.TravelMode.BICYCLING;
1314 | break;
1315 | case 'transit':
1316 | travelMode = google.maps.TravelMode.TRANSIT;
1317 | break;
1318 | case 'driving':
1319 | travelMode = google.maps.TravelMode.DRIVING;
1320 | break;
1321 | default:
1322 | travelMode = google.maps.TravelMode.WALKING;
1323 | break;
1324 | }
1325 |
1326 | if (options.unitSystem === 'imperial') {
1327 | unitSystem = google.maps.UnitSystem.IMPERIAL;
1328 | }
1329 | else {
1330 | unitSystem = google.maps.UnitSystem.METRIC;
1331 | }
1332 |
1333 | var base_options = {
1334 | avoidHighways: false,
1335 | avoidTolls: false,
1336 | optimizeWaypoints: false,
1337 | waypoints: []
1338 | },
1339 | request_options = extend_object(base_options, options);
1340 |
1341 | request_options.origin = /string/.test(typeof options.origin) ? options.origin : new google.maps.LatLng(options.origin[0], options.origin[1]);
1342 | request_options.destination = /string/.test(typeof options.destination) ? options.destination : new google.maps.LatLng(options.destination[0], options.destination[1]);
1343 | request_options.travelMode = travelMode;
1344 | request_options.unitSystem = unitSystem;
1345 |
1346 | delete request_options.callback;
1347 | delete request_options.error;
1348 |
1349 | var self = this,
1350 | service = new google.maps.DirectionsService();
1351 |
1352 | service.route(request_options, function(result, status) {
1353 | if (status === google.maps.DirectionsStatus.OK) {
1354 | for (var r in result.routes) {
1355 | if (result.routes.hasOwnProperty(r)) {
1356 | self.routes.push(result.routes[r]);
1357 | }
1358 | }
1359 |
1360 | if (options.callback) {
1361 | options.callback(self.routes);
1362 | }
1363 | }
1364 | else {
1365 | if (options.error) {
1366 | options.error(result, status);
1367 | }
1368 | }
1369 | });
1370 | };
1371 |
1372 | GMaps.prototype.removeRoutes = function() {
1373 | this.routes = [];
1374 | };
1375 |
1376 | GMaps.prototype.getElevations = function(options) {
1377 | options = extend_object({
1378 | locations: [],
1379 | path : false,
1380 | samples : 256
1381 | }, options);
1382 |
1383 | if (options.locations.length > 0) {
1384 | if (options.locations[0].length > 0) {
1385 | options.locations = array_flat(array_map([options.locations], arrayToLatLng, false));
1386 | }
1387 | }
1388 |
1389 | var callback = options.callback;
1390 | delete options.callback;
1391 |
1392 | var service = new google.maps.ElevationService();
1393 |
1394 | //location request
1395 | if (!options.path) {
1396 | delete options.path;
1397 | delete options.samples;
1398 |
1399 | service.getElevationForLocations(options, function(result, status) {
1400 | if (callback && typeof(callback) === "function") {
1401 | callback(result, status);
1402 | }
1403 | });
1404 | //path request
1405 | } else {
1406 | var pathRequest = {
1407 | path : options.locations,
1408 | samples : options.samples
1409 | };
1410 |
1411 | service.getElevationAlongPath(pathRequest, function(result, status) {
1412 | if (callback && typeof(callback) === "function") {
1413 | callback(result, status);
1414 | }
1415 | });
1416 | }
1417 | };
1418 |
1419 | GMaps.prototype.cleanRoute = GMaps.prototype.removePolylines;
1420 |
1421 | GMaps.prototype.drawRoute = function(options) {
1422 | var self = this;
1423 |
1424 | this.getRoutes({
1425 | origin: options.origin,
1426 | destination: options.destination,
1427 | travelMode: options.travelMode,
1428 | waypoints: options.waypoints,
1429 | unitSystem: options.unitSystem,
1430 | error: options.error,
1431 | callback: function(e) {
1432 | if (e.length > 0) {
1433 | var polyline_options = {
1434 | path: e[e.length - 1].overview_path,
1435 | strokeColor: options.strokeColor,
1436 | strokeOpacity: options.strokeOpacity,
1437 | strokeWeight: options.strokeWeight
1438 | };
1439 |
1440 | if (options.hasOwnProperty("icons")) {
1441 | polyline_options.icons = options.icons;
1442 | }
1443 |
1444 | self.drawPolyline(polyline_options);
1445 |
1446 | if (options.callback) {
1447 | options.callback(e[e.length - 1]);
1448 | }
1449 | }
1450 | }
1451 | });
1452 | };
1453 |
1454 | GMaps.prototype.travelRoute = function(options) {
1455 | if (options.origin && options.destination) {
1456 | this.getRoutes({
1457 | origin: options.origin,
1458 | destination: options.destination,
1459 | travelMode: options.travelMode,
1460 | waypoints : options.waypoints,
1461 | unitSystem: options.unitSystem,
1462 | error: options.error,
1463 | callback: function(e) {
1464 | //start callback
1465 | if (e.length > 0 && options.start) {
1466 | options.start(e[e.length - 1]);
1467 | }
1468 |
1469 | //step callback
1470 | if (e.length > 0 && options.step) {
1471 | var route = e[e.length - 1];
1472 | if (route.legs.length > 0) {
1473 | var steps = route.legs[0].steps;
1474 | for (var i = 0, step; step = steps[i]; i++) {
1475 | step.step_number = i;
1476 | options.step(step, (route.legs[0].steps.length - 1));
1477 | }
1478 | }
1479 | }
1480 |
1481 | //end callback
1482 | if (e.length > 0 && options.end) {
1483 | options.end(e[e.length - 1]);
1484 | }
1485 | }
1486 | });
1487 | }
1488 | else if (options.route) {
1489 | if (options.route.legs.length > 0) {
1490 | var steps = options.route.legs[0].steps;
1491 | for (var i = 0, step; step = steps[i]; i++) {
1492 | step.step_number = i;
1493 | options.step(step);
1494 | }
1495 | }
1496 | }
1497 | };
1498 |
1499 | GMaps.prototype.drawSteppedRoute = function(options) {
1500 | var self = this;
1501 |
1502 | if (options.origin && options.destination) {
1503 | this.getRoutes({
1504 | origin: options.origin,
1505 | destination: options.destination,
1506 | travelMode: options.travelMode,
1507 | waypoints : options.waypoints,
1508 | error: options.error,
1509 | callback: function(e) {
1510 | //start callback
1511 | if (e.length > 0 && options.start) {
1512 | options.start(e[e.length - 1]);
1513 | }
1514 |
1515 | //step callback
1516 | if (e.length > 0 && options.step) {
1517 | var route = e[e.length - 1];
1518 | if (route.legs.length > 0) {
1519 | var steps = route.legs[0].steps;
1520 | for (var i = 0, step; step = steps[i]; i++) {
1521 | step.step_number = i;
1522 | var polyline_options = {
1523 | path: step.path,
1524 | strokeColor: options.strokeColor,
1525 | strokeOpacity: options.strokeOpacity,
1526 | strokeWeight: options.strokeWeight
1527 | };
1528 |
1529 | if (options.hasOwnProperty("icons")) {
1530 | polyline_options.icons = options.icons;
1531 | }
1532 |
1533 | self.drawPolyline(polyline_options);
1534 | options.step(step, (route.legs[0].steps.length - 1));
1535 | }
1536 | }
1537 | }
1538 |
1539 | //end callback
1540 | if (e.length > 0 && options.end) {
1541 | options.end(e[e.length - 1]);
1542 | }
1543 | }
1544 | });
1545 | }
1546 | else if (options.route) {
1547 | if (options.route.legs.length > 0) {
1548 | var steps = options.route.legs[0].steps;
1549 | for (var i = 0, step; step = steps[i]; i++) {
1550 | step.step_number = i;
1551 | var polyline_options = {
1552 | path: step.path,
1553 | strokeColor: options.strokeColor,
1554 | strokeOpacity: options.strokeOpacity,
1555 | strokeWeight: options.strokeWeight
1556 | };
1557 |
1558 | if (options.hasOwnProperty("icons")) {
1559 | polyline_options.icons = options.icons;
1560 | }
1561 |
1562 | self.drawPolyline(polyline_options);
1563 | options.step(step);
1564 | }
1565 | }
1566 | }
1567 | };
1568 |
1569 | GMaps.Route = function(options) {
1570 | this.origin = options.origin;
1571 | this.destination = options.destination;
1572 | this.waypoints = options.waypoints;
1573 |
1574 | this.map = options.map;
1575 | this.route = options.route;
1576 | this.step_count = 0;
1577 | this.steps = this.route.legs[0].steps;
1578 | this.steps_length = this.steps.length;
1579 |
1580 | var polyline_options = {
1581 | path: new google.maps.MVCArray(),
1582 | strokeColor: options.strokeColor,
1583 | strokeOpacity: options.strokeOpacity,
1584 | strokeWeight: options.strokeWeight
1585 | };
1586 |
1587 | if (options.hasOwnProperty("icons")) {
1588 | polyline_options.icons = options.icons;
1589 | }
1590 |
1591 | this.polyline = this.map.drawPolyline(polyline_options).getPath();
1592 | };
1593 |
1594 | GMaps.Route.prototype.getRoute = function(options) {
1595 | var self = this;
1596 |
1597 | this.map.getRoutes({
1598 | origin : this.origin,
1599 | destination : this.destination,
1600 | travelMode : options.travelMode,
1601 | waypoints : this.waypoints || [],
1602 | error: options.error,
1603 | callback : function() {
1604 | self.route = e[0];
1605 |
1606 | if (options.callback) {
1607 | options.callback.call(self);
1608 | }
1609 | }
1610 | });
1611 | };
1612 |
1613 | GMaps.Route.prototype.back = function() {
1614 | if (this.step_count > 0) {
1615 | this.step_count--;
1616 | var path = this.route.legs[0].steps[this.step_count].path;
1617 |
1618 | for (var p in path){
1619 | if (path.hasOwnProperty(p)){
1620 | this.polyline.pop();
1621 | }
1622 | }
1623 | }
1624 | };
1625 |
1626 | GMaps.Route.prototype.forward = function() {
1627 | if (this.step_count < this.steps_length) {
1628 | var path = this.route.legs[0].steps[this.step_count].path;
1629 |
1630 | for (var p in path){
1631 | if (path.hasOwnProperty(p)){
1632 | this.polyline.push(path[p]);
1633 | }
1634 | }
1635 | this.step_count++;
1636 | }
1637 | };
1638 |
1639 | GMaps.prototype.checkGeofence = function(lat, lng, fence) {
1640 | return fence.containsLatLng(new google.maps.LatLng(lat, lng));
1641 | };
1642 |
1643 | GMaps.prototype.checkMarkerGeofence = function(marker, outside_callback) {
1644 | if (marker.fences) {
1645 | for (var i = 0, fence; fence = marker.fences[i]; i++) {
1646 | var pos = marker.getPosition();
1647 | if (!this.checkGeofence(pos.lat(), pos.lng(), fence)) {
1648 | outside_callback(marker, fence);
1649 | }
1650 | }
1651 | }
1652 | };
1653 |
1654 | GMaps.prototype.toImage = function(options) {
1655 | var options = options || {},
1656 | static_map_options = {};
1657 |
1658 | static_map_options['size'] = options['size'] || [this.el.clientWidth, this.el.clientHeight];
1659 | static_map_options['lat'] = this.getCenter().lat();
1660 | static_map_options['lng'] = this.getCenter().lng();
1661 |
1662 | if (this.markers.length > 0) {
1663 | static_map_options['markers'] = [];
1664 |
1665 | for (var i = 0; i < this.markers.length; i++) {
1666 | static_map_options['markers'].push({
1667 | lat: this.markers[i].getPosition().lat(),
1668 | lng: this.markers[i].getPosition().lng()
1669 | });
1670 | }
1671 | }
1672 |
1673 | if (this.polylines.length > 0) {
1674 | var polyline = this.polylines[0];
1675 |
1676 | static_map_options['polyline'] = {};
1677 | static_map_options['polyline']['path'] = google.maps.geometry.encoding.encodePath(polyline.getPath());
1678 | static_map_options['polyline']['strokeColor'] = polyline.strokeColor
1679 | static_map_options['polyline']['strokeOpacity'] = polyline.strokeOpacity
1680 | static_map_options['polyline']['strokeWeight'] = polyline.strokeWeight
1681 | }
1682 |
1683 | return GMaps.staticMapURL(static_map_options);
1684 | };
1685 |
1686 | GMaps.staticMapURL = function(options){
1687 | var parameters = [],
1688 | data,
1689 | static_root = (location.protocol === 'file:' ? 'http:' : location.protocol ) + '//maps.googleapis.com/maps/api/staticmap';
1690 |
1691 | if (options.url) {
1692 | static_root = options.url;
1693 | delete options.url;
1694 | }
1695 |
1696 | static_root += '?';
1697 |
1698 | var markers = options.markers;
1699 |
1700 | delete options.markers;
1701 |
1702 | if (!markers && options.marker) {
1703 | markers = [options.marker];
1704 | delete options.marker;
1705 | }
1706 |
1707 | var styles = options.styles;
1708 |
1709 | delete options.styles;
1710 |
1711 | var polyline = options.polyline;
1712 | delete options.polyline;
1713 |
1714 | /** Map options **/
1715 | if (options.center) {
1716 | parameters.push('center=' + options.center);
1717 | delete options.center;
1718 | }
1719 | else if (options.address) {
1720 | parameters.push('center=' + options.address);
1721 | delete options.address;
1722 | }
1723 | else if (options.lat) {
1724 | parameters.push(['center=', options.lat, ',', options.lng].join(''));
1725 | delete options.lat;
1726 | delete options.lng;
1727 | }
1728 | else if (options.visible) {
1729 | var visible = encodeURI(options.visible.join('|'));
1730 | parameters.push('visible=' + visible);
1731 | }
1732 |
1733 | var size = options.size;
1734 | if (size) {
1735 | if (size.join) {
1736 | size = size.join('x');
1737 | }
1738 | delete options.size;
1739 | }
1740 | else {
1741 | size = '630x300';
1742 | }
1743 | parameters.push('size=' + size);
1744 |
1745 | if (!options.zoom && options.zoom !== false) {
1746 | options.zoom = 15;
1747 | }
1748 |
1749 | var sensor = options.hasOwnProperty('sensor') ? !!options.sensor : true;
1750 | delete options.sensor;
1751 | parameters.push('sensor=' + sensor);
1752 |
1753 | for (var param in options) {
1754 | if (options.hasOwnProperty(param)) {
1755 | parameters.push(param + '=' + options[param]);
1756 | }
1757 | }
1758 |
1759 | /** Markers **/
1760 | if (markers) {
1761 | var marker, loc;
1762 |
1763 | for (var i = 0; data = markers[i]; i++) {
1764 | marker = [];
1765 |
1766 | if (data.size && data.size !== 'normal') {
1767 | marker.push('size:' + data.size);
1768 | delete data.size;
1769 | }
1770 | else if (data.icon) {
1771 | marker.push('icon:' + encodeURI(data.icon));
1772 | delete data.icon;
1773 | }
1774 |
1775 | if (data.color) {
1776 | marker.push('color:' + data.color.replace('#', '0x'));
1777 | delete data.color;
1778 | }
1779 |
1780 | if (data.label) {
1781 | marker.push('label:' + data.label[0].toUpperCase());
1782 | delete data.label;
1783 | }
1784 |
1785 | loc = (data.address ? data.address : data.lat + ',' + data.lng);
1786 | delete data.address;
1787 | delete data.lat;
1788 | delete data.lng;
1789 |
1790 | for(var param in data){
1791 | if (data.hasOwnProperty(param)) {
1792 | marker.push(param + ':' + data[param]);
1793 | }
1794 | }
1795 |
1796 | if (marker.length || i === 0) {
1797 | marker.push(loc);
1798 | marker = marker.join('|');
1799 | parameters.push('markers=' + encodeURI(marker));
1800 | }
1801 | // New marker without styles
1802 | else {
1803 | marker = parameters.pop() + encodeURI('|' + loc);
1804 | parameters.push(marker);
1805 | }
1806 | }
1807 | }
1808 |
1809 | /** Map Styles **/
1810 | if (styles) {
1811 | for (var i = 0; i < styles.length; i++) {
1812 | var styleRule = [];
1813 | if (styles[i].featureType){
1814 | styleRule.push('feature:' + styles[i].featureType.toLowerCase());
1815 | }
1816 |
1817 | if (styles[i].elementType) {
1818 | styleRule.push('element:' + styles[i].elementType.toLowerCase());
1819 | }
1820 |
1821 | for (var j = 0; j < styles[i].stylers.length; j++) {
1822 | for (var p in styles[i].stylers[j]) {
1823 | var ruleArg = styles[i].stylers[j][p];
1824 | if (p == 'hue' || p == 'color') {
1825 | ruleArg = '0x' + ruleArg.substring(1);
1826 | }
1827 | styleRule.push(p + ':' + ruleArg);
1828 | }
1829 | }
1830 |
1831 | var rule = styleRule.join('|');
1832 | if (rule != '') {
1833 | parameters.push('style=' + rule);
1834 | }
1835 | }
1836 | }
1837 |
1838 | /** Polylines **/
1839 | function parseColor(color, opacity) {
1840 | if (color[0] === '#'){
1841 | color = color.replace('#', '0x');
1842 |
1843 | if (opacity) {
1844 | opacity = parseFloat(opacity);
1845 | opacity = Math.min(1, Math.max(opacity, 0));
1846 | if (opacity === 0) {
1847 | return '0x00000000';
1848 | }
1849 | opacity = (opacity * 255).toString(16);
1850 | if (opacity.length === 1) {
1851 | opacity += opacity;
1852 | }
1853 |
1854 | color = color.slice(0,8) + opacity;
1855 | }
1856 | }
1857 | return color;
1858 | }
1859 |
1860 | if (polyline) {
1861 | data = polyline;
1862 | polyline = [];
1863 |
1864 | if (data.strokeWeight) {
1865 | polyline.push('weight:' + parseInt(data.strokeWeight, 10));
1866 | }
1867 |
1868 | if (data.strokeColor) {
1869 | var color = parseColor(data.strokeColor, data.strokeOpacity);
1870 | polyline.push('color:' + color);
1871 | }
1872 |
1873 | if (data.fillColor) {
1874 | var fillcolor = parseColor(data.fillColor, data.fillOpacity);
1875 | polyline.push('fillcolor:' + fillcolor);
1876 | }
1877 |
1878 | var path = data.path;
1879 | if (path.join) {
1880 | for (var j=0, pos; pos=path[j]; j++) {
1881 | polyline.push(pos.join(','));
1882 | }
1883 | }
1884 | else {
1885 | polyline.push('enc:' + path);
1886 | }
1887 |
1888 | polyline = polyline.join('|');
1889 | parameters.push('path=' + encodeURI(polyline));
1890 | }
1891 |
1892 | /** Retina support **/
1893 | var dpi = window.devicePixelRatio || 1;
1894 | parameters.push('scale=' + dpi);
1895 |
1896 | parameters = parameters.join('&');
1897 | return static_root + parameters;
1898 | };
1899 |
1900 | GMaps.prototype.addMapType = function(mapTypeId, options) {
1901 | if (options.hasOwnProperty("getTileUrl") && typeof(options["getTileUrl"]) == "function") {
1902 | options.tileSize = options.tileSize || new google.maps.Size(256, 256);
1903 |
1904 | var mapType = new google.maps.ImageMapType(options);
1905 |
1906 | this.map.mapTypes.set(mapTypeId, mapType);
1907 | }
1908 | else {
1909 | throw "'getTileUrl' function required.";
1910 | }
1911 | };
1912 |
1913 | GMaps.prototype.addOverlayMapType = function(options) {
1914 | if (options.hasOwnProperty("getTile") && typeof(options["getTile"]) == "function") {
1915 | var overlayMapTypeIndex = options.index;
1916 |
1917 | delete options.index;
1918 |
1919 | this.map.overlayMapTypes.insertAt(overlayMapTypeIndex, options);
1920 | }
1921 | else {
1922 | throw "'getTile' function required.";
1923 | }
1924 | };
1925 |
1926 | GMaps.prototype.removeOverlayMapType = function(overlayMapTypeIndex) {
1927 | this.map.overlayMapTypes.removeAt(overlayMapTypeIndex);
1928 | };
1929 |
1930 | GMaps.prototype.addStyle = function(options) {
1931 | var styledMapType = new google.maps.StyledMapType(options.styles, { name: options.styledMapName });
1932 |
1933 | this.map.mapTypes.set(options.mapTypeId, styledMapType);
1934 | };
1935 |
1936 | GMaps.prototype.setStyle = function(mapTypeId) {
1937 | this.map.setMapTypeId(mapTypeId);
1938 | };
1939 |
1940 | GMaps.prototype.createPanorama = function(streetview_options) {
1941 | if (!streetview_options.hasOwnProperty('lat') || !streetview_options.hasOwnProperty('lng')) {
1942 | streetview_options.lat = this.getCenter().lat();
1943 | streetview_options.lng = this.getCenter().lng();
1944 | }
1945 |
1946 | this.panorama = GMaps.createPanorama(streetview_options);
1947 |
1948 | this.map.setStreetView(this.panorama);
1949 |
1950 | return this.panorama;
1951 | };
1952 |
1953 | GMaps.createPanorama = function(options) {
1954 | var el = getElementById(options.el, options.context);
1955 |
1956 | options.position = new google.maps.LatLng(options.lat, options.lng);
1957 |
1958 | delete options.el;
1959 | delete options.context;
1960 | delete options.lat;
1961 | delete options.lng;
1962 |
1963 | var streetview_events = ['closeclick', 'links_changed', 'pano_changed', 'position_changed', 'pov_changed', 'resize', 'visible_changed'],
1964 | streetview_options = extend_object({visible : true}, options);
1965 |
1966 | for (var i = 0; i < streetview_events.length; i++) {
1967 | delete streetview_options[streetview_events[i]];
1968 | }
1969 |
1970 | var panorama = new google.maps.StreetViewPanorama(el, streetview_options);
1971 |
1972 | for (var i = 0; i < streetview_events.length; i++) {
1973 | (function(object, name) {
1974 | if (options[name]) {
1975 | google.maps.event.addListener(object, name, function(){
1976 | options[name].apply(this);
1977 | });
1978 | }
1979 | })(panorama, streetview_events[i]);
1980 | }
1981 |
1982 | return panorama;
1983 | };
1984 |
1985 | GMaps.prototype.on = function(event_name, handler) {
1986 | return GMaps.on(event_name, this, handler);
1987 | };
1988 |
1989 | GMaps.prototype.off = function(event_name) {
1990 | GMaps.off(event_name, this);
1991 | };
1992 |
1993 | GMaps.custom_events = ['marker_added', 'marker_removed', 'polyline_added', 'polyline_removed', 'polygon_added', 'polygon_removed', 'geolocated', 'geolocation_failed'];
1994 |
1995 | GMaps.on = function(event_name, object, handler) {
1996 | if (GMaps.custom_events.indexOf(event_name) == -1) {
1997 | if(object instanceof GMaps) object = object.map;
1998 | return google.maps.event.addListener(object, event_name, handler);
1999 | }
2000 | else {
2001 | var registered_event = {
2002 | handler : handler,
2003 | eventName : event_name
2004 | };
2005 |
2006 | object.registered_events[event_name] = object.registered_events[event_name] || [];
2007 | object.registered_events[event_name].push(registered_event);
2008 |
2009 | return registered_event;
2010 | }
2011 | };
2012 |
2013 | GMaps.off = function(event_name, object) {
2014 | if (GMaps.custom_events.indexOf(event_name) == -1) {
2015 | if(object instanceof GMaps) object = object.map;
2016 | google.maps.event.clearListeners(object, event_name);
2017 | }
2018 | else {
2019 | object.registered_events[event_name] = [];
2020 | }
2021 | };
2022 |
2023 | GMaps.fire = function(event_name, object, scope) {
2024 | if (GMaps.custom_events.indexOf(event_name) == -1) {
2025 | google.maps.event.trigger(object, event_name, Array.prototype.slice.apply(arguments).slice(2));
2026 | }
2027 | else {
2028 | if(event_name in scope.registered_events) {
2029 | var firing_events = scope.registered_events[event_name];
2030 |
2031 | for(var i = 0; i < firing_events.length; i++) {
2032 | (function(handler, scope, object) {
2033 | handler.apply(scope, [object]);
2034 | })(firing_events[i]['handler'], scope, object);
2035 | }
2036 | }
2037 | }
2038 | };
2039 |
2040 | GMaps.geolocate = function(options) {
2041 | var complete_callback = options.always || options.complete;
2042 |
2043 | if (navigator.geolocation) {
2044 | navigator.geolocation.getCurrentPosition(function(position) {
2045 | options.success(position);
2046 |
2047 | if (complete_callback) {
2048 | complete_callback();
2049 | }
2050 | }, function(error) {
2051 | options.error(error);
2052 |
2053 | if (complete_callback) {
2054 | complete_callback();
2055 | }
2056 | }, options.options);
2057 | }
2058 | else {
2059 | options.not_supported();
2060 |
2061 | if (complete_callback) {
2062 | complete_callback();
2063 | }
2064 | }
2065 | };
2066 |
2067 | GMaps.geocode = function(options) {
2068 | this.geocoder = new google.maps.Geocoder();
2069 | var callback = options.callback;
2070 | if (options.hasOwnProperty('lat') && options.hasOwnProperty('lng')) {
2071 | options.latLng = new google.maps.LatLng(options.lat, options.lng);
2072 | }
2073 |
2074 | delete options.lat;
2075 | delete options.lng;
2076 | delete options.callback;
2077 |
2078 | this.geocoder.geocode(options, function(results, status) {
2079 | callback(results, status);
2080 | });
2081 | };
2082 |
2083 | //==========================
2084 | // Polygon containsLatLng
2085 | // https://github.com/tparkin/Google-Maps-Point-in-Polygon
2086 | // Poygon getBounds extension - google-maps-extensions
2087 | // http://code.google.com/p/google-maps-extensions/source/browse/google.maps.Polygon.getBounds.js
2088 | if (!google.maps.Polygon.prototype.getBounds) {
2089 | google.maps.Polygon.prototype.getBounds = function(latLng) {
2090 | var bounds = new google.maps.LatLngBounds();
2091 | var paths = this.getPaths();
2092 | var path;
2093 |
2094 | for (var p = 0; p < paths.getLength(); p++) {
2095 | path = paths.getAt(p);
2096 | for (var i = 0; i < path.getLength(); i++) {
2097 | bounds.extend(path.getAt(i));
2098 | }
2099 | }
2100 |
2101 | return bounds;
2102 | };
2103 | }
2104 |
2105 | if (!google.maps.Polygon.prototype.containsLatLng) {
2106 | // Polygon containsLatLng - method to determine if a latLng is within a polygon
2107 | google.maps.Polygon.prototype.containsLatLng = function(latLng) {
2108 | // Exclude points outside of bounds as there is no way they are in the poly
2109 | var bounds = this.getBounds();
2110 |
2111 | if (bounds !== null && !bounds.contains(latLng)) {
2112 | return false;
2113 | }
2114 |
2115 | // Raycast point in polygon method
2116 | var inPoly = false;
2117 |
2118 | var numPaths = this.getPaths().getLength();
2119 | for (var p = 0; p < numPaths; p++) {
2120 | var path = this.getPaths().getAt(p);
2121 | var numPoints = path.getLength();
2122 | var j = numPoints - 1;
2123 |
2124 | for (var i = 0; i < numPoints; i++) {
2125 | var vertex1 = path.getAt(i);
2126 | var vertex2 = path.getAt(j);
2127 |
2128 | if (vertex1.lng() < latLng.lng() && vertex2.lng() >= latLng.lng() || vertex2.lng() < latLng.lng() && vertex1.lng() >= latLng.lng()) {
2129 | if (vertex1.lat() + (latLng.lng() - vertex1.lng()) / (vertex2.lng() - vertex1.lng()) * (vertex2.lat() - vertex1.lat()) < latLng.lat()) {
2130 | inPoly = !inPoly;
2131 | }
2132 | }
2133 |
2134 | j = i;
2135 | }
2136 | }
2137 |
2138 | return inPoly;
2139 | };
2140 | }
2141 |
2142 | if (!google.maps.Circle.prototype.containsLatLng) {
2143 | google.maps.Circle.prototype.containsLatLng = function(latLng) {
2144 | if (google.maps.geometry) {
2145 | return google.maps.geometry.spherical.computeDistanceBetween(this.getCenter(), latLng) <= this.getRadius();
2146 | }
2147 | else {
2148 | return true;
2149 | }
2150 | };
2151 | }
2152 |
2153 | google.maps.LatLngBounds.prototype.containsLatLng = function(latLng) {
2154 | return this.contains(latLng);
2155 | };
2156 |
2157 | google.maps.Marker.prototype.setFences = function(fences) {
2158 | this.fences = fences;
2159 | };
2160 |
2161 | google.maps.Marker.prototype.addFence = function(fence) {
2162 | this.fences.push(fence);
2163 | };
2164 |
2165 | google.maps.Marker.prototype.getId = function() {
2166 | return this['__gm_id'];
2167 | };
2168 |
2169 | //==========================
2170 | // Array indexOf
2171 | // https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/indexOf
2172 | if (!Array.prototype.indexOf) {
2173 | Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {
2174 | "use strict";
2175 | if (this == null) {
2176 | throw new TypeError();
2177 | }
2178 | var t = Object(this);
2179 | var len = t.length >>> 0;
2180 | if (len === 0) {
2181 | return -1;
2182 | }
2183 | var n = 0;
2184 | if (arguments.length > 1) {
2185 | n = Number(arguments[1]);
2186 | if (n != n) { // shortcut for verifying if it's NaN
2187 | n = 0;
2188 | } else if (n != 0 && n != Infinity && n != -Infinity) {
2189 | n = (n > 0 || -1) * Math.floor(Math.abs(n));
2190 | }
2191 | }
2192 | if (n >= len) {
2193 | return -1;
2194 | }
2195 | var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0);
2196 | for (; k < len; k++) {
2197 | if (k in t && t[k] === searchElement) {
2198 | return k;
2199 | }
2200 | }
2201 | return -1;
2202 | }
2203 | }
2204 |
2205 | return GMaps;
2206 | }));
2207 |
--------------------------------------------------------------------------------
/vendors/js/jquery.waypoints.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | Waypoints - 3.1.1
3 | Copyright © 2011-2015 Caleb Troughton
4 | Licensed under the MIT license.
5 | https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
6 | */
7 | !function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var n in t){var r=t[n];for(var s in this.waypoints[n]){var a,l,h,p,u,c=this.waypoints[n][s],d=c.options.offset,f=c.triggerPoint,w=0,y=null==f;c.element!==c.element.window&&(w=c.adapter.offset()[r.offsetProp]),"function"==typeof d?d=d.apply(c):"string"==typeof d&&(d=parseFloat(d),c.options.offset.indexOf("%")>-1&&(d=Math.ceil(r.contextDimension*d/100))),a=r.contextScroll-r.contextOffset,c.triggerPoint=w+a-d,l=f=r.oldScroll,p=l&&h,u=!l&&!h,!y&&p?(c.queueTrigger(r.backward),o[c.group.id]=c.group):!y&&u?(c.queueTrigger(r.forward),o[c.group.id]=c.group):y&&r.oldScroll>=c.triggerPoint&&(c.queueTrigger(r.forward),o[c.group.id]=c.group)}}for(var g in o)o[g].flushTriggers();return this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();
--------------------------------------------------------------------------------