Update and recompile JS and SASS

This commit is contained in:
koenemann 2016-04-28 16:15:04 +02:00
parent d00859ed7b
commit a3f3014954
14 changed files with 327 additions and 438 deletions

View File

@ -308,10 +308,10 @@ blockquote {
margin: 0 0 1rem; } margin: 0 0 1rem; }
a { a {
color: #0CB4CE; color: #4d3873;
text-decoration: none; } text-decoration: none; }
a:focus, a:hover { a:focus, a:hover {
color: #087586; color: #2b1f40;
text-decoration: underline; } text-decoration: underline; }
a:focus { a:focus {
outline: thin dotted; outline: thin dotted;
@ -1689,35 +1689,35 @@ fieldset[disabled] a.btn {
.btn-primary { .btn-primary {
color: #fff; color: #fff;
background-color: #0CB4CE; background-color: #4d3873;
border-color: #0CB4CE; } border-color: #4d3873; }
.btn-primary:hover { .btn-primary:hover {
color: #fff; color: #fff;
background-color: #098a9e; background-color: #362751;
border-color: #098194; } border-color: #31244a; }
.btn-primary:focus, .btn-primary.focus { .btn-primary:focus, .btn-primary.focus {
color: #fff; color: #fff;
background-color: #098a9e; background-color: #362751;
border-color: #098194; } border-color: #31244a; }
.btn-primary:active, .btn-primary.active, .btn-primary:active, .btn-primary.active,
.open > .btn-primary.dropdown-toggle { .open > .btn-primary.dropdown-toggle {
color: #fff; color: #fff;
background-color: #098a9e; background-color: #362751;
border-color: #098194; border-color: #31244a;
background-image: none; } background-image: none; }
.btn-primary:active:hover, .btn-primary:active:focus, .btn-primary:active.focus, .btn-primary.active:hover, .btn-primary.active:focus, .btn-primary.active.focus, .btn-primary:active:hover, .btn-primary:active:focus, .btn-primary:active.focus, .btn-primary.active:hover, .btn-primary.active:focus, .btn-primary.active.focus,
.open > .btn-primary.dropdown-toggle:hover, .open > .btn-primary.dropdown-toggle:hover,
.open > .btn-primary.dropdown-toggle:focus, .open > .btn-primary.dropdown-toggle:focus,
.open > .btn-primary.dropdown-toggle.focus { .open > .btn-primary.dropdown-toggle.focus {
color: #fff; color: #fff;
background-color: #076c7c; background-color: #261c39;
border-color: #054b56; } border-color: #140e1d; }
.btn-primary.disabled:focus, .btn-primary.disabled.focus, .btn-primary:disabled:focus, .btn-primary:disabled.focus { .btn-primary.disabled:focus, .btn-primary.disabled.focus, .btn-primary:disabled:focus, .btn-primary:disabled.focus {
background-color: #0CB4CE; background-color: #4d3873;
border-color: #0CB4CE; } border-color: #4d3873; }
.btn-primary.disabled:hover, .btn-primary:disabled:hover { .btn-primary.disabled:hover, .btn-primary:disabled:hover {
background-color: #0CB4CE; background-color: #4d3873;
border-color: #0CB4CE; } border-color: #4d3873; }
.btn-secondary { .btn-secondary {
color: #373a3c; color: #373a3c;
@ -1880,23 +1880,23 @@ fieldset[disabled] a.btn {
border-color: #d9534f; } border-color: #d9534f; }
.btn-primary-outline { .btn-primary-outline {
color: #0CB4CE; color: #4d3873;
background-image: none; background-image: none;
background-color: transparent; background-color: transparent;
border-color: #0CB4CE; } border-color: #4d3873; }
.btn-primary-outline:focus, .btn-primary-outline.focus, .btn-primary-outline:active, .btn-primary-outline.active, .btn-primary-outline:focus, .btn-primary-outline.focus, .btn-primary-outline:active, .btn-primary-outline.active,
.open > .btn-primary-outline.dropdown-toggle { .open > .btn-primary-outline.dropdown-toggle {
color: #fff; color: #fff;
background-color: #0CB4CE; background-color: #4d3873;
border-color: #0CB4CE; } border-color: #4d3873; }
.btn-primary-outline:hover { .btn-primary-outline:hover {
color: #fff; color: #fff;
background-color: #0CB4CE; background-color: #4d3873;
border-color: #0CB4CE; } border-color: #4d3873; }
.btn-primary-outline.disabled:focus, .btn-primary-outline.disabled.focus, .btn-primary-outline:disabled:focus, .btn-primary-outline:disabled.focus { .btn-primary-outline.disabled:focus, .btn-primary-outline.disabled.focus, .btn-primary-outline:disabled:focus, .btn-primary-outline:disabled.focus {
border-color: #4bdef5; } border-color: #7d60b1; }
.btn-primary-outline.disabled:hover, .btn-primary-outline:disabled:hover { .btn-primary-outline.disabled:hover, .btn-primary-outline:disabled:hover {
border-color: #4bdef5; } border-color: #7d60b1; }
.btn-secondary-outline { .btn-secondary-outline {
color: #ccc; color: #ccc;
@ -1995,7 +1995,7 @@ fieldset[disabled] a.btn {
.btn-link { .btn-link {
font-weight: normal; font-weight: normal;
color: #0CB4CE; color: #4d3873;
border-radius: 0; } border-radius: 0; }
.btn-link, .btn-link:active, .btn-link.active, .btn-link:disabled { .btn-link, .btn-link:active, .btn-link.active, .btn-link:disabled {
background-color: transparent; } background-color: transparent; }
@ -2004,7 +2004,7 @@ fieldset[disabled] a.btn {
.btn-link:hover { .btn-link:hover {
border-color: transparent; } border-color: transparent; }
.btn-link:focus, .btn-link:hover { .btn-link:focus, .btn-link:hover {
color: #087586; color: #2b1f40;
text-decoration: underline; text-decoration: underline;
background-color: transparent; } background-color: transparent; }
.btn-link:disabled:focus, .btn-link:disabled:hover { .btn-link:disabled:focus, .btn-link:disabled:hover {
@ -2121,7 +2121,7 @@ input[type="button"].btn-block {
.dropdown-item.active, .dropdown-item.active:focus, .dropdown-item.active:hover { .dropdown-item.active, .dropdown-item.active:focus, .dropdown-item.active:hover {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
background-color: #0CB4CE; background-color: #4d3873;
outline: 0; } outline: 0; }
.dropdown-item.disabled, .dropdown-item.disabled:focus, .dropdown-item.disabled:hover { .dropdown-item.disabled, .dropdown-item.disabled:focus, .dropdown-item.disabled:hover {
color: #818a91; } color: #818a91; }
@ -2636,7 +2636,7 @@ input[type="button"].btn-block {
.nav-pills .nav-item.open .nav-link:hover { .nav-pills .nav-item.open .nav-link:hover {
color: #fff; color: #fff;
cursor: default; cursor: default;
background-color: #0CB4CE; } background-color: #4d3873; }
.nav-stacked .nav-item { .nav-stacked .nav-item {
display: block; display: block;
@ -2854,8 +2854,8 @@ input[type="button"].btn-block {
border-radius: 0 0 0.25rem 0.25rem; } border-radius: 0 0 0.25rem 0.25rem; }
.card-primary { .card-primary {
background-color: #0CB4CE; background-color: #4d3873;
border-color: #0CB4CE; } border-color: #4d3873; }
.card-success { .card-success {
background-color: #5cb85c; background-color: #5cb85c;
@ -2875,7 +2875,7 @@ input[type="button"].btn-block {
.card-primary-outline { .card-primary-outline {
background-color: transparent; background-color: transparent;
border-color: #0CB4CE; } border-color: #4d3873; }
.card-secondary-outline { .card-secondary-outline {
background-color: transparent; background-color: transparent;
@ -3029,8 +3029,8 @@ input[type="button"].btn-block {
z-index: 2; z-index: 2;
color: #fff; color: #fff;
cursor: default; cursor: default;
background-color: #0CB4CE; background-color: #4d3873;
border-color: #0CB4CE; } border-color: #4d3873; }
.page-item.disabled .page-link, .page-item.disabled .page-link:focus, .page-item.disabled .page-link:hover { .page-item.disabled .page-link, .page-item.disabled .page-link:focus, .page-item.disabled .page-link:hover {
color: #818a91; color: #818a91;
cursor: not-allowed; cursor: not-allowed;
@ -3043,12 +3043,12 @@ input[type="button"].btn-block {
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
margin-left: -1px; margin-left: -1px;
line-height: 1.5; line-height: 1.5;
color: #0CB4CE; color: #4d3873;
text-decoration: none; text-decoration: none;
background-color: #fff; background-color: #fff;
border: 1px solid #ddd; } border: 1px solid #ddd; }
.page-link:focus, .page-link:hover { .page-link:focus, .page-link:hover {
color: #087586; color: #2b1f40;
background-color: #eceeef; background-color: #eceeef;
border-color: #ddd; } border-color: #ddd; }
@ -3151,9 +3151,9 @@ a.label:focus, a.label:hover {
background-color: #687077; } background-color: #687077; }
.label-primary { .label-primary {
background-color: #0CB4CE; } background-color: #4d3873; }
.label-primary[href]:focus, .label-primary[href]:hover { .label-primary[href]:focus, .label-primary[href]:hover {
background-color: #098a9e; } background-color: #362751; }
.label-success { .label-success {
background-color: #5cb85c; } background-color: #5cb85c; }
@ -3469,8 +3469,8 @@ button.list-group-item {
.list-group-item.active, .list-group-item.active:focus, .list-group-item.active:hover { .list-group-item.active, .list-group-item.active:focus, .list-group-item.active:hover {
z-index: 2; z-index: 2;
color: #fff; color: #fff;
background-color: #0CB4CE; background-color: #4d3873;
border-color: #0CB4CE; } border-color: #4d3873; }
.list-group-item.active .list-group-item-heading, .list-group-item.active .list-group-item-heading,
.list-group-item.active .list-group-item-heading > small, .list-group-item.active .list-group-item-heading > small,
.list-group-item.active .list-group-item-heading > .small, .list-group-item.active:focus .list-group-item-heading, .list-group-item.active .list-group-item-heading > .small, .list-group-item.active:focus .list-group-item-heading,
@ -3480,7 +3480,7 @@ button.list-group-item {
.list-group-item.active:hover .list-group-item-heading > .small { .list-group-item.active:hover .list-group-item-heading > .small {
color: inherit; } color: inherit; }
.list-group-item.active .list-group-item-text, .list-group-item.active:focus .list-group-item-text, .list-group-item.active:hover .list-group-item-text { .list-group-item.active .list-group-item-text, .list-group-item.active:focus .list-group-item-text, .list-group-item.active:hover .list-group-item-text {
color: #acf0fa; } color: #b5a4d3; }
.list-group-item-success { .list-group-item-success {
color: #3c763d; color: #3c763d;
@ -4233,10 +4233,10 @@ button.close {
color: #818a91; } color: #818a91; }
.text-primary { .text-primary {
color: #0CB4CE !important; } color: #4d3873 !important; }
a.text-primary:focus, a.text-primary:hover { a.text-primary:focus, a.text-primary:hover {
color: #098a9e; } color: #362751; }
.text-success { .text-success {
color: #5cb85c !important; } color: #5cb85c !important; }
@ -4271,10 +4271,10 @@ a.text-danger:focus, a.text-danger:hover {
.bg-primary { .bg-primary {
color: #fff !important; color: #fff !important;
background-color: #0CB4CE !important; } background-color: #4d3873 !important; }
a.bg-primary:focus, a.bg-primary:hover { a.bg-primary:focus, a.bg-primary:hover {
background-color: #098a9e; } background-color: #362751; }
.bg-success { .bg-success {
color: #fff !important; color: #fff !important;
@ -6727,7 +6727,7 @@ ul.nav.navbar-nav a {
content: ""; } content: ""; }
/* /*
* Owl Carousel - Core * Core Owl Carousel CSS File
*/ */
.owl-carousel { .owl-carousel {
display: none; display: none;
@ -6791,6 +6791,9 @@ ul.nav.navbar-nav a {
user-select: none; } user-select: none; }
.owl-carousel.owl-grab { .owl-carousel.owl-grab {
cursor: move; cursor: move;
cursor: -webkit-grab;
cursor: -o-grab;
cursor: -ms-grab;
cursor: grab; } cursor: grab; }
.owl-carousel.owl-rtl { .owl-carousel.owl-rtl {
direction: rtl; } direction: rtl; }
@ -6801,87 +6804,6 @@ ul.nav.navbar-nav a {
.no-js .owl-carousel { .no-js .owl-carousel {
display: block; } display: block; }
/*
* Owl Carousel - Animate Plugin
*/
.owl-carousel .animated {
animation-duration: 1000ms;
animation-fill-mode: both; }
.owl-carousel .owl-animated-in {
z-index: 0; }
.owl-carousel .owl-animated-out {
z-index: 1; }
.owl-carousel .fadeOut {
animation-name: fadeOut; }
@keyframes fadeOut {
0% {
opacity: 1; }
100% {
opacity: 0; } }
/*
* Owl Carousel - Auto Height Plugin
*/
.owl-height {
transition: height 500ms ease-in-out; }
/*
* Owl Carousel - Lazy Load Plugin
*/
.owl-carousel .owl-item .owl-lazy {
opacity: 0;
transition: opacity 400ms ease; }
.owl-carousel .owl-item img.owl-lazy {
transform-style: preserve-3d; }
/*
* Owl Carousel - Video Plugin
*/
.owl-carousel .owl-video-wrapper {
position: relative;
height: 100%;
background: #000; }
.owl-carousel .owl-video-play-icon {
position: absolute;
height: 80px;
width: 80px;
left: 50%;
top: 50%;
margin-left: -40px;
margin-top: -40px;
background: url("owl.video.play.png") no-repeat;
cursor: pointer;
z-index: 1;
-webkit-backface-visibility: hidden;
transition: transform 100ms ease; }
.owl-carousel .owl-video-play-icon:hover {
transform: scale(1.3, 1.3); }
.owl-carousel .owl-video-playing .owl-video-tn,
.owl-carousel .owl-video-playing .owl-video-play-icon {
display: none; }
.owl-carousel .owl-video-tn {
opacity: 0;
height: 100%;
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
transition: opacity 400ms ease; }
.owl-carousel .owl-video-frame {
position: relative;
z-index: 1;
height: 100%;
width: 100%; }
/* /*
* Owl Carousel - Animate Plugin * Owl Carousel - Animate Plugin
*/ */
@ -7010,6 +6932,8 @@ ul.nav.navbar-nav a {
background: #D6D6D6; background: #D6D6D6;
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px; } border-radius: 3px; }
.owl-theme .owl-nav [class*='owl-']:hover { .owl-theme .owl-nav [class*='owl-']:hover {
background: #869791; background: #869791;
@ -7036,7 +6960,13 @@ ul.nav.navbar-nav a {
background: #D6D6D6; background: #D6D6D6;
display: block; display: block;
-webkit-backface-visibility: visible; -webkit-backface-visibility: visible;
-webkit-transition: opacity 200ms ease;
-moz-transition: opacity 200ms ease;
-ms-transition: opacity 200ms ease;
-o-transition: opacity 200ms ease;
transition: opacity 200ms ease; transition: opacity 200ms ease;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px; } border-radius: 30px; }
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span { .owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
background: #869791; } background: #869791; }

1
css/theme.min.css vendored

File diff suppressed because one or more lines are too long

5
js/theme.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@
// Thats the ugly Bootstrap blue used for all the links, primary buttons etc. // Thats the ugly Bootstrap blue used for all the links, primary buttons etc.
// Just add your color code here, compile the theme.scss file to change this color everywhere // Just add your color code here, compile the theme.scss file to change this color everywhere
$brand-primary: #0CB4CE; //#ff6d5a $brand-primary: #4d3873; //#ff6d5a
// Basics of a navbar // Basics of a navbar
$navbar-height: 60px; $navbar-height: 60px;

View File

@ -1,10 +1,45 @@
/**
* Owl Carousel v2.1.1
* Copyright 2013-2016 David Deutsch
* Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
*/
/* /*
* Owl Carousel - Core * Owl Carousel - Animate Plugin
*/
.owl-carousel .animated {
-webkit-animation-duration: 1000ms;
animation-duration: 1000ms;
-webkit-animation-fill-mode: both;
animation-fill-mode: both; }
.owl-carousel .owl-animated-in {
z-index: 0; }
.owl-carousel .owl-animated-out {
z-index: 1; }
.owl-carousel .fadeOut {
-webkit-animation-name: fadeOut;
animation-name: fadeOut; }
@-webkit-keyframes fadeOut {
0% {
opacity: 1; }
100% {
opacity: 0; } }
@keyframes fadeOut {
0% {
opacity: 1; }
100% {
opacity: 0; } }
/*
* Owl Carousel - Auto Height Plugin
*/
.owl-height {
-webkit-transition: height 500ms ease-in-out;
-moz-transition: height 500ms ease-in-out;
-ms-transition: height 500ms ease-in-out;
-o-transition: height 500ms ease-in-out;
transition: height 500ms ease-in-out; }
/*
* Core Owl Carousel CSS File
*/ */
.owl-carousel { .owl-carousel {
display: none; display: none;
@ -39,12 +74,9 @@
display: block; display: block;
width: 100%; width: 100%;
-webkit-transform-style: preserve-3d; } -webkit-transform-style: preserve-3d; }
.owl-carousel .owl-nav.disabled, .owl-carousel .owl-nav.disabled, .owl-carousel .owl-dots.disabled {
.owl-carousel .owl-dots.disabled {
display: none; } display: none; }
.owl-carousel .owl-nav .owl-prev, .owl-carousel .owl-nav .owl-prev, .owl-carousel .owl-nav .owl-next, .owl-carousel .owl-dot {
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-dot {
cursor: pointer; cursor: pointer;
cursor: hand; cursor: hand;
-webkit-user-select: none; -webkit-user-select: none;
@ -68,6 +100,9 @@
user-select: none; } user-select: none; }
.owl-carousel.owl-grab { .owl-carousel.owl-grab {
cursor: move; cursor: move;
cursor: -webkit-grab;
cursor: -o-grab;
cursor: -ms-grab;
cursor: grab; } cursor: grab; }
.owl-carousel.owl-rtl { .owl-carousel.owl-rtl {
direction: rtl; } direction: rtl; }
@ -78,52 +113,17 @@
.no-js .owl-carousel { .no-js .owl-carousel {
display: block; } display: block; }
/*
* Owl Carousel - Animate Plugin
*/
.owl-carousel .animated {
-webkit-animation-duration: 1000ms;
animation-duration: 1000ms;
-webkit-animation-fill-mode: both;
animation-fill-mode: both; }
.owl-carousel .owl-animated-in {
z-index: 0; }
.owl-carousel .owl-animated-out {
z-index: 1; }
.owl-carousel .fadeOut {
-webkit-animation-name: fadeOut;
animation-name: fadeOut; }
@-webkit-keyframes fadeOut {
0% {
opacity: 1; }
100% {
opacity: 0; } }
@keyframes fadeOut {
0% {
opacity: 1; }
100% {
opacity: 0; } }
/*
* Owl Carousel - Auto Height Plugin
*/
.owl-height {
transition: height 500ms ease-in-out; }
/* /*
* Owl Carousel - Lazy Load Plugin * Owl Carousel - Lazy Load Plugin
*/ */
.owl-carousel .owl-item .owl-lazy { .owl-carousel .owl-item .owl-lazy {
opacity: 0; opacity: 0;
-webkit-transition: opacity 400ms ease;
-moz-transition: opacity 400ms ease;
-ms-transition: opacity 400ms ease;
-o-transition: opacity 400ms ease;
transition: opacity 400ms ease; } transition: opacity 400ms ease; }
.owl-carousel .owl-item img {
.owl-carousel .owl-item img.owl-lazy {
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d; } transform-style: preserve-3d; }
/* /*
@ -133,7 +133,6 @@
position: relative; position: relative;
height: 100%; height: 100%;
background: #000; } background: #000; }
.owl-carousel .owl-video-play-icon { .owl-carousel .owl-video-play-icon {
position: absolute; position: absolute;
height: 80px; height: 80px;
@ -146,26 +145,33 @@
cursor: pointer; cursor: pointer;
z-index: 1; z-index: 1;
-webkit-backface-visibility: hidden; -webkit-backface-visibility: hidden;
transition: -webkit-transform 100ms ease; -webkit-transition: scale 100ms ease;
transition: transform 100ms ease; } -moz-transition: scale 100ms ease;
-ms-transition: scale 100ms ease;
-o-transition: scale 100ms ease;
transition: scale 100ms ease; }
.owl-carousel .owl-video-play-icon:hover { .owl-carousel .owl-video-play-icon:hover {
-webkit-transform: scale(1.3, 1.3); -webkit-transition: scale(1.3, 1.3);
-ms-transform: scale(1.3, 1.3); -moz-transition: scale(1.3, 1.3);
transform: scale(1.3, 1.3); } -ms-transition: scale(1.3, 1.3);
-o-transition: scale(1.3, 1.3);
.owl-carousel .owl-video-playing .owl-video-tn, transition: scale(1.3, 1.3); }
.owl-carousel .owl-video-playing .owl-video-play-icon { .owl-carousel .owl-video-playing .owl-video-tn, .owl-carousel .owl-video-playing .owl-video-play-icon {
display: none; } display: none; }
.owl-carousel .owl-video-tn { .owl-carousel .owl-video-tn {
opacity: 0; opacity: 0;
height: 100%; height: 100%;
background-position: center center; background-position: center center;
background-repeat: no-repeat; background-repeat: no-repeat;
-webkit-background-size: contain;
-moz-background-size: contain;
-o-background-size: contain;
background-size: contain; background-size: contain;
-webkit-transition: opacity 400ms ease;
-moz-transition: opacity 400ms ease;
-ms-transition: opacity 400ms ease;
-o-transition: opacity 400ms ease;
transition: opacity 400ms ease; } transition: opacity 400ms ease; }
.owl-carousel .owl-video-frame { .owl-carousel .owl-video-frame {
position: relative; position: relative;
z-index: 1; z-index: 1;

View File

@ -1,6 +1 @@
/** .owl-carousel .animated{-webkit-animation-duration:1000ms;animation-duration:1000ms;-webkit-animation-fill-mode:both;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{-webkit-transition:height 500ms ease-in-out;-moz-transition:height 500ms ease-in-out;-ms-transition:height 500ms ease-in-out;-o-transition:height 500ms ease-in-out;transition:height 500ms ease-in-out}.owl-carousel{display:none;width:100%;-webkit-tap-highlight-color:transparent;position:relative;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0px,0,0)}.owl-carousel .owl-item{position:relative;min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%;-webkit-transform-style:preserve-3d}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;cursor:hand;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-loaded{display:block}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{display:none}.owl-carousel.owl-drag .owl-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:-webkit-grab;cursor:-o-grab;cursor:-ms-grab;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.no-js .owl-carousel{display:block}.owl-carousel .owl-item .owl-lazy{opacity:0;-webkit-transition:opacity 400ms ease;-moz-transition:opacity 400ms ease;-ms-transition:opacity 400ms ease;-o-transition:opacity 400ms ease;transition:opacity 400ms ease}.owl-carousel .owl-item img{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;-webkit-transition:scale 100ms ease;-moz-transition:scale 100ms ease;-ms-transition:scale 100ms ease;-o-transition:scale 100ms ease;transition:scale 100ms ease}.owl-carousel .owl-video-play-icon:hover{-webkit-transition:scale(1.3,1.3);-moz-transition:scale(1.3,1.3);-ms-transition:scale(1.3,1.3);-o-transition:scale(1.3,1.3);transition:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;-webkit-background-size:contain;-moz-background-size:contain;-o-background-size:contain;background-size:contain;-webkit-transition:opacity 400ms ease;-moz-transition:opacity 400ms ease;-ms-transition:opacity 400ms ease;-o-transition:opacity 400ms ease;transition:opacity 400ms ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}
* Owl Carousel v2.1.1
* Copyright 2013-2016 David Deutsch
* Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
*/
.owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%;-webkit-transform-style:preserve-3d}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;cursor:hand;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-loaded{display:block}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{display:none}.owl-carousel.owl-drag .owl-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.no-js .owl-carousel{display:block}.owl-carousel .animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item img.owl-lazy{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:-webkit-transform .1s ease;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-webkit-transform:scale(1.3,1.3);-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}

View File

@ -1,5 +1 @@
/** .owl-theme .owl-nav{margin-top:10px;text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1;*display:inline}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;-webkit-transition:opacity 200ms ease;-moz-transition:opacity 200ms ease;-ms-transition:opacity 200ms ease;-o-transition:opacity 200ms ease;transition:opacity 200ms ease;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791}
* Owl Carousel v2.1.1
* Copyright 2013-2016 David Deutsch
* Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
*/

View File

@ -1,5 +1 @@
/** .owl-theme .owl-nav{margin-top:10px;text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#4DC7A0;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1;*display:inline}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;-webkit-transition:opacity 200ms ease;-moz-transition:opacity 200ms ease;-ms-transition:opacity 200ms ease;-o-transition:opacity 200ms ease;transition:opacity 200ms ease;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#4DC7A0}
* Owl Carousel v2.1.1
* Copyright 2013-2016 David Deutsch
* Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
*/

71
src/js/jquery.js vendored
View File

@ -1,5 +1,5 @@
/*! /*!
* jQuery JavaScript Library v2.2.3 * jQuery JavaScript Library v2.2.1
* http://jquery.com/ * http://jquery.com/
* *
* Includes Sizzle.js * Includes Sizzle.js
@ -9,7 +9,7 @@
* Released under the MIT license * Released under the MIT license
* http://jquery.org/license * http://jquery.org/license
* *
* Date: 2016-04-05T19:26Z * Date: 2016-02-22T19:11Z
*/ */
(function( global, factory ) { (function( global, factory ) {
@ -65,7 +65,7 @@ var support = {};
var var
version = "2.2.3", version = "2.2.1",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
@ -276,7 +276,6 @@ jQuery.extend( {
}, },
isPlainObject: function( obj ) { isPlainObject: function( obj ) {
var key;
// Not plain objects: // Not plain objects:
// - Any object or value whose internal [[Class]] property is not "[object Object]" // - Any object or value whose internal [[Class]] property is not "[object Object]"
@ -286,18 +285,14 @@ jQuery.extend( {
return false; return false;
} }
// Not own constructor property must be Object
if ( obj.constructor && if ( obj.constructor &&
!hasOwn.call( obj, "constructor" ) && !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
!hasOwn.call( obj.constructor.prototype || {}, "isPrototypeOf" ) ) {
return false; return false;
} }
// Own properties are enumerated firstly, so to speed up, // If the function hasn't returned already, we're confident that
// if last one is own, then all properties are own // |obj| is a plain object, created by {} or constructed with new Object
for ( key in obj ) {} return true;
return key === undefined || hasOwn.call( obj, key );
}, },
isEmptyObject: function( obj ) { isEmptyObject: function( obj ) {
@ -7330,12 +7325,6 @@ jQuery.extend( {
} }
} ); } );
// Support: IE <=11 only
// Accessing the selectedIndex property
// forces the browser to respect setting selected
// on the option
// The getter ensures a default option is selected
// when in an optgroup
if ( !support.optSelected ) { if ( !support.optSelected ) {
jQuery.propHooks.selected = { jQuery.propHooks.selected = {
get: function( elem ) { get: function( elem ) {
@ -7344,16 +7333,6 @@ if ( !support.optSelected ) {
parent.parentNode.selectedIndex; parent.parentNode.selectedIndex;
} }
return null; return null;
},
set: function( elem ) {
var parent = elem.parentNode;
if ( parent ) {
parent.selectedIndex;
if ( parent.parentNode ) {
parent.parentNode.selectedIndex;
}
}
} }
}; };
} }
@ -7548,8 +7527,7 @@ jQuery.fn.extend( {
var rreturn = /\r/g, var rreturn = /\r/g;
rspaces = /[\x20\t\r\n\f]+/g;
jQuery.fn.extend( { jQuery.fn.extend( {
val: function( value ) { val: function( value ) {
@ -7625,15 +7603,9 @@ jQuery.extend( {
option: { option: {
get: function( elem ) { get: function( elem ) {
var val = jQuery.find.attr( elem, "value" ); // Support: IE<11
return val != null ? // option.value not trimmed (#14858)
val : return jQuery.trim( elem.value );
// Support: IE10-11+
// option.text throws exceptions (#14686, #14858)
// Strip and collapse whitespace
// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " );
} }
}, },
select: { select: {
@ -9381,6 +9353,18 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
// Support: Safari 8+
// In Safari 8 documents created via document.implementation.createHTMLDocument
// collapse sibling forms: the second one becomes a child of the first one.
// Because of that, this security measure has to be disabled in Safari 8.
// https://bugs.webkit.org/show_bug.cgi?id=137337
support.createHTMLDocument = ( function() {
var body = document.implementation.createHTMLDocument( "" ).body;
body.innerHTML = "<form></form><form></form>";
return body.childNodes.length === 2;
} )();
// Argument "data" should be string of html // Argument "data" should be string of html
// context (optional): If specified, the fragment will be created in this context, // context (optional): If specified, the fragment will be created in this context,
// defaults to document // defaults to document
@ -9393,7 +9377,12 @@ jQuery.parseHTML = function( data, context, keepScripts ) {
keepScripts = context; keepScripts = context;
context = false; context = false;
} }
context = context || document;
// Stop scripts or inline event handlers from being executed immediately
// by using document.implementation
context = context || ( support.createHTMLDocument ?
document.implementation.createHTMLDocument( "" ) :
document );
var parsed = rsingleTag.exec( data ), var parsed = rsingleTag.exec( data ),
scripts = !keepScripts && []; scripts = !keepScripts && [];
@ -9475,7 +9464,7 @@ jQuery.fn.load = function( url, params, callback ) {
// If it fails, this function gets "jqXHR", "status", "error" // If it fails, this function gets "jqXHR", "status", "error"
} ).always( callback && function( jqXHR, status ) { } ).always( callback && function( jqXHR, status ) {
self.each( function() { self.each( function() {
callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] ); callback.apply( self, response || [ jqXHR.responseText, status, jqXHR ] );
} ); } );
} ); } );
} }

File diff suppressed because one or more lines are too long

View File

@ -1,13 +1,7 @@
/**
* Owl Carousel v2.1.1
* Copyright 2013-2016 David Deutsch
* Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
*/
/** /**
* Owl carousel * Owl carousel
* @version 2.1.0 * @version 2.0.0
* @author Bartosz Wojciechowski * @author Bartosz Wojciechowski
* @author David Deutsch
* @license The MIT License (MIT) * @license The MIT License (MIT)
* @todo Lazy Load Icon * @todo Lazy Load Icon
* @todo prevent animationend bubling * @todo prevent animationend bubling
@ -845,13 +839,8 @@
if (!this.settings.freeDrag) { if (!this.settings.freeDrag) {
// check closest item // check closest item
$.each(coordinates, $.proxy(function(index, value) { $.each(coordinates, $.proxy(function(index, value) {
// on a left pull, check on current index if (coordinate > value - pull && coordinate < value + pull) {
if (direction === 'left' && coordinate > value - pull && coordinate < value + pull) {
position = index; position = index;
// on a right pull, check on previous index
// to do so, subtract width from value and set position = index + 1
} else if (direction === 'right' && coordinate > value - width - pull && coordinate < value - width + pull) {
position = index + 1;
} else if (this.op(coordinate, '<', value) } else if (this.op(coordinate, '<', value)
&& this.op(coordinate, '>', coordinates[index + 1] || value - width)) { && this.op(coordinate, '>', coordinates[index + 1] || value - width)) {
position = direction === 'left' ? index + 1 : index; position = direction === 'left' ? index + 1 : index;
@ -993,7 +982,7 @@
var n = this._items.length, var n = this._items.length,
m = relative ? 0 : this._clones.length; m = relative ? 0 : this._clones.length;
if (!this.isNumeric(position) || n < 1) { if (!$.isNumeric(position) || n < 1) {
position = undefined; position = undefined;
} else if (position < 0 || position >= n + m) { } else if (position < 0 || position >= n + m) {
position = ((position - m / 2) % n + n) % n + m / 2; position = ((position - m / 2) % n + n) % n + m / 2;
@ -1126,9 +1115,7 @@
* @returns {Number|Array.<Number>} - The coordinate of the item in pixel or all coordinates. * @returns {Number|Array.<Number>} - The coordinate of the item in pixel or all coordinates.
*/ */
Owl.prototype.coordinates = function(position) { Owl.prototype.coordinates = function(position) {
var multiplier = 1, var coordinate = null;
newPosition = position - 1,
coordinate;
if (position === undefined) { if (position === undefined) {
return $.map(this._coordinates, $.proxy(function(coordinate, index) { return $.map(this._coordinates, $.proxy(function(coordinate, index) {
@ -1137,19 +1124,12 @@
} }
if (this.settings.center) { if (this.settings.center) {
if (this.settings.rtl) {
multiplier = -1;
newPosition = position + 1;
}
coordinate = this._coordinates[position]; coordinate = this._coordinates[position];
coordinate += (this.width() - coordinate + (this._coordinates[newPosition] || 0)) / 2 * multiplier; coordinate += (this.width() - coordinate + (this._coordinates[position - 1] || 0)) / 2 * (this.settings.rtl ? -1 : 1);
} else { } else {
coordinate = this._coordinates[newPosition] || 0; coordinate = this._coordinates[position - 1] || 0;
} }
coordinate = Math.ceil(coordinate);
return coordinate; return coordinate;
}; };
@ -1162,10 +1142,6 @@
* @returns {Number} - The time in milliseconds for the translation. * @returns {Number} - The time in milliseconds for the translation.
*/ */
Owl.prototype.duration = function(from, to, factor) { Owl.prototype.duration = function(from, to, factor) {
if (factor === 0) {
return 0;
}
return Math.min(Math.max(Math.abs(to - from), 1), 6) * Math.abs((factor || this.settings.smartSpeed)); return Math.min(Math.max(Math.abs(to - from), 1), 6) * Math.abs((factor || this.settings.smartSpeed));
}; };
@ -1298,7 +1274,7 @@
this._mergers.push(item.find('[data-merge]').andSelf('[data-merge]').attr('data-merge') * 1 || 1); this._mergers.push(item.find('[data-merge]').andSelf('[data-merge]').attr('data-merge') * 1 || 1);
}, this)); }, this));
this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0); this.reset($.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0);
this.invalidate('items'); this.invalidate('items');
}; };
@ -1618,16 +1594,6 @@
return result; return result;
}; };
/**
* Determines if the input is a Number or something that can be coerced to a Number
* @protected
* @param {Number|String|Object|Array|Boolean|RegExp|Function|Symbol} - The input to be tested
* @returns {Boolean} - An indication if the input is a Number or can be coerced to a Number
*/
Owl.prototype.isNumeric = function(number) {
return !isNaN(parseFloat(number));
};
/** /**
* Gets the difference of two vectors. * Gets the difference of two vectors.
* @todo #261 * @todo #261
@ -1689,9 +1655,8 @@
/** /**
* AutoRefresh Plugin * AutoRefresh Plugin
* @version 2.1.0 * @version 2.0.0
* @author Artus Kolanowski * @author Artus Kolanowski
* @author David Deutsch
* @license The MIT License (MIT) * @license The MIT License (MIT)
*/ */
;(function($, window, document, undefined) { ;(function($, window, document, undefined) {
@ -1801,9 +1766,8 @@
/** /**
* Lazy Plugin * Lazy Plugin
* @version 2.1.0 * @version 2.0.0
* @author Bartosz Wojciechowski * @author Bartosz Wojciechowski
* @author David Deutsch
* @license The MIT License (MIT) * @license The MIT License (MIT)
*/ */
;(function($, window, document, undefined) { ;(function($, window, document, undefined) {
@ -1835,7 +1799,7 @@
* @type {Object} * @type {Object}
*/ */
this._handlers = { this._handlers = {
'initialized.owl.carousel change.owl.carousel resized.owl.carousel': $.proxy(function(e) { 'initialized.owl.carousel change.owl.carousel': $.proxy(function(e) {
if (!e.namespace) { if (!e.namespace) {
return; return;
} }
@ -1848,7 +1812,7 @@
var settings = this._core.settings, var settings = this._core.settings,
n = (settings.center && Math.ceil(settings.items / 2) || settings.items), n = (settings.center && Math.ceil(settings.items / 2) || settings.items),
i = ((settings.center && n * -1) || 0), i = ((settings.center && n * -1) || 0),
position = (e.property && e.property.value !== undefined ? e.property.value : this._core.current()) + i, position = ((e.property && e.property.value) || this._core.current()) + i,
clones = this._core.clones().length, clones = this._core.clones().length,
load = $.proxy(function(i, v) { this.load(v) }, this); load = $.proxy(function(i, v) { this.load(v) }, this);
@ -1866,7 +1830,7 @@
// register event handler // register event handler
this._core.$element.on(this._handlers); this._core.$element.on(this._handlers);
}; }
/** /**
* Default options. * Default options.
@ -1874,7 +1838,7 @@
*/ */
Lazy.Defaults = { Lazy.Defaults = {
lazyLoad: false lazyLoad: false
}; }
/** /**
* Loads all resources of an item at the specified position. * Loads all resources of an item at the specified position.
@ -1914,7 +1878,7 @@
}, this)); }, this));
this._loaded.push($item.get(0)); this._loaded.push($item.get(0));
}; }
/** /**
* Destroys the plugin. * Destroys the plugin.
@ -1937,9 +1901,8 @@
/** /**
* AutoHeight Plugin * AutoHeight Plugin
* @version 2.1.0 * @version 2.0.0
* @author Bartosz Wojciechowski * @author Bartosz Wojciechowski
* @author David Deutsch
* @license The MIT License (MIT) * @license The MIT License (MIT)
*/ */
;(function($, window, document, undefined) { ;(function($, window, document, undefined) {
@ -2003,7 +1966,7 @@
AutoHeight.prototype.update = function() { AutoHeight.prototype.update = function() {
var start = this._core._current, var start = this._core._current,
end = start + this._core.settings.items, end = start + this._core.settings.items,
visible = this._core.$stage.children().toArray().slice(start, end), visible = this._core.$stage.children().toArray().slice(start, end);
heights = [], heights = [],
maxheight = 0; maxheight = 0;
@ -2035,9 +1998,8 @@
/** /**
* Video Plugin * Video Plugin
* @version 2.1.0 * @version 2.0.0
* @author Bartosz Wojciechowski * @author Bartosz Wojciechowski
* @author David Deutsch
* @license The MIT License (MIT) * @license The MIT License (MIT)
*/ */
;(function($, window, document, undefined) { ;(function($, window, document, undefined) {
@ -2132,48 +2094,25 @@
}; };
/** /**
* Gets the video ID and the type (YouTube/Vimeo/vzaar only). * Gets the video ID and the type (YouTube/Vimeo only).
* @protected * @protected
* @param {jQuery} target - The target containing the video data. * @param {jQuery} target - The target containing the video data.
* @param {jQuery} item - The item containing the video. * @param {jQuery} item - The item containing the video.
*/ */
Video.prototype.fetch = function(target, item) { Video.prototype.fetch = function(target, item) {
var type = (function() { var type = target.attr('data-vimeo-id') ? 'vimeo' : 'youtube',
if (target.attr('data-vimeo-id')) { id = target.attr('data-vimeo-id') || target.attr('data-youtube-id'),
return 'vimeo';
} else if (target.attr('data-vzaar-id')) {
return 'vzaar'
} else {
return 'youtube';
}
})(),
id = target.attr('data-vimeo-id') || target.attr('data-youtube-id') || target.attr('data-vzaar-id'),
width = target.attr('data-width') || this._core.settings.videoWidth, width = target.attr('data-width') || this._core.settings.videoWidth,
height = target.attr('data-height') || this._core.settings.videoHeight, height = target.attr('data-height') || this._core.settings.videoHeight,
url = target.attr('href'); url = target.attr('href');
if (url) { if (url) {
id = url.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);
/*
Parses the id's out of the following urls (and probably more):
https://www.youtube.com/watch?v=:id
https://youtu.be/:id
https://vimeo.com/:id
https://vimeo.com/channels/:channel/:id
https://vimeo.com/groups/:group/videos/:id
https://app.vzaar.com/videos/:id
Visual example: https://regexper.com/#(http%3A%7Chttps%3A%7C)%5C%2F%5C%2F(player.%7Cwww.%7Capp.)%3F(vimeo%5C.com%7Cyoutu(be%5C.com%7C%5C.be%7Cbe%5C.googleapis%5C.com)%7Cvzaar%5C.com)%5C%2F(video%5C%2F%7Cvideos%5C%2F%7Cembed%5C%2F%7Cchannels%5C%2F.%2B%5C%2F%7Cgroups%5C%2F.%2B%5C%2F%7Cwatch%5C%3Fv%3D%7Cv%5C%2F)%3F(%5BA-Za-z0-9._%25-%5D*)(%5C%26%5CS%2B)%3F
*/
id = url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);
if (id[3].indexOf('youtu') > -1) { if (id[3].indexOf('youtu') > -1) {
type = 'youtube'; type = 'youtube';
} else if (id[3].indexOf('vimeo') > -1) { } else if (id[3].indexOf('vimeo') > -1) {
type = 'vimeo'; type = 'vimeo';
} else if (id[3].indexOf('vzaar') > -1) {
type = 'vzaar';
} else { } else {
throw new Error('Video URL not supported.'); throw new Error('Video URL not supported.');
} }
@ -2238,12 +2177,12 @@
} }
if (video.type === 'youtube') { if (video.type === 'youtube') {
path = "//img.youtube.com/vi/" + video.id + "/hqdefault.jpg"; path = "http://img.youtube.com/vi/" + video.id + "/hqdefault.jpg";
create(path); create(path);
} else if (video.type === 'vimeo') { } else if (video.type === 'vimeo') {
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '//vimeo.com/api/v2/video/' + video.id + '.json', url: 'http://vimeo.com/api/v2/video/' + video.id + '.json',
jsonp: 'callback', jsonp: 'callback',
dataType: 'jsonp', dataType: 'jsonp',
success: function(data) { success: function(data) {
@ -2251,17 +2190,6 @@
create(path); create(path);
} }
}); });
} else if (video.type === 'vzaar') {
$.ajax({
type: 'GET',
url: '//vzaar.com/api/videos/' + video.id + '.json',
jsonp: 'callback',
dataType: 'jsonp',
success: function(data) {
path = data.framegrab_url;
create(path);
}
});
} }
}; };
@ -2303,16 +2231,12 @@
this._core.reset(item.index()); this._core.reset(item.index());
if (video.type === 'youtube') { if (video.type === 'youtube') {
html = '<iframe width="' + width + '" height="' + height + '" src="//www.youtube.com/embed/' + html = '<iframe width="' + width + '" height="' + height + '" src="http://www.youtube.com/embed/' +
video.id + '?autoplay=1&v=' + video.id + '" frameborder="0" allowfullscreen></iframe>'; video.id + '?autoplay=1&v=' + video.id + '" frameborder="0" allowfullscreen></iframe>';
} else if (video.type === 'vimeo') { } else if (video.type === 'vimeo') {
html = '<iframe src="//player.vimeo.com/video/' + video.id + html = '<iframe src="http://player.vimeo.com/video/' + video.id +
'?autoplay=1" width="' + width + '" height="' + height + '?autoplay=1" width="' + width + '" height="' + height +
'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'; '" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
} else if (video.type === 'vzaar') {
html = '<iframe frameborder="0"' + 'height="' + height + '"' + 'width="' + width +
'" allowfullscreen mozallowfullscreen webkitAllowFullScreen ' +
'src="//view.vzaar.com/' + video.id + '/player?autoplay=true"></iframe>';
} }
$('<div class="owl-video-frame">' + html + '</div>').insertAfter(item.find('.owl-video')); $('<div class="owl-video-frame">' + html + '</div>').insertAfter(item.find('.owl-video'));
@ -2355,9 +2279,8 @@
/** /**
* Animate Plugin * Animate Plugin
* @version 2.1.0 * @version 2.0.0
* @author Bartosz Wojciechowski * @author Bartosz Wojciechowski
* @author David Deutsch
* @license The MIT License (MIT) * @license The MIT License (MIT)
*/ */
;(function($, window, document, undefined) { ;(function($, window, document, undefined) {
@ -2477,10 +2400,9 @@
/** /**
* Autoplay Plugin * Autoplay Plugin
* @version 2.1.0 * @version 2.0.0
* @author Bartosz Wojciechowski * @author Bartosz Wojciechowski
* @author Artus Kolanowski * @author Artus Kolanowski
* @author David Deutsch
* @license The MIT License (MIT) * @license The MIT License (MIT)
*/ */
;(function($, window, document, undefined) { ;(function($, window, document, undefined) {
@ -2499,10 +2421,10 @@
this._core = carousel; this._core = carousel;
/** /**
* The autoplay timeout. * The autoplay interval.
* @type {Timeout} * @type {Number}
*/ */
this._timeout = null; this._interval = null;
/** /**
* Indicates whenever the autoplay is paused. * Indicates whenever the autoplay is paused.
@ -2523,11 +2445,6 @@
} else { } else {
this.stop(); this.stop();
} }
} else if (e.namespace && e.property.name === 'position') {
//console.log('play?', e);
if (this._core.settings.autoplay) {
this._setAutoPlayInterval();
}
} }
}, this), }, this),
'initialized.owl.carousel': $.proxy(function(e) { 'initialized.owl.carousel': $.proxy(function(e) {
@ -2554,16 +2471,6 @@
if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) { if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
this.play(); this.play();
} }
}, this),
'touchstart.owl.core': $.proxy(function() {
if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
this.pause();
}
}, this),
'touchend.owl.core': $.proxy(function() {
if (this._core.settings.autoplayHoverPause) {
this.play();
}
}, this) }, this)
}; };
@ -2600,21 +2507,7 @@
this._core.enter('rotating'); this._core.enter('rotating');
this._setAutoPlayInterval(); this._interval = window.setInterval($.proxy(function() {
};
/**
* Gets a new timeout
* @private
* @param {Number} [timeout] - The interval before the next animation starts.
* @param {Number} [speed] - The animation speed for the animations.
* @return {Timeout}
*/
Autoplay.prototype._getNextTimeout = function(timeout, speed) {
if ( this._timeout ) {
window.clearTimeout(this._timeout);
}
return window.setTimeout($.proxy(function() {
if (this._paused || this._core.is('busy') || this._core.is('interacting') || document.hidden) { if (this._paused || this._core.is('busy') || this._core.is('interacting') || document.hidden) {
return; return;
} }
@ -2622,14 +2515,6 @@
}, this), timeout || this._core.settings.autoplayTimeout); }, this), timeout || this._core.settings.autoplayTimeout);
}; };
/**
* Sets autoplay in motion.
* @private
*/
Autoplay.prototype._setAutoPlayInterval = function() {
this._timeout = this._getNextTimeout();
};
/** /**
* Stops the autoplay. * Stops the autoplay.
* @public * @public
@ -2639,7 +2524,7 @@
return; return;
} }
window.clearTimeout(this._timeout); window.clearInterval(this._interval);
this._core.leave('rotating'); this._core.leave('rotating');
}; };
@ -2677,9 +2562,8 @@
/** /**
* Navigation Plugin * Navigation Plugin
* @version 2.1.0 * @version 2.0.0
* @author Artus Kolanowski * @author Artus Kolanowski
* @author David Deutsch
* @license The MIT License (MIT) * @license The MIT License (MIT)
*/ */
;(function($, window, document, undefined) { ;(function($, window, document, undefined) {
@ -2752,7 +2636,7 @@
'prepared.owl.carousel': $.proxy(function(e) { 'prepared.owl.carousel': $.proxy(function(e) {
if (e.namespace && this._core.settings.dotsData) { if (e.namespace && this._core.settings.dotsData) {
this._templates.push('<div class="' + this._core.settings.dotClass + '">' + this._templates.push('<div class="' + this._core.settings.dotClass + '">' +
$(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot') + '</div>'); $(e.content).find('[data-dot]').andSelf('[data-dot]').attr('data-dot') + '</div>');
} }
}, this), }, this),
'added.owl.carousel': $.proxy(function(e) { 'added.owl.carousel': $.proxy(function(e) {
@ -3046,7 +2930,7 @@
Navigation.prototype.to = function(position, speed, standard) { Navigation.prototype.to = function(position, speed, standard) {
var length; var length;
if (!standard && this._pages.length) { if (!standard) {
length = this._pages.length; length = this._pages.length;
$.proxy(this._overrides.to, this._core)(this._pages[((position % length) + length) % length].start, speed); $.proxy(this._overrides.to, this._core)(this._pages[((position % length) + length) % length].start, speed);
} else { } else {
@ -3060,9 +2944,8 @@
/** /**
* Hash Plugin * Hash Plugin
* @version 2.1.0 * @version 2.0.0
* @author Artus Kolanowski * @author Artus Kolanowski
* @author David Deutsch
* @license The MIT License (MIT) * @license The MIT License (MIT)
*/ */
;(function($, window, document, undefined) { ;(function($, window, document, undefined) {
@ -3107,7 +2990,7 @@
}, this), }, this),
'prepared.owl.carousel': $.proxy(function(e) { 'prepared.owl.carousel': $.proxy(function(e) {
if (e.namespace) { if (e.namespace) {
var hash = $(e.content).find('[data-hash]').addBack('[data-hash]').attr('data-hash'); var hash = $(e.content).find('[data-hash]').andSelf('[data-hash]').attr('data-hash');
if (!hash) { if (!hash) {
return; return;
@ -3184,10 +3067,9 @@
/** /**
* Support Plugin * Support Plugin
* *
* @version 2.1.0 * @version 2.0.0
* @author Vivid Planet Software GmbH * @author Vivid Planet Software GmbH
* @author Artus Kolanowski * @author Artus Kolanowski
* @author David Deutsch
* @license The MIT License (MIT) * @license The MIT License (MIT)
*/ */
;(function($, window, document, undefined) { ;(function($, window, document, undefined) {

File diff suppressed because one or more lines are too long

View File

@ -14,7 +14,7 @@
background: $nav-background; background: $nav-background;
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
border-radius: 3px; @include rounded($nav-rounded);
&:hover { &:hover {
background: $nav-background-hover; background: $nav-background-hover;
@ -32,7 +32,6 @@
.owl-nav.disabled + .owl-dots { .owl-nav.disabled + .owl-dots {
margin-top: 10px; margin-top: 10px;
} }
.owl-dots { .owl-dots {
text-align: center; text-align: center;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
@ -49,8 +48,8 @@
background: $dot-background; background: $dot-background;
display: block; display: block;
-webkit-backface-visibility: visible; -webkit-backface-visibility: visible;
transition: opacity 200ms ease; @include transition(opacity, 200ms, ease);
border-radius: 30px; @include rounded($dot-rounded);
} }
&.active, &.active,

View File

@ -1,5 +1,108 @@
@import 'core'; /*
@import 'animate'; * Core Owl Carousel CSS File
@import 'autoheight'; */
@import 'lazyload'; .owl-carousel {
@import 'video'; display: none;
width: 100%;
-webkit-tap-highlight-color: transparent;
/* position relative and z-index fix webkit rendering fonts issue */
position: relative;
z-index: 1;
.owl-stage {
position: relative;
-ms-touch-action: pan-Y;
}
.owl-stage:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.owl-stage-outer {
position: relative;
overflow: hidden;
/* fix for flashing background */
-webkit-transform: translate3d(0px, 0px, 0px);
}
.owl-item {
position: relative;
min-height: 1px;
float: left;
-webkit-backface-visibility: hidden;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
}
.owl-item img {
display: block;
width: 100%;
-webkit-transform-style: preserve-3d;
}
.owl-nav.disabled,
.owl-dots.disabled {
display: none;
}
.owl-nav .owl-prev,
.owl-nav .owl-next,
.owl-dot {
cursor: pointer;
cursor: hand;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
&.owl-loaded {
display: block;
}
&.owl-loading {
opacity: 0;
display: block;
}
&.owl-hidden {
opacity: 0;
}
&.owl-refresh .owl-item {
display: none;
}
&.owl-drag .owl-item {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
&.owl-grab {
cursor: move;
cursor: -webkit-grab;
cursor: -o-grab;
cursor: -ms-grab;
cursor: grab;
}
&.owl-rtl {
direction: rtl;
}
&.owl-rtl .owl-item {
float: right;
}
}
/* No Js */
.no-js .owl-carousel {
display: block;
}