├── assets ├── .DS_Store ├── js │ ├── .DS_Store │ ├── video.js │ ├── scrolling-nav.js │ ├── menu.js │ ├── jquery.counterup.min.js │ ├── classie.js │ ├── main.js │ ├── jquery.nav.js │ ├── modernizr.custom.js │ ├── wow.js │ ├── nivo-lightbox.min.js │ ├── waypoints.min.js │ ├── jquery.easing.min.js │ ├── nivo-lightbox.js │ ├── popper.min.js │ └── jquery.slicknav.js ├── css │ ├── .DS_Store │ ├── about.css │ ├── responsive.css │ ├── slicknav.css │ ├── nivo-lightbox.css │ └── main.css ├── img │ ├── fondo.png │ ├── logos │ │ └── LME.jpg │ ├── imagenes │ │ ├── 1.png │ │ └── 2.png │ └── background │ │ ├── .DS_Store │ │ └── bg-1.jpg └── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── fontawesome-webfont.woff2 │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ ├── glyphicons-halflings-regular.woff2 │ ├── line-icons │ ├── Simple-Line-Icons.eot │ ├── Simple-Line-Icons.ttf │ ├── Simple-Line-Icons.woff │ └── Simple-Line-Icons.woff2 │ ├── simple-line-icons.css │ └── font-awesome.min.css └── index.html /assets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/.DS_Store -------------------------------------------------------------------------------- /assets/js/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/js/.DS_Store -------------------------------------------------------------------------------- /assets/css/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/css/.DS_Store -------------------------------------------------------------------------------- /assets/img/fondo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/img/fondo.png -------------------------------------------------------------------------------- /assets/img/logos/LME.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/img/logos/LME.jpg -------------------------------------------------------------------------------- /assets/img/imagenes/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/img/imagenes/1.png -------------------------------------------------------------------------------- /assets/img/imagenes/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/img/imagenes/2.png -------------------------------------------------------------------------------- /assets/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /assets/img/background/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/img/background/.DS_Store -------------------------------------------------------------------------------- /assets/img/background/bg-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/img/background/bg-1.jpg -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /assets/fonts/line-icons/Simple-Line-Icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/line-icons/Simple-Line-Icons.eot -------------------------------------------------------------------------------- /assets/fonts/line-icons/Simple-Line-Icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/line-icons/Simple-Line-Icons.ttf -------------------------------------------------------------------------------- /assets/fonts/line-icons/Simple-Line-Icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/line-icons/Simple-Line-Icons.woff -------------------------------------------------------------------------------- /assets/fonts/line-icons/Simple-Line-Icons.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/juancondorijara/Lactancia_Materna_Exclusiva/HEAD/assets/fonts/line-icons/Simple-Line-Icons.woff2 -------------------------------------------------------------------------------- /assets/css/about.css: -------------------------------------------------------------------------------- 1 | .about-profile{position:relative;margin:20px 0 30px 0}.about-profile .pro-title{font-weight:700;color:#040404;position:relative;width:120px;display:inline-block;margin-bottom:5px}.about-profile .pro-title:after{position:absolute;content:':';color:#040404;font-size:14px;left:77px}.about-profile .admin-sign{position:absolute;right:45px;bottom:10px} 2 | -------------------------------------------------------------------------------- /assets/js/video.js: -------------------------------------------------------------------------------- 1 | var vid = document.getElementById("bgvid"); 2 | var pauseButton = document.querySelector("#polina button"); 3 | 4 | function vidFade() { 5 | vid.classList.add("stopfade"); 6 | } 7 | 8 | vid.addEventListener('ended', function() { 9 | // only functional if "loop" is removed 10 | vid.pause(); 11 | // to capture IE10 12 | vidFade(); 13 | }); 14 | pauseButton.addEventListener("click", function() { 15 | vid.classList.toggle("stopfade"); 16 | if (vid.paused) { 17 | vid.play(); 18 | pauseButton.innerHTML = ""; 19 | } else { 20 | vid.pause(); 21 | pauseButton.innerHTML = ""; 22 | } 23 | }) -------------------------------------------------------------------------------- /assets/js/scrolling-nav.js: -------------------------------------------------------------------------------- 1 | //jQuery to collapse the navbar on scroll 2 | $(window).scroll(function() { 3 | if ($(".navbar").offset().top > 50) { 4 | $(".navbar-fixed-top").addClass("top-nav-collapse"); 5 | } else { 6 | $(".navbar-fixed-top").removeClass("top-nav-collapse"); 7 | } 8 | }); 9 | 10 | //jQuery for page scrolling feature - requires jQuery Easing plugin 11 | $(function() { 12 | $(document).on('click', 'a.page-scroll', function(event) { 13 | var $anchor = $(this); 14 | $('html, body').stop().animate({ 15 | scrollTop: $($anchor.attr('href')).offset().top 16 | }, 1500, 'easeInOutExpo'); 17 | event.preventDefault(); 18 | }); 19 | }); 20 | -------------------------------------------------------------------------------- /assets/js/menu.js: -------------------------------------------------------------------------------- 1 | /** 2 | * main.js 3 | * http://www.codrops.com 4 | * 5 | * Licensed under the MIT license. 6 | * http://www.opensource.org/licenses/mit-license.php 7 | * 8 | * Copyright 2014, Codrops 9 | * http://www.codrops.com 10 | */ 11 | (function() { 12 | 13 | var bodyEl = document.body, 14 | content = document.querySelector( '.content-wrap' ), 15 | openbtn = document.getElementById( 'open-button' ), 16 | closebtn = document.getElementById( 'close-button' ), 17 | isOpen = false; 18 | 19 | function init() { 20 | initEvents(); 21 | } 22 | 23 | function initEvents() { 24 | openbtn.addEventListener( 'click', toggleMenu ); 25 | if( closebtn ) { 26 | closebtn.addEventListener( 'click', toggleMenu ); 27 | } 28 | } 29 | 30 | function toggleMenu() { 31 | if( isOpen ) { 32 | classie.remove( bodyEl, 'show-menu' ); 33 | } 34 | else { 35 | classie.add( bodyEl, 'show-menu' ); 36 | } 37 | isOpen = !isOpen; 38 | } 39 | 40 | init(); 41 | 42 | })(); -------------------------------------------------------------------------------- /assets/js/jquery.counterup.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jquery.counterup.js 1.0 3 | * 4 | * Copyright 2013, Benjamin Intal http://gambit.ph @bfintal 5 | * Released under the GPL v2 License 6 | * 7 | * Date: Nov 26, 2013 8 | */(function(e){"use strict";e.fn.counterUp=function(t){var n=e.extend({time:400,delay:10},t);return this.each(function(){var t=e(this),r=n,i=function(){var e=[],n=r.time/r.delay,i=t.text(),s=/[0-9]+,[0-9]+/.test(i);i=i.replace(/,/g,"");var o=/^[0-9]+$/.test(i),u=/^[0-9]+\.[0-9]+$/.test(i),a=u?(i.split(".")[1]||[]).length:0;for(var f=n;f>=1;f--){var l=parseInt(i/n*f);u&&(l=parseFloat(i/n*f).toFixed(a));if(s)while(/(\d+)(\d{3})/.test(l.toString()))l=l.toString().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(l)}t.data("counterup-nums",e);t.text("0");var c=function(){t.text(t.data("counterup-nums").shift());if(t.data("counterup-nums").length)setTimeout(t.data("counterup-func"),r.delay);else{delete t.data("counterup-nums");t.data("counterup-nums",null);t.data("counterup-func",null)}};t.data("counterup-func",c);setTimeout(t.data("counterup-func"),r.delay)};t.waypoint(i,{offset:"100%",triggerOnce:!0})})}})(jQuery); -------------------------------------------------------------------------------- /assets/css/responsive.css: -------------------------------------------------------------------------------- 1 | /* only small desktops */ 2 | @media (min-width: 992px) and (max-width: 1199px) { 3 | #hero-area .contents .head-title { 4 | font-size: 40px; 5 | } 6 | .services-item .services-content h3 a { 7 | font-size: 14px; 8 | } 9 | } 10 | 11 | /* tablets */ 12 | @media (max-width: 991px) { 13 | .section-title { 14 | font-size: 30px; 15 | margin-bottom: 30px; 16 | } 17 | .services-item .services-content h3 a { 18 | font-size: 14px; 19 | } 20 | .services-item { 21 | margin-bottom: 20px; 22 | } 23 | } 24 | 25 | /* only small tablets */ 26 | @media (min-width: 768px) and (max-width: 991px) { 27 | .section-title { 28 | font-size: 26px; 29 | margin-bottom: 30px; 30 | } 31 | .services-item .services-content h3 a { 32 | font-size: 16px; 33 | } 34 | .services-item { 35 | margin-bottom: 20px; 36 | } 37 | .counter-section .counter p { 38 | font-size: 14px; 39 | } 40 | } 41 | 42 | /* mobile or only mobile */ 43 | @media (max-width: 767px) { 44 | .section-title { 45 | font-size: 22px; 46 | margin-bottom: 30px; 47 | } 48 | .section-sub { 49 | font-size: 16px; 50 | } 51 | .navbar-brand img { 52 | margin: 5px 0; 53 | } 54 | #hero-area .contents { 55 | padding: 100px 0px 60px 0px; 56 | } 57 | #hero-area .contents .head-title { 58 | font-size: 22px; 59 | } 60 | #hero-area .contents h5 { 61 | font-size: 32px; 62 | } 63 | #hero-area .contents p { 64 | font-size: 20px; 65 | } 66 | .services-item { 67 | margin-bottom: 20px; 68 | } 69 | .timeline li .line-title { 70 | line-height: 26px; 71 | } 72 | .timeline li:first-child i { 73 | margin: -12px -40px; 74 | } 75 | .contact-form-area { 76 | padding: 40px 0px; 77 | } 78 | .footer-right-area { 79 | margin-top: 20px; 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /assets/js/classie.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * classie - class helper functions 3 | * from bonzo https://github.com/ded/bonzo 4 | * 5 | * classie.has( elem, 'my-class' ) -> true/false 6 | * classie.add( elem, 'my-new-class' ) 7 | * classie.remove( elem, 'my-unwanted-class' ) 8 | * classie.toggle( elem, 'my-class' ) 9 | */ 10 | 11 | /*jshint browser: true, strict: true, undef: true */ 12 | /*global define: false */ 13 | 14 | ( function( window ) { 15 | 16 | 'use strict'; 17 | 18 | // class helper functions from bonzo https://github.com/ded/bonzo 19 | 20 | function classReg( className ) { 21 | return new RegExp("(^|\\s+)" + className + "(\\s+|$)"); 22 | } 23 | 24 | // classList support for class management 25 | // altho to be fair, the api sucks because it won't accept multiple classes at once 26 | var hasClass, addClass, removeClass; 27 | 28 | if ( 'classList' in document.documentElement ) { 29 | hasClass = function( elem, c ) { 30 | return elem.classList.contains( c ); 31 | }; 32 | addClass = function( elem, c ) { 33 | elem.classList.add( c ); 34 | }; 35 | removeClass = function( elem, c ) { 36 | elem.classList.remove( c ); 37 | }; 38 | } 39 | else { 40 | hasClass = function( elem, c ) { 41 | return classReg( c ).test( elem.className ); 42 | }; 43 | addClass = function( elem, c ) { 44 | if ( !hasClass( elem, c ) ) { 45 | elem.className = elem.className + ' ' + c; 46 | } 47 | }; 48 | removeClass = function( elem, c ) { 49 | elem.className = elem.className.replace( classReg( c ), ' ' ); 50 | }; 51 | } 52 | 53 | function toggleClass( elem, c ) { 54 | var fn = hasClass( elem, c ) ? removeClass : addClass; 55 | fn( elem, c ); 56 | } 57 | 58 | var classie = { 59 | // full names 60 | hasClass: hasClass, 61 | addClass: addClass, 62 | removeClass: removeClass, 63 | toggleClass: toggleClass, 64 | // short names 65 | has: hasClass, 66 | add: addClass, 67 | remove: removeClass, 68 | toggle: toggleClass 69 | }; 70 | 71 | // transport 72 | if ( typeof define === 'function' && define.amd ) { 73 | // AMD 74 | define( classie ); 75 | } else { 76 | // browser global 77 | window.classie = classie; 78 | } 79 | 80 | })( window ); 81 | -------------------------------------------------------------------------------- /assets/js/main.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | 3 | "use strict"; 4 | 5 | $(window).on('load', function() { 6 | 7 | /* 8 | MixitUp 9 | ========================================================================== */ 10 | $('#portfolio').mixItUp(); 11 | 12 | /* 13 | One Page Navigation & wow js 14 | ========================================================================== */ 15 | var OnePNav = $('.onepage-nev'); 16 | var top_offset = OnePNav.height() - -0; 17 | OnePNav.onePageNav({ 18 | currentClass: 'active', 19 | scrollOffset: top_offset, 20 | }); 21 | 22 | /*Page Loader active 23 | ========================================================*/ 24 | $('#preloader').fadeOut(); 25 | 26 | // Sticky Nav 27 | $(window).on('scroll', function() { 28 | if ($(window).scrollTop() > 200) { 29 | $('.scrolling-navbar').addClass('top-nav-collapse'); 30 | } else { 31 | $('.scrolling-navbar').removeClass('top-nav-collapse'); 32 | } 33 | }); 34 | 35 | /* slicknav mobile menu active */ 36 | $('.mobile-menu').slicknav({ 37 | prependTo: '.navbar-header', 38 | parentTag: 'liner', 39 | allowParentLinks: true, 40 | duplicate: true, 41 | label: '', 42 | closedSymbol: '', 43 | openedSymbol: '', 44 | }); 45 | 46 | /* WOW Scroll Spy 47 | ========================================================*/ 48 | var wow = new WOW({ 49 | //disabled for mobile 50 | mobile: false 51 | }); 52 | 53 | wow.init(); 54 | 55 | /* Nivo Lightbox 56 | ========================================================*/ 57 | $('.lightbox').nivoLightbox({ 58 | effect: 'fadeScale', 59 | keyboardNav: true, 60 | }); 61 | 62 | /* Counter 63 | ========================================================*/ 64 | $('.counterUp').counterUp({ 65 | delay: 10, 66 | time: 1000 67 | }); 68 | 69 | 70 | /* Back Top Link active 71 | ========================================================*/ 72 | var offset = 200; 73 | var duration = 500; 74 | $(window).scroll(function() { 75 | if ($(this).scrollTop() > offset) { 76 | $('.back-to-top').fadeIn(400); 77 | } else { 78 | $('.back-to-top').fadeOut(400); 79 | } 80 | }); 81 | 82 | $('.back-to-top').on('click',function(event) { 83 | event.preventDefault(); 84 | $('html, body').animate({ 85 | scrollTop: 0 86 | }, 600); 87 | return false; 88 | }); 89 | 90 | 91 | 92 | }); 93 | 94 | }(jQuery)); -------------------------------------------------------------------------------- /assets/js/jquery.nav.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery One Page Nav Plugin 3 | * http://github.com/davist11/jQuery-One-Page-Nav 4 | * 5 | * Copyright (c) 2010 Trevor Davis (http://trevordavis.net) 6 | * Dual licensed under the MIT and GPL licenses. 7 | * Uses the same license as jQuery, see: 8 | * http://jquery.org/license 9 | * 10 | * @version 3.0.0 11 | * 12 | * Example usage: 13 | * $('#nav').onePageNav({ 14 | * currentClass: 'current', 15 | * changeHash: false, 16 | * scrollSpeed: 750 17 | * }); 18 | */ 19 | !function(t,i,n,s){var e=function(s,e){this.elem=s,this.$elem=t(s),this.options=e,this.metadata=this.$elem.data("plugin-options"),this.$win=t(i),this.sections={},this.didScroll=!1,this.$doc=t(n),this.docHeight=this.$doc.height()};e.prototype={defaults:{navItems:"a",currentClass:"current",changeHash:!1,easing:"swing",filter:"",scrollSpeed:750,scrollThreshold:.5,begin:!1,end:!1,scrollChange:!1},init:function(){return this.config=t.extend({},this.defaults,this.options,this.metadata),this.$nav=this.$elem.find(this.config.navItems),""!==this.config.filter&&(this.$nav=this.$nav.filter(this.config.filter)),this.$nav.on("click.onePageNav",t.proxy(this.handleClick,this)),this.getPositions(),this.bindInterval(),this.$win.on("resize.onePageNav",t.proxy(this.getPositions,this)),this},adjustNav:function(t,i){t.$elem.find("."+t.config.currentClass).removeClass(t.config.currentClass),i.addClass(t.config.currentClass)},bindInterval:function(){var t,i=this;i.$win.on("scroll.onePageNav",function(){i.didScroll=!0}),i.t=setInterval(function(){t=i.$doc.height(),i.didScroll&&(i.didScroll=!1,i.scrollChange()),t!==i.docHeight&&(i.docHeight=t,i.getPositions())},250)},getHash:function(t){return t.attr("href").split("#")[1]},getPositions:function(){var i,n,s,e=this;e.$nav.each(function(){i=e.getHash(t(this)),s=t("#"+i),s.length&&(n=s.offset().top,e.sections[i]=Math.round(n))})},getSection:function(t){var i=null,n=Math.round(this.$win.height()*this.config.scrollThreshold);for(var s in this.sections)this.sections[s]-n";return a.childNodes.length!==1}()&&function(a,b){function s(a){var b=-1;while(++b= viewTop; 170 | }; 171 | 172 | WOW.prototype.util = function() { 173 | return this._util || (this._util = new Util()); 174 | }; 175 | 176 | WOW.prototype.disabled = function() { 177 | return this.config.mobile === false && this.util().isMobile(navigator.userAgent); 178 | }; 179 | 180 | return WOW; 181 | 182 | })(); 183 | 184 | }).call(this); 185 | -------------------------------------------------------------------------------- /assets/css/nivo-lightbox.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Nivo Lightbox v1.3.1 3 | * http://dev7studios.com/nivo-lightbox 4 | * 5 | * Copyright 2013, Dev7studios 6 | * Free to use and abuse under the MIT license. 7 | * http://www.opensource.org/licenses/mit-license.php 8 | */ 9 | 10 | .nivo-lightbox-overlay { 11 | position: fixed; 12 | top: 0; 13 | left: 0; 14 | z-index: 999999; 15 | width: 100%; 16 | height: 100%; 17 | overflow: hidden; 18 | visibility: hidden; 19 | opacity: 0; 20 | background: rgba(0, 0, 0, 0.8); 21 | -webkit-box-sizing: border-box; 22 | -moz-box-sizing: border-box; 23 | box-sizing: border-box; 24 | } 25 | .nivo-lightbox-overlay.nivo-lightbox-open { 26 | visibility: visible; 27 | opacity: 1; 28 | } 29 | .nivo-lightbox-wrap { 30 | position: absolute; 31 | top: 10%; 32 | bottom: 10%; 33 | left: 10%; 34 | right: 10%; 35 | } 36 | .nivo-lightbox-content { 37 | width: 100%; 38 | height: 100%; 39 | } 40 | .nivo-lightbox-title-wrap { 41 | position: absolute; 42 | bottom: 0; 43 | left: 0; 44 | width: 100%; 45 | z-index: 99999; 46 | text-align: center; 47 | } 48 | .nivo-lightbox-nav { display: none; } 49 | .nivo-lightbox-prev { 50 | position: absolute; 51 | top: 50%; 52 | left: 0; 53 | } 54 | .nivo-lightbox-next { 55 | position: absolute; 56 | top: 50%; 57 | right: 0; 58 | } 59 | .nivo-lightbox-close { 60 | position: absolute; 61 | top: 2%; 62 | right: 2%; 63 | } 64 | 65 | .nivo-lightbox-image { text-align: center; } 66 | .nivo-lightbox-image img { 67 | max-width: 100%; 68 | max-height: 100%; 69 | width: auto; 70 | height: auto; 71 | vertical-align: middle; 72 | } 73 | .nivo-lightbox-content iframe { 74 | width: 100%; 75 | height: 100%; 76 | } 77 | .nivo-lightbox-inline, 78 | .nivo-lightbox-ajax { 79 | max-height: 100%; 80 | overflow: auto; 81 | -webkit-box-sizing: border-box; 82 | -moz-box-sizing: border-box; 83 | box-sizing: border-box; 84 | /* https://bugzilla.mozilla.org/show_bug.cgi?id=308801 */ 85 | } 86 | .nivo-lightbox-error { 87 | display: table; 88 | text-align: center; 89 | width: 100%; 90 | height: 100%; 91 | color: #fff; 92 | text-shadow: 0 1px 1px #000; 93 | } 94 | .nivo-lightbox-error p { 95 | display: table-cell; 96 | vertical-align: middle; 97 | } 98 | 99 | /* Effects 100 | **********************************************/ 101 | .nivo-lightbox-notouch .nivo-lightbox-effect-fade, 102 | .nivo-lightbox-notouch .nivo-lightbox-effect-fadeScale, 103 | .nivo-lightbox-notouch .nivo-lightbox-effect-slideLeft, 104 | .nivo-lightbox-notouch .nivo-lightbox-effect-slideRight, 105 | .nivo-lightbox-notouch .nivo-lightbox-effect-slideUp, 106 | .nivo-lightbox-notouch .nivo-lightbox-effect-slideDown, 107 | .nivo-lightbox-notouch .nivo-lightbox-effect-fall { 108 | -webkit-transition: all 0.2s ease-in-out; 109 | -moz-transition: all 0.2s ease-in-out; 110 | -ms-transition: all 0.2s ease-in-out; 111 | -o-transition: all 0.2s ease-in-out; 112 | transition: all 0.2s ease-in-out; 113 | } 114 | 115 | /* fadeScale */ 116 | .nivo-lightbox-effect-fadeScale .nivo-lightbox-wrap { 117 | -webkit-transition: all 0.3s; 118 | -moz-transition: all 0.3s; 119 | -ms-transition: all 0.3s; 120 | -o-transition: all 0.3s; 121 | transition: all 0.3s; 122 | -webkit-transform: scale(0.7); 123 | -moz-transform: scale(0.7); 124 | -ms-transform: scale(0.7); 125 | transform: scale(0.7); 126 | } 127 | .nivo-lightbox-effect-fadeScale.nivo-lightbox-open .nivo-lightbox-wrap { 128 | -webkit-transform: scale(1); 129 | -moz-transform: scale(1); 130 | -ms-transform: scale(1); 131 | transform: scale(1); 132 | } 133 | 134 | /* slideLeft / slideRight / slideUp / slideDown */ 135 | .nivo-lightbox-effect-slideLeft .nivo-lightbox-wrap, 136 | .nivo-lightbox-effect-slideRight .nivo-lightbox-wrap, 137 | .nivo-lightbox-effect-slideUp .nivo-lightbox-wrap, 138 | .nivo-lightbox-effect-slideDown .nivo-lightbox-wrap { 139 | -webkit-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); 140 | -moz-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); 141 | -ms-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); 142 | -o-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); 143 | transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); 144 | } 145 | .nivo-lightbox-effect-slideLeft .nivo-lightbox-wrap { 146 | -webkit-transform: translateX(-10%); 147 | -moz-transform: translateX(-10%); 148 | -ms-transform: translateX(-10%); 149 | transform: translateX(-10%); 150 | } 151 | .nivo-lightbox-effect-slideRight .nivo-lightbox-wrap { 152 | -webkit-transform: translateX(10%); 153 | -moz-transform: translateX(10%); 154 | -ms-transform: translateX(10%); 155 | transform: translateX(10%); 156 | } 157 | .nivo-lightbox-effect-slideLeft.nivo-lightbox-open .nivo-lightbox-wrap, 158 | .nivo-lightbox-effect-slideRight.nivo-lightbox-open .nivo-lightbox-wrap { 159 | -webkit-transform: translateX(0); 160 | -moz-transform: translateX(0); 161 | -ms-transform: translateX(0); 162 | transform: translateX(0); 163 | } 164 | .nivo-lightbox-effect-slideDown .nivo-lightbox-wrap { 165 | -webkit-transform: translateY(-10%); 166 | -moz-transform: translateY(-10%); 167 | -ms-transform: translateY(-10%); 168 | transform: translateY(-10%); 169 | } 170 | .nivo-lightbox-effect-slideUp .nivo-lightbox-wrap { 171 | -webkit-transform: translateY(10%); 172 | -moz-transform: translateY(10%); 173 | -ms-transform: translateY(10%); 174 | transform: translateY(10%); 175 | } 176 | .nivo-lightbox-effect-slideUp.nivo-lightbox-open .nivo-lightbox-wrap, 177 | .nivo-lightbox-effect-slideDown.nivo-lightbox-open .nivo-lightbox-wrap { 178 | -webkit-transform: translateY(0); 179 | -moz-transform: translateY(0); 180 | -ms-transform: translateY(0); 181 | transform: translateY(0); 182 | } 183 | 184 | /* fall */ 185 | .nivo-lightbox-body-effect-fall .nivo-lightbox-effect-fall { 186 | -webkit-perspective: 1000px; 187 | -moz-perspective: 1000px; 188 | perspective: 1000px; 189 | } 190 | .nivo-lightbox-effect-fall .nivo-lightbox-wrap { 191 | -webkit-transition: all 0.3s ease-out; 192 | -moz-transition: all 0.3s ease-out; 193 | -ms-transition: all 0.3s ease-out; 194 | -o-transition: all 0.3s ease-out; 195 | transition: all 0.3s ease-out; 196 | -webkit-transform: translateZ(300px); 197 | -moz-transform: translateZ(300px); 198 | -ms-transform: translateZ(300px); 199 | transform: translateZ(300px); 200 | } 201 | .nivo-lightbox-effect-fall.nivo-lightbox-open .nivo-lightbox-wrap { 202 | -webkit-transform: translateZ(0); 203 | -moz-transform: translateZ(0); 204 | -ms-transform: translateZ(0); 205 | transform: translateZ(0); 206 | } 207 | .icon-close{ 208 | font-size: 24px; 209 | } 210 | -------------------------------------------------------------------------------- /assets/js/nivo-lightbox.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Nivo Lightbox v1.3.1 3 | * http://dev7studios.com/nivo-lightbox 4 | * 5 | * Copyright 2013, Dev7studios 6 | * Free to use and abuse under the MIT license. 7 | * http://www.opensource.org/licenses/mit-license.php 8 | */ 9 | !function(t,i,o,e){function n(i,o){this.el=i,this.$el=t(this.el),this.options=t.extend({},l,o),this._defaults=l,this._name=a,this.init()}var a="nivoLightbox",l={effect:"fade",theme:"default",keyboardNav:!0,clickImgToClose:!1,clickOverlayToClose:!0,onInit:function(){},beforeShowLightbox:function(){},afterShowLightbox:function(t){},beforeHideLightbox:function(){},afterHideLightbox:function(){},beforePrev:function(t){},onPrev:function(t){},beforeNext:function(t){},onNext:function(t){},errorMessage:"The requested content cannot be loaded. Please try again later."};n.prototype={init:function(){var i=this;t("html").hasClass("nivo-lightbox-notouch")||t("html").addClass("nivo-lightbox-notouch"),"ontouchstart"in o&&t("html").removeClass("nivo-lightbox-notouch"),this.$el.on("click",function(t){i.showLightbox(t)}),this.options.keyboardNav&&t("body").off("keyup").on("keyup",function(o){var e=o.keyCode?o.keyCode:o.which;27==e&&i.destructLightbox(),37==e&&t(".nivo-lightbox-prev").trigger("click"),39==e&&t(".nivo-lightbox-next").trigger("click")}),this.options.onInit.call(this)},showLightbox:function(i){var o=this,e=this.$el,n=this.checkContent(e);if(n){i.preventDefault(),this.options.beforeShowLightbox.call(this);var a=this.constructLightbox();if(a){var l=a.find(".nivo-lightbox-content");if(l){if(t("body").addClass("nivo-lightbox-body-effect-"+this.options.effect),this.processContent(l,e),this.$el.attr("data-lightbox-gallery")){var h=t('[data-lightbox-gallery="'+this.$el.attr("data-lightbox-gallery")+'"]');t(".nivo-lightbox-nav").show(),t(".nivo-lightbox-prev").off("click").on("click",function(i){i.preventDefault();var n=h.index(e);e=h.eq(n-1),t(e).length||(e=h.last()),t.when(o.options.beforePrev.call(this,[e])).done(function(){o.processContent(l,e),o.options.onPrev.call(this,[e])})}),t(".nivo-lightbox-next").off("click").on("click",function(i){i.preventDefault();var n=h.index(e);e=h.eq(n+1),t(e).length||(e=h.first()),t.when(o.options.beforeNext.call(this,[e])).done(function(){o.processContent(l,e),o.options.onNext.call(this,[e])})})}setTimeout(function(){a.addClass("nivo-lightbox-open"),o.options.afterShowLightbox.call(this,[a])},1)}}}},checkContent:function(t){var i=t.attr("href"),o=i.match(/(youtube|youtube-nocookie|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/);return null!==i.match(/\.(jpeg|jpg|gif|png)$/i)||(!!o||("ajax"==t.attr("data-lightbox-type")||("#"==i.substring(0,1)&&"inline"==t.attr("data-lightbox-type")||"iframe"==t.attr("data-lightbox-type"))))},processContent:function(o,e){var n=this,a=e.attr("href"),l=a.match(/(youtube|youtube-nocookie|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/);if(o.html("").addClass("nivo-lightbox-loading"),this.isHidpi()&&e.attr("data-lightbox-hidpi")&&(a=e.attr("data-lightbox-hidpi")),null!==a.match(/\.(jpeg|jpg|gif|png)$/i)){var h=t("",{src:a,class:"nivo-lightbox-image-display"});h.one("load",function(){var e=t('
');e.append(h),o.html(e).removeClass("nivo-lightbox-loading"),e.css({"line-height":t(".nivo-lightbox-content").height()+"px",height:t(".nivo-lightbox-content").height()+"px"}),t(i).resize(function(){e.css({"line-height":t(".nivo-lightbox-content").height()+"px",height:t(".nivo-lightbox-content").height()+"px"})})}).each(function(){this.complete&&t(this).load()}),h.error(function(){var i=t('

'+n.options.errorMessage+"

");o.html(i).removeClass("nivo-lightbox-loading")})}else if(l){var s="",r="nivo-lightbox-video";if("youtube"==l[1]&&(s="//www.youtube.com/embed/"+l[4],r="nivo-lightbox-youtube"),"youtube-nocookie"==l[1]&&(s=a,r="nivo-lightbox-youtube"),"youtu"==l[1]&&(s="//www.youtube.com/embed/"+l[3],r="nivo-lightbox-youtube"),"vimeo"==l[1]&&(s="//player.vimeo.com/video/"+l[3],r="nivo-lightbox-vimeo"),s){var c=t("