jekyll-theme-ici3d 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/_data/publications/pulliam2012.yml +12 -0
- data/_data/team/ackley.yml +25 -0
- data/_data/team/are.yml +22 -0
- data/_data/team/beauclair.yml +14 -0
- data/_data/team/bekele.yml +14 -0
- data/_data/team/bellan.yml +46 -0
- data/_data/team/bolton.yml +33 -0
- data/_data/team/borchering.yml +65 -0
- data/_data/team/brook.yml +15 -0
- data/_data/team/brown.yml +18 -0
- data/_data/team/bruce.yml +26 -0
- data/_data/team/brucePA.yml +9 -0
- data/_data/team/deleo.yml +49 -0
- data/_data/team/delva.yml +15 -0
- data/_data/team/dushoff.yml +52 -0
- data/_data/team/ervin.yml +10 -0
- data/_data/team/faikah.yml +26 -0
- data/_data/team/grebe.yml +36 -0
- data/_data/team/hargrove.yml +36 -0
- data/_data/team/hitchcock.yml +10 -0
- data/_data/team/hladish.yml +45 -0
- data/_data/team/january.yml +9 -0
- data/_data/team/kassanjee.yml +20 -0
- data/_data/team/li.yml +45 -0
- data/_data/team/lord.yml +20 -0
- data/_data/team/marx.yml +14 -0
- data/_data/team/mcintosh.yml +20 -0
- data/_data/team/mhlanga.yml +22 -0
- data/_data/team/mthombothi.yml +23 -0
- data/_data/team/mugwagwa.yml +18 -0
- data/_data/team/mwangi.yml +24 -0
- data/_data/team/mwebaze.yml +20 -0
- data/_data/team/ndifon.yml +18 -0
- data/_data/team/ngonghala.yml +30 -0
- data/_data/team/nondi.yml +14 -0
- data/_data/team/nyamai.yml +18 -0
- data/_data/team/october.yml +9 -0
- data/_data/team/paradza.yml +19 -0
- data/_data/team/pearson.yml +58 -0
- data/_data/team/porco.yml +14 -0
- data/_data/team/pulliam.yml +51 -0
- data/_data/team/reiner.yml +18 -0
- data/_data/team/scheepers.yml +9 -0
- data/_data/team/scott.yml +51 -0
- data/_data/team/sempa.yml +32 -0
- data/_data/team/sikhondze.yml +14 -0
- data/_data/team/template.yml +18 -0
- data/_data/team/ujeneza.yml +38 -0
- data/_data/team/vanschalkwyk.yml +32 -0
- data/_data/team/welte.yml +18 -0
- data/_data/team/williams.yml +28 -0
- data/_data/team/ying.yml +21 -0
- data/_includes/MedPH/.DS_Store +0 -0
- data/_includes/MedPH/assignments.md +42 -0
- data/_includes/MedPH/assignmentsStandard.md +74 -0
- data/_includes/MedPH/computerlabs.md +38 -0
- data/_includes/MedPH/computerlabsStandard.md +38 -0
- data/_includes/MedPH/lectures.md +12 -0
- data/_includes/MedPH/references.md +71 -0
- data/_includes/MedPH/schedule.md +85 -0
- data/_includes/MedPH/scheduleStandard.md +93 -0
- data/_includes/bottomTable.html +5 -0
- data/_includes/centerTable.html +5 -0
- data/_includes/clinicNavbar.html +46 -0
- data/_includes/contact.html +12 -0
- data/_includes/directors.html +47 -0
- data/_includes/footer.html +23 -0
- data/_includes/head.html +28 -0
- data/_includes/header.html +31 -0
- data/_includes/hero.html +14 -0
- data/_includes/index.md +9 -0
- data/_includes/mission.html +13 -0
- data/_includes/navStructure.html +70 -0
- data/_includes/navbar.html +65 -0
- data/_includes/outputs.html +74 -0
- data/_includes/partners.html +75 -0
- data/_includes/profile.html +67 -0
- data/_includes/publications/faculty.md +13 -0
- data/_includes/publications/instructional.md +5 -0
- data/_includes/publications/participant.md +33 -0
- data/_includes/talk.html +12 -0
- data/_includes/topTable.html +6 -0
- data/_includes/upcoming.html +43 -0
- data/_layouts/clinic.liquid +43 -0
- data/_layouts/example.liquid +601 -0
- data/_layouts/main.liquid +34 -0
- data/_layouts/medph.page.liquid +60 -0
- data/_layouts/page.liquid +41 -0
- data/_layouts/people.page.liquid +27 -0
- data/_layouts/profile.liquid +44 -0
- data/_layouts/redirect.liquid +15 -0
- data/_layouts/talk.liquid +42 -0
- data/assets/css/academicons.css +249 -0
- data/assets/css/academicons.min.css +1 -0
- data/assets/css/bootstrap.css +6760 -0
- data/assets/css/bootstrap.css.map +1 -0
- data/assets/css/bootstrap.min.css +6 -0
- data/assets/css/font-awesome.css +2086 -0
- data/assets/css/font-awesome.min.css +4 -0
- data/assets/css/ie.css +5 -0
- data/assets/css/main-one-page.css +6433 -0
- data/assets/css/main.css +7160 -0
- data/assets/css/my-custom-styles.css +14 -0
- data/assets/css/shop-main.css +3117 -0
- data/assets/css/skins/brown.css +299 -0
- data/assets/css/skins/deepskyblue.css +299 -0
- data/assets/css/skins/goldenrod.css +299 -0
- data/assets/css/skins/ici3dBlue.css +229 -0
- data/assets/css/skins/ici3dBlue.css.map +7 -0
- data/assets/css/skins/ici3dIndigo.css +229 -0
- data/assets/css/skins/ici3dIndigo.css.map +7 -0
- data/assets/css/skins/indianred.css +299 -0
- data/assets/css/skins/lightgreen.css +299 -0
- data/assets/css/skins/orange.css +299 -0
- data/assets/css/skins/seagreen.css +299 -0
- data/assets/css/skins/slategray.css +299 -0
- data/assets/fonts/academicons.eot +0 -0
- data/assets/fonts/academicons.svg +66 -0
- data/assets/fonts/academicons.ttf +0 -0
- data/assets/fonts/academicons.woff +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +655 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/assets/fonts/glyphicons-halflings-regular.svg +288 -0
- data/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/assets/ico/favicon.ico +0 -0
- data/assets/ico/favicon.png +0 -0
- data/assets/ico/ici3d114x114.png +0 -0
- data/assets/ico/ici3d144x144.png +0 -0
- data/assets/ico/ici3d57x57.png +0 -0
- data/assets/ico/ici3d72x72.png +0 -0
- data/assets/img/8hearts.png +0 -0
- data/assets/img/MMED2015_tutorials.jpg +0 -0
- data/assets/img/badge.png +0 -0
- data/assets/img/blog/balloon-med.jpg +0 -0
- data/assets/img/blog/balloon.jpg +0 -0
- data/assets/img/blog/buildings-med.jpg +0 -0
- data/assets/img/blog/buildings.jpg +0 -0
- data/assets/img/blog/people-med.jpg +0 -0
- data/assets/img/blog/people.jpg +0 -0
- data/assets/img/bx_loader.gif +0 -0
- data/assets/img/clients/logo1.png +0 -0
- data/assets/img/clients/logo2.png +0 -0
- data/assets/img/clients/logo3.png +0 -0
- data/assets/img/clients/logo4.png +0 -0
- data/assets/img/clients/logo5.png +0 -0
- data/assets/img/flags/China.png +0 -0
- data/assets/img/flags/Germany.png +0 -0
- data/assets/img/flags/Japan.png +0 -0
- data/assets/img/flags/South-Africa.png +0 -0
- data/assets/img/flags/United-Kingdom.png +0 -0
- data/assets/img/flags/United-States.png +0 -0
- data/assets/img/free.png +0 -0
- data/assets/img/fullscreen-bg.jpg +0 -0
- data/assets/img/gray_jean.png +0 -0
- data/assets/img/hero-unit-bg.png +0 -0
- data/assets/img/hero-unit-obj.png +0 -0
- data/assets/img/hero-unit-obj2.png +0 -0
- data/assets/img/hero-unit-obj3.png +0 -0
- data/assets/img/intro-img.png +0 -0
- data/assets/img/location-pin.png +0 -0
- data/assets/img/logo/ici3d-logo-light.png +0 -0
- data/assets/img/logo/ici3d-logo-nav.png +0 -0
- data/assets/img/logo/ici3d-logo-white.png +0 -0
- data/assets/img/logo/ici3d-logo-white_v2.png +0 -0
- data/assets/img/logo/ici3d-logo-white_v3.png +0 -0
- data/assets/img/logo/repute-logo-light-brown.png +0 -0
- data/assets/img/logo/repute-logo-light-deepskyblue.png +0 -0
- data/assets/img/logo/repute-logo-light-goldenrod.png +0 -0
- data/assets/img/logo/repute-logo-light-indianred.png +0 -0
- data/assets/img/logo/repute-logo-light-lightgreen.png +0 -0
- data/assets/img/logo/repute-logo-light-orange.png +0 -0
- data/assets/img/logo/repute-logo-light-seagreen.png +0 -0
- data/assets/img/logo/repute-logo-light-slategray.png +0 -0
- data/assets/img/logo/repute-logo-light.png +0 -0
- data/assets/img/logo/repute-logo-nav-brown.png +0 -0
- data/assets/img/logo/repute-logo-nav-deepskyblue.png +0 -0
- data/assets/img/logo/repute-logo-nav-goldenrod.png +0 -0
- data/assets/img/logo/repute-logo-nav-indianred.png +0 -0
- data/assets/img/logo/repute-logo-nav-light.png +0 -0
- data/assets/img/logo/repute-logo-nav-lightgreen.png +0 -0
- data/assets/img/logo/repute-logo-nav-orange.png +0 -0
- data/assets/img/logo/repute-logo-nav-seagreen.png +0 -0
- data/assets/img/logo/repute-logo-nav-slategray.png +0 -0
- data/assets/img/logo/repute-logo-nav.png +0 -0
- data/assets/img/mentors/are.jpg +0 -0
- data/assets/img/mentors/bolton.jpg +0 -0
- data/assets/img/mentors/brown.jpg +0 -0
- data/assets/img/mentors/kassanjee.jpg +0 -0
- data/assets/img/mentors/mhlanga.jpg +0 -0
- data/assets/img/mentors/nyamai.png +0 -0
- data/assets/img/news/featured-news.png +0 -0
- data/assets/img/news/news1.png +0 -0
- data/assets/img/news/news2.png +0 -0
- data/assets/img/news/news3.png +0 -0
- data/assets/img/news/news4.png +0 -0
- data/assets/img/news/news5.png +0 -0
- data/assets/img/other/snoep.jpg +0 -0
- data/assets/img/page-header-bg.png +0 -0
- data/assets/img/participants/SempaJB.jpg +0 -0
- data/assets/img/partners/AIMS-SA.jpg +0 -0
- data/assets/img/partners/CEMA_UN.pdf +0 -0
- data/assets/img/partners/CEMA_UN.png +0 -0
- data/assets/img/partners/CIDID.png +0 -0
- data/assets/img/partners/CIDID_long.png +0 -0
- data/assets/img/partners/Colby.png +0 -0
- data/assets/img/partners/MIDAS.png +0 -0
- data/assets/img/partners/McMaster.jpg +0 -0
- data/assets/img/partners/PSU.png +0 -0
- data/assets/img/partners/Proctor.png +0 -0
- data/assets/img/partners/SACEMA_228.png +0 -0
- data/assets/img/partners/UCSF.png +0 -0
- data/assets/img/partners/UF.png +0 -0
- data/assets/img/partners/UGA_228.png +0 -0
- data/assets/img/pattern-geometry.png +0 -0
- data/assets/img/portfolio/800x500/work1.png +0 -0
- data/assets/img/portfolio/800x500/work2.png +0 -0
- data/assets/img/portfolio/800x500/work3.png +0 -0
- data/assets/img/portfolio/800x500/work4.png +0 -0
- data/assets/img/portfolio/800x500/work5.png +0 -0
- data/assets/img/portfolio/800x500/work6.png +0 -0
- data/assets/img/portfolio/800x500/work7.png +0 -0
- data/assets/img/portfolio/800x500/work8.png +0 -0
- data/assets/img/portfolio/800x800/work1.png +0 -0
- data/assets/img/portfolio/800x800/work2.png +0 -0
- data/assets/img/portfolio/800x800/work3.png +0 -0
- data/assets/img/portfolio/800x800/work4.png +0 -0
- data/assets/img/portfolio/800x800/work5.png +0 -0
- data/assets/img/portfolio/800x800/work6.png +0 -0
- data/assets/img/portfolio/800x800/work7.png +0 -0
- data/assets/img/portfolio/800x800/work8.png +0 -0
- data/assets/img/portfolio/single/bicycle.jpg +0 -0
- data/assets/img/portfolio/single/blurred_lines.jpg +0 -0
- data/assets/img/portfolio/single/edge.jpg +0 -0
- data/assets/img/scholars/ackley.jpg +0 -0
- data/assets/img/scholars/beauclair.jpg +0 -0
- data/assets/img/scholars/beauclair.png +0 -0
- data/assets/img/scholars/bekele.jpg +0 -0
- data/assets/img/scholars/lord.jpg +0 -0
- data/assets/img/scholars/marx.jpg +0 -0
- data/assets/img/scholars/mcintosh.jpg +0 -0
- data/assets/img/scholars/mwebaze.jpg +0 -0
- data/assets/img/scholars/nondi.jpg +0 -0
- data/assets/img/scholars/sempa.jpg +0 -0
- data/assets/img/scholars/ying.jpg +0 -0
- data/assets/img/sliders/full-slide-color.jpg +0 -0
- data/assets/img/sliders/full-slide-color2.jpg +0 -0
- data/assets/img/sliders/full-slide-color3.jpg +0 -0
- data/assets/img/sliders/full-slide.jpg +0 -0
- data/assets/img/sliders/full-slide2.jpg +0 -0
- data/assets/img/sliders/full-slide3.jpg +0 -0
- data/assets/img/sliders/slider1-h500.png +0 -0
- data/assets/img/sliders/slider2-h500.png +0 -0
- data/assets/img/sliders/slider3-h500.png +0 -0
- data/assets/img/team/bellan.jpg +0 -0
- data/assets/img/team/borchering.jpg +0 -0
- data/assets/img/team/brook.jpg +0 -0
- data/assets/img/team/bruce.jpg +0 -0
- data/assets/img/team/deleo.jpg +0 -0
- data/assets/img/team/delva.jpg +0 -0
- data/assets/img/team/dushoff.jpg +0 -0
- data/assets/img/team/ervin.jpg +0 -0
- data/assets/img/team/grebe.jpg +0 -0
- data/assets/img/team/hargrove.jpg +0 -0
- data/assets/img/team/hitchcock.jpg +0 -0
- data/assets/img/team/hladish.jpg +0 -0
- data/assets/img/team/january.jpg +0 -0
- data/assets/img/team/li.jpg +0 -0
- data/assets/img/team/mthombothi.jpg +0 -0
- data/assets/img/team/mugwagwa.jpg +0 -0
- data/assets/img/team/mwangi.png +0 -0
- data/assets/img/team/ndifon.jpg +0 -0
- data/assets/img/team/ngonghala.jpg +0 -0
- data/assets/img/team/october.jpg +0 -0
- data/assets/img/team/paradza.jpg +0 -0
- data/assets/img/team/pearson.jpg +0 -0
- data/assets/img/team/porco.jpg +0 -0
- data/assets/img/team/pulliam.jpg +0 -0
- data/assets/img/team/reiner.jpg +0 -0
- data/assets/img/team/scheepers.jpg +0 -0
- data/assets/img/team/scott.jpg +0 -0
- data/assets/img/team/ujeneza.jpg +0 -0
- data/assets/img/team/vanschalkwyk.jpg +0 -0
- data/assets/img/team/welte.jpg +0 -0
- data/assets/img/team/williams.jpg +0 -0
- data/assets/img/testimonial-bg.png +0 -0
- data/assets/img/transmission.png +0 -0
- data/assets/js/bootstrap.js +2363 -0
- data/assets/js/bootstrap.min.js +7 -0
- data/assets/js/jquery-2.1.1.min.js +4 -0
- data/assets/js/plugins/autohidingnavbar/jquery.bootstrap-autohidingnavbar.js +213 -0
- data/assets/js/plugins/autohidingnavbar/jquery.bootstrap-autohidingnavbar.min.js +9 -0
- data/assets/js/plugins/bootstrap-datepicker/bootstrap-datepicker.js +474 -0
- data/assets/js/plugins/bootstrap-multiselect/bootstrap-multiselect.js +994 -0
- data/assets/js/plugins/daterangepicker/daterangepicker.js +868 -0
- data/assets/js/plugins/easing/jquery.easing.js +205 -0
- data/assets/js/plugins/easing/jquery.easing.min.js +71 -0
- data/assets/js/plugins/fitvids/jquery.fitvids.js +83 -0
- data/assets/js/plugins/google-map/google-map.js +160 -0
- data/assets/js/plugins/isotope/isotope.pkgd.js +4049 -0
- data/assets/js/plugins/isotope/isotope.pkgd.min.js +8 -0
- data/assets/js/plugins/jquery-cycle/jquery.cycle.all.js +1543 -0
- data/assets/js/plugins/jquery-easypiechart/jquery.easypiechart.js +359 -0
- data/assets/js/plugins/jquery-easypiechart/jquery.easypiechart.min.js +9 -0
- data/assets/js/plugins/jquery-maskedinput/jquery.masked-input.js +338 -0
- data/assets/js/plugins/jquery-maskedinput/jquery.masked-input.min.js +7 -0
- data/assets/js/plugins/maximage/jquery.maximage.js +697 -0
- data/assets/js/plugins/maximage/jquery.maximage.min.js +4 -0
- data/assets/js/plugins/moment/moment.js +1662 -0
- data/assets/js/plugins/moment/moment.min.js +6 -0
- data/assets/js/plugins/parsley-validation/parsley.js +2074 -0
- data/assets/js/plugins/parsley-validation/parsley.min.js +9 -0
- data/assets/js/plugins/scrollto/jquery.localscroll-1.2.7-min.js +9 -0
- data/assets/js/plugins/scrollto/jquery.localscroll-1.2.7.js +133 -0
- data/assets/js/plugins/scrollto/jquery.scrollTo-1.4.3.1-min.js +7 -0
- data/assets/js/plugins/scrollto/jquery.scrollTo-1.4.3.1.js +218 -0
- data/assets/js/plugins/slick/slick.js +2643 -0
- data/assets/js/plugins/slick/slick.min.js +18 -0
- data/assets/js/plugins/stellar/jquery.stellar.js +660 -0
- data/assets/js/plugins/stellar/jquery.stellar.min.js +2 -0
- data/assets/js/repute-scripts.js +539 -0
- metadata +385 -0
@@ -0,0 +1,205 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
3
|
+
*
|
4
|
+
* Uses the built in easing capabilities added In jQuery 1.1
|
5
|
+
* to offer multiple easing options
|
6
|
+
*
|
7
|
+
* TERMS OF USE - jQuery Easing
|
8
|
+
*
|
9
|
+
* Open source under the BSD License.
|
10
|
+
*
|
11
|
+
* Copyright © 2008 George McGinley Smith
|
12
|
+
* All rights reserved.
|
13
|
+
*
|
14
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
15
|
+
* are permitted provided that the following conditions are met:
|
16
|
+
*
|
17
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
18
|
+
* conditions and the following disclaimer.
|
19
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
20
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
21
|
+
* provided with the distribution.
|
22
|
+
*
|
23
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
24
|
+
* or promote products derived from this software without specific prior written permission.
|
25
|
+
*
|
26
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
27
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
28
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
29
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
30
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
31
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
32
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
33
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
34
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
35
|
+
*
|
36
|
+
*/
|
37
|
+
|
38
|
+
// t: current time, b: begInnIng value, c: change In value, d: duration
|
39
|
+
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
40
|
+
|
41
|
+
jQuery.extend( jQuery.easing,
|
42
|
+
{
|
43
|
+
def: 'easeOutQuad',
|
44
|
+
swing: function (x, t, b, c, d) {
|
45
|
+
//alert(jQuery.easing.default);
|
46
|
+
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
47
|
+
},
|
48
|
+
easeInQuad: function (x, t, b, c, d) {
|
49
|
+
return c*(t/=d)*t + b;
|
50
|
+
},
|
51
|
+
easeOutQuad: function (x, t, b, c, d) {
|
52
|
+
return -c *(t/=d)*(t-2) + b;
|
53
|
+
},
|
54
|
+
easeInOutQuad: function (x, t, b, c, d) {
|
55
|
+
if ((t/=d/2) < 1) return c/2*t*t + b;
|
56
|
+
return -c/2 * ((--t)*(t-2) - 1) + b;
|
57
|
+
},
|
58
|
+
easeInCubic: function (x, t, b, c, d) {
|
59
|
+
return c*(t/=d)*t*t + b;
|
60
|
+
},
|
61
|
+
easeOutCubic: function (x, t, b, c, d) {
|
62
|
+
return c*((t=t/d-1)*t*t + 1) + b;
|
63
|
+
},
|
64
|
+
easeInOutCubic: function (x, t, b, c, d) {
|
65
|
+
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
66
|
+
return c/2*((t-=2)*t*t + 2) + b;
|
67
|
+
},
|
68
|
+
easeInQuart: function (x, t, b, c, d) {
|
69
|
+
return c*(t/=d)*t*t*t + b;
|
70
|
+
},
|
71
|
+
easeOutQuart: function (x, t, b, c, d) {
|
72
|
+
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
73
|
+
},
|
74
|
+
easeInOutQuart: function (x, t, b, c, d) {
|
75
|
+
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
76
|
+
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
77
|
+
},
|
78
|
+
easeInQuint: function (x, t, b, c, d) {
|
79
|
+
return c*(t/=d)*t*t*t*t + b;
|
80
|
+
},
|
81
|
+
easeOutQuint: function (x, t, b, c, d) {
|
82
|
+
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
83
|
+
},
|
84
|
+
easeInOutQuint: function (x, t, b, c, d) {
|
85
|
+
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
86
|
+
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
87
|
+
},
|
88
|
+
easeInSine: function (x, t, b, c, d) {
|
89
|
+
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
90
|
+
},
|
91
|
+
easeOutSine: function (x, t, b, c, d) {
|
92
|
+
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
93
|
+
},
|
94
|
+
easeInOutSine: function (x, t, b, c, d) {
|
95
|
+
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
96
|
+
},
|
97
|
+
easeInExpo: function (x, t, b, c, d) {
|
98
|
+
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
99
|
+
},
|
100
|
+
easeOutExpo: function (x, t, b, c, d) {
|
101
|
+
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
102
|
+
},
|
103
|
+
easeInOutExpo: function (x, t, b, c, d) {
|
104
|
+
if (t==0) return b;
|
105
|
+
if (t==d) return b+c;
|
106
|
+
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
107
|
+
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
108
|
+
},
|
109
|
+
easeInCirc: function (x, t, b, c, d) {
|
110
|
+
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
111
|
+
},
|
112
|
+
easeOutCirc: function (x, t, b, c, d) {
|
113
|
+
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
114
|
+
},
|
115
|
+
easeInOutCirc: function (x, t, b, c, d) {
|
116
|
+
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
117
|
+
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
118
|
+
},
|
119
|
+
easeInElastic: function (x, t, b, c, d) {
|
120
|
+
var s=1.70158;var p=0;var a=c;
|
121
|
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
122
|
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
123
|
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
124
|
+
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
125
|
+
},
|
126
|
+
easeOutElastic: function (x, t, b, c, d) {
|
127
|
+
var s=1.70158;var p=0;var a=c;
|
128
|
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
129
|
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
130
|
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
131
|
+
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
132
|
+
},
|
133
|
+
easeInOutElastic: function (x, t, b, c, d) {
|
134
|
+
var s=1.70158;var p=0;var a=c;
|
135
|
+
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
136
|
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
137
|
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
138
|
+
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
139
|
+
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
140
|
+
},
|
141
|
+
easeInBack: function (x, t, b, c, d, s) {
|
142
|
+
if (s == undefined) s = 1.70158;
|
143
|
+
return c*(t/=d)*t*((s+1)*t - s) + b;
|
144
|
+
},
|
145
|
+
easeOutBack: function (x, t, b, c, d, s) {
|
146
|
+
if (s == undefined) s = 1.70158;
|
147
|
+
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
148
|
+
},
|
149
|
+
easeInOutBack: function (x, t, b, c, d, s) {
|
150
|
+
if (s == undefined) s = 1.70158;
|
151
|
+
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
152
|
+
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
153
|
+
},
|
154
|
+
easeInBounce: function (x, t, b, c, d) {
|
155
|
+
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
156
|
+
},
|
157
|
+
easeOutBounce: function (x, t, b, c, d) {
|
158
|
+
if ((t/=d) < (1/2.75)) {
|
159
|
+
return c*(7.5625*t*t) + b;
|
160
|
+
} else if (t < (2/2.75)) {
|
161
|
+
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
162
|
+
} else if (t < (2.5/2.75)) {
|
163
|
+
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
164
|
+
} else {
|
165
|
+
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
166
|
+
}
|
167
|
+
},
|
168
|
+
easeInOutBounce: function (x, t, b, c, d) {
|
169
|
+
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
170
|
+
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
171
|
+
}
|
172
|
+
});
|
173
|
+
|
174
|
+
/*
|
175
|
+
*
|
176
|
+
* TERMS OF USE - EASING EQUATIONS
|
177
|
+
*
|
178
|
+
* Open source under the BSD License.
|
179
|
+
*
|
180
|
+
* Copyright © 2001 Robert Penner
|
181
|
+
* All rights reserved.
|
182
|
+
*
|
183
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
184
|
+
* are permitted provided that the following conditions are met:
|
185
|
+
*
|
186
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
187
|
+
* conditions and the following disclaimer.
|
188
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
189
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
190
|
+
* provided with the distribution.
|
191
|
+
*
|
192
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
193
|
+
* or promote products derived from this software without specific prior written permission.
|
194
|
+
*
|
195
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
196
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
197
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
198
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
199
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
200
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
201
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
202
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
203
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
204
|
+
*
|
205
|
+
*/
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
3
|
+
*
|
4
|
+
* Uses the built in easing capabilities added In jQuery 1.1
|
5
|
+
* to offer multiple easing options
|
6
|
+
*
|
7
|
+
* TERMS OF USE - jQuery Easing
|
8
|
+
*
|
9
|
+
* Open source under the BSD License.
|
10
|
+
*
|
11
|
+
* Copyright å© 2008 George McGinley Smith
|
12
|
+
* All rights reserved.
|
13
|
+
*
|
14
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
15
|
+
* are permitted provided that the following conditions are met:
|
16
|
+
*
|
17
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
18
|
+
* conditions and the following disclaimer.
|
19
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
20
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
21
|
+
* provided with the distribution.
|
22
|
+
*
|
23
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
24
|
+
* or promote products derived from this software without specific prior written permission.
|
25
|
+
*
|
26
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
27
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
28
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
29
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
30
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
31
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
32
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
33
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
34
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
35
|
+
*
|
36
|
+
*/
|
37
|
+
|
38
|
+
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
|
39
|
+
|
40
|
+
/*
|
41
|
+
*
|
42
|
+
* TERMS OF USE - EASING EQUATIONS
|
43
|
+
*
|
44
|
+
* Open source under the BSD License.
|
45
|
+
*
|
46
|
+
* Copyright å© 2001 Robert Penner
|
47
|
+
* All rights reserved.
|
48
|
+
*
|
49
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
50
|
+
* are permitted provided that the following conditions are met:
|
51
|
+
*
|
52
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
53
|
+
* conditions and the following disclaimer.
|
54
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
55
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
56
|
+
* provided with the distribution.
|
57
|
+
*
|
58
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
59
|
+
* or promote products derived from this software without specific prior written permission.
|
60
|
+
*
|
61
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
62
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
63
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
64
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
65
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
66
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
67
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
68
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
69
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
70
|
+
*
|
71
|
+
*/
|
@@ -0,0 +1,83 @@
|
|
1
|
+
/*global jQuery */
|
2
|
+
/*jshint browser:true */
|
3
|
+
/*!
|
4
|
+
* FitVids 1.1
|
5
|
+
*
|
6
|
+
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
7
|
+
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
8
|
+
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
|
12
|
+
(function( $ ){
|
13
|
+
|
14
|
+
'use strict';
|
15
|
+
|
16
|
+
$.fn.fitVids = function( options ) {
|
17
|
+
var settings = {
|
18
|
+
customSelector: null,
|
19
|
+
ignore: null
|
20
|
+
};
|
21
|
+
|
22
|
+
if(!document.getElementById('fit-vids-style')) {
|
23
|
+
// appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js
|
24
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
25
|
+
var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';
|
26
|
+
var div = document.createElement("div");
|
27
|
+
div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>';
|
28
|
+
head.appendChild(div.childNodes[1]);
|
29
|
+
}
|
30
|
+
|
31
|
+
if ( options ) {
|
32
|
+
$.extend( settings, options );
|
33
|
+
}
|
34
|
+
|
35
|
+
return this.each(function(){
|
36
|
+
var selectors = [
|
37
|
+
'iframe[src*="player.vimeo.com"]',
|
38
|
+
'iframe[src*="youtube.com"]',
|
39
|
+
'iframe[src*="youtube-nocookie.com"]',
|
40
|
+
'iframe[src*="kickstarter.com"][src*="video.html"]',
|
41
|
+
'object',
|
42
|
+
'embed'
|
43
|
+
];
|
44
|
+
|
45
|
+
if (settings.customSelector) {
|
46
|
+
selectors.push(settings.customSelector);
|
47
|
+
}
|
48
|
+
|
49
|
+
var ignoreList = '.fitvidsignore';
|
50
|
+
|
51
|
+
if(settings.ignore) {
|
52
|
+
ignoreList = ignoreList + ', ' + settings.ignore;
|
53
|
+
}
|
54
|
+
|
55
|
+
var $allVideos = $(this).find(selectors.join(','));
|
56
|
+
$allVideos = $allVideos.not('object object'); // SwfObj conflict patch
|
57
|
+
$allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video.
|
58
|
+
|
59
|
+
$allVideos.each(function(){
|
60
|
+
var $this = $(this);
|
61
|
+
if($this.parents(ignoreList).length > 0) {
|
62
|
+
return; // Disable FitVids on this video.
|
63
|
+
}
|
64
|
+
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
|
65
|
+
if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width'))))
|
66
|
+
{
|
67
|
+
$this.attr('height', 9);
|
68
|
+
$this.attr('width', 16);
|
69
|
+
}
|
70
|
+
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
|
71
|
+
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
|
72
|
+
aspectRatio = height / width;
|
73
|
+
if(!$this.attr('id')){
|
74
|
+
var videoID = 'fitvid' + Math.floor(Math.random()*999999);
|
75
|
+
$this.attr('id', videoID);
|
76
|
+
}
|
77
|
+
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%');
|
78
|
+
$this.removeAttr('height').removeAttr('width');
|
79
|
+
});
|
80
|
+
});
|
81
|
+
};
|
82
|
+
// Works with either jQuery or Zepto
|
83
|
+
})( window.jQuery || window.Zepto );
|
@@ -0,0 +1,160 @@
|
|
1
|
+
window.onload = loadScript;
|
2
|
+
|
3
|
+
function loadScript() {
|
4
|
+
var script = document.createElement('script');
|
5
|
+
script.type = 'text/javascript';
|
6
|
+
script.src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyBbJ16uUP1tqA_-qsojvMCBV12V71rukHA&sensor=true&' +
|
7
|
+
'callback=initialize';
|
8
|
+
document.body.appendChild(script);
|
9
|
+
}
|
10
|
+
|
11
|
+
var geocoder, map;
|
12
|
+
|
13
|
+
function initialize() {
|
14
|
+
geocoder = new google.maps.Geocoder();
|
15
|
+
|
16
|
+
var styles = [
|
17
|
+
{
|
18
|
+
"stylers": [
|
19
|
+
{ "visibility": "on" }
|
20
|
+
]
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"featureType": "landscape.natural",
|
24
|
+
"stylers": [
|
25
|
+
{ "visibility": "simplified" },
|
26
|
+
{ "color": "#f0f0f0" }
|
27
|
+
]
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"featureType": "water",
|
31
|
+
"stylers": [
|
32
|
+
{ "visibility": "simplified" },
|
33
|
+
{ "color": "#C2E7F5" }
|
34
|
+
]
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"featureType": "road.highway",
|
38
|
+
"elementType": "geometry",
|
39
|
+
"stylers": [
|
40
|
+
{ "visibility": "simplified" },
|
41
|
+
{ "color": "#ffffff" }
|
42
|
+
]
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"featureType": "road.local",
|
46
|
+
"elementType": "geometry.stroke",
|
47
|
+
"stylers": [
|
48
|
+
{ "visibility": "off" }
|
49
|
+
]
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"featureType": "road.local",
|
53
|
+
"elementType": "labels.icon",
|
54
|
+
"stylers": [
|
55
|
+
{ "visibility": "off" }
|
56
|
+
]
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"elementType": "labels.text.fill",
|
60
|
+
"stylers": [
|
61
|
+
{ "visibility": "on" },
|
62
|
+
{ "color": "#646464" }
|
63
|
+
]
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"featureType": "road.local",
|
67
|
+
"elementType": "geometry.fill",
|
68
|
+
"stylers": [
|
69
|
+
{ "visibility": "on" },
|
70
|
+
{ "weight": 1 },
|
71
|
+
{ "color": "#ffffff" }
|
72
|
+
]
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"featureType": "poi.park",
|
76
|
+
"elementType": "geometry.fill",
|
77
|
+
"stylers": [
|
78
|
+
{ "lightness": 90 },
|
79
|
+
{ "color": "#d7d7d7" },
|
80
|
+
{ "visibility": "off" }
|
81
|
+
]
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"featureType": "transit",
|
85
|
+
"elementType": "geometry",
|
86
|
+
"stylers": [
|
87
|
+
{ "visibility": "on" },
|
88
|
+
{ "color": "#ffffff" }
|
89
|
+
]
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"featureType": "road.local",
|
93
|
+
"elementType": "labels.text.fill",
|
94
|
+
"stylers": [
|
95
|
+
{ "visibility": "on" },
|
96
|
+
{ "color": "#b8b8b8" }
|
97
|
+
]
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"featureType": "landscape.man_made",
|
101
|
+
"elementType": "geometry",
|
102
|
+
"stylers": [
|
103
|
+
{ "visibility": "on" },
|
104
|
+
{ "lightness": 60 },
|
105
|
+
{ "saturation": -90 },
|
106
|
+
{ "gamma": 0.90 }
|
107
|
+
]
|
108
|
+
}
|
109
|
+
];
|
110
|
+
|
111
|
+
var styledMap = new google.maps.StyledMapType(styles, {
|
112
|
+
name: "Styled Map"
|
113
|
+
});
|
114
|
+
|
115
|
+
var mapOptions = {
|
116
|
+
zoom: 15,
|
117
|
+
scrollwheel: false,
|
118
|
+
panControl: false,
|
119
|
+
scaleControl: false,
|
120
|
+
mapTypeControlOptions: {
|
121
|
+
mapTypeIds: []
|
122
|
+
}
|
123
|
+
};
|
124
|
+
|
125
|
+
var mapPlaceholder = document.getElementById('custom-map-canvas');
|
126
|
+
|
127
|
+
if(mapPlaceholder) {
|
128
|
+
customMap = new google.maps.Map(mapPlaceholder, mapOptions);
|
129
|
+
customMap.mapTypes.set('map_style', styledMap);
|
130
|
+
customMap.setMapTypeId('map_style');
|
131
|
+
codeAddress(customMap);
|
132
|
+
}
|
133
|
+
|
134
|
+
mapPlaceholder = document.getElementById('map-canvas');
|
135
|
+
|
136
|
+
if(mapPlaceholder) {
|
137
|
+
defaultMap = new google.maps.Map(mapPlaceholder, mapOptions);
|
138
|
+
codeAddress(defaultMap);
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
function codeAddress(theMap) {
|
143
|
+
|
144
|
+
var address = "Google New York, 76 Ninth Ave, New York, NY, USA";
|
145
|
+
geocoder.geocode( { 'address': address}, function(results, status) {
|
146
|
+
if (status == google.maps.GeocoderStatus.OK) {
|
147
|
+
theMap.setCenter(results[0].geometry.location);
|
148
|
+
var image = new google.maps.MarkerImage("assets/img/location-pin.png", null, null, null, new google.maps.Size(32, 32));
|
149
|
+
var beachMarker = new google.maps.Marker({
|
150
|
+
map: theMap,
|
151
|
+
icon: image,
|
152
|
+
position: results[0].geometry.location
|
153
|
+
});
|
154
|
+
|
155
|
+
} else {
|
156
|
+
alert('Geocode was not successful for the following reason: ' + status);
|
157
|
+
}
|
158
|
+
});
|
159
|
+
}
|
160
|
+
|