optimize for google pagespeed insights
git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3479 f459cee4-fb09-11de-96c3-f9c5f16c3c76
20012
trunk/src/AppBundle/Resources/config.codekit3
Normal file
392
trunk/src/AppBundle/Resources/public/css/bootstrap-select-1.13.2.css
vendored
Executable file
|
|
@ -0,0 +1,392 @@
|
|||
/*!
|
||||
* Bootstrap-select v1.13.2 (https://developer.snapappointments.com/bootstrap-select)
|
||||
*
|
||||
* Copyright 2012-2018 SnapAppointments, LLC
|
||||
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
|
||||
*/
|
||||
|
||||
select.bs-select-hidden,
|
||||
.bootstrap-select > select.bs-select-hidden,
|
||||
select.selectpicker {
|
||||
display: none !important;
|
||||
}
|
||||
.bootstrap-select {
|
||||
width: 220px \0;
|
||||
/*IE9 and below*/
|
||||
}
|
||||
.bootstrap-select > .dropdown-toggle {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder:hover,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder:focus,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder:active {
|
||||
color: #999;
|
||||
}
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:hover,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:hover,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:hover,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:hover,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:hover,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:hover,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:focus,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:focus,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:focus,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:focus,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:focus,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:focus,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:active,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:active,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:active,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:active,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:active,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:active {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
.bootstrap-select > select {
|
||||
position: absolute !important;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
display: block !important;
|
||||
width: 0.5px !important;
|
||||
height: 100% !important;
|
||||
padding: 0 !important;
|
||||
opacity: 0 !important;
|
||||
border: none;
|
||||
}
|
||||
.bootstrap-select > select.mobile-device {
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: block !important;
|
||||
width: 100% !important;
|
||||
z-index: 2;
|
||||
}
|
||||
.has-error .bootstrap-select .dropdown-toggle,
|
||||
.error .bootstrap-select .dropdown-toggle,
|
||||
.bootstrap-select.is-invalid .dropdown-toggle,
|
||||
.was-validated .bootstrap-select .selectpicker:invalid + .dropdown-toggle {
|
||||
border-color: #b94a48;
|
||||
}
|
||||
.bootstrap-select.is-valid .dropdown-toggle,
|
||||
.was-validated .bootstrap-select .selectpicker:valid + .dropdown-toggle {
|
||||
border-color: #28a745;
|
||||
}
|
||||
.bootstrap-select.fit-width {
|
||||
width: auto !important;
|
||||
}
|
||||
.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
|
||||
width: 220px;
|
||||
}
|
||||
.bootstrap-select .dropdown-toggle:focus {
|
||||
outline: thin dotted #333333 !important;
|
||||
outline: 5px auto -webkit-focus-ring-color !important;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
.bootstrap-select.form-control {
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
:not(.input-group) > .bootstrap-select.form-control:not([class*="col-"]) {
|
||||
width: 100%;
|
||||
}
|
||||
.bootstrap-select.form-control.input-group-btn {
|
||||
z-index: auto;
|
||||
}
|
||||
.bootstrap-select.form-control.input-group-btn:not(:first-child):not(:last-child) > .btn {
|
||||
border-radius: 0;
|
||||
}
|
||||
.bootstrap-select:not(.input-group-btn),
|
||||
.bootstrap-select[class*="col-"] {
|
||||
float: none;
|
||||
display: inline-block;
|
||||
margin-left: 0;
|
||||
}
|
||||
.bootstrap-select.dropdown-menu-right,
|
||||
.bootstrap-select[class*="col-"].dropdown-menu-right,
|
||||
.row .bootstrap-select[class*="col-"].dropdown-menu-right {
|
||||
float: right;
|
||||
}
|
||||
.form-inline .bootstrap-select,
|
||||
.form-horizontal .bootstrap-select,
|
||||
.form-group .bootstrap-select {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.form-group-lg .bootstrap-select.form-control,
|
||||
.form-group-sm .bootstrap-select.form-control {
|
||||
padding: 0;
|
||||
}
|
||||
.form-group-lg .bootstrap-select.form-control .dropdown-toggle,
|
||||
.form-group-sm .bootstrap-select.form-control .dropdown-toggle {
|
||||
height: 100%;
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
border-radius: inherit;
|
||||
}
|
||||
.bootstrap-select.form-control-sm .dropdown-toggle,
|
||||
.bootstrap-select.form-control-lg .dropdown-toggle {
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
border-radius: inherit;
|
||||
}
|
||||
.bootstrap-select.form-control-sm .dropdown-toggle {
|
||||
padding: 0.25rem 0.5rem;
|
||||
}
|
||||
.bootstrap-select.form-control-lg .dropdown-toggle {
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
.form-inline .bootstrap-select .form-control {
|
||||
width: 100%;
|
||||
}
|
||||
.bootstrap-select.disabled,
|
||||
.bootstrap-select > .disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.bootstrap-select.disabled:focus,
|
||||
.bootstrap-select > .disabled:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
.bootstrap-select.bs-container {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
.bootstrap-select.bs-container .dropdown-menu {
|
||||
z-index: 1060;
|
||||
}
|
||||
.bootstrap-select .dropdown-toggle:before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
}
|
||||
.bootstrap-select .dropdown-toggle .filter-option {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding-top: inherit;
|
||||
padding-right: inherit;
|
||||
padding-bottom: inherit;
|
||||
padding-left: inherit;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
.bootstrap-select .dropdown-toggle .filter-option-inner {
|
||||
padding-right: inherit;
|
||||
}
|
||||
.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
|
||||
overflow: hidden;
|
||||
}
|
||||
.bootstrap-select .dropdown-toggle .caret {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 12px;
|
||||
margin-top: -2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.input-group .bootstrap-select.form-control .dropdown-toggle {
|
||||
border-radius: inherit;
|
||||
}
|
||||
.bootstrap-select[class*="col-"] .dropdown-toggle {
|
||||
width: 100%;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu {
|
||||
min-width: 100%;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu > .inner:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu.inner {
|
||||
position: static;
|
||||
float: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu li {
|
||||
position: relative;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu li.active small {
|
||||
color: rgba(255, 255, 255, 0.5) !important;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu li.disabled a {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu li a {
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu li a.opt {
|
||||
position: relative;
|
||||
padding-left: 2.25em;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu li a span.check-mark {
|
||||
display: none;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu li a span.text {
|
||||
display: inline-block;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu li small {
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
.bootstrap-select .dropdown-menu .notify {
|
||||
position: absolute;
|
||||
bottom: 5px;
|
||||
width: 96%;
|
||||
margin: 0 2%;
|
||||
min-height: 26px;
|
||||
padding: 3px 5px;
|
||||
background: #f5f5f5;
|
||||
border: 1px solid #e3e3e3;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
||||
pointer-events: none;
|
||||
opacity: 0.9;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.bootstrap-select .no-results {
|
||||
padding: 3px;
|
||||
background: #f5f5f5;
|
||||
margin: 0 5px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.bootstrap-select.fit-width .dropdown-toggle .filter-option {
|
||||
position: static;
|
||||
display: inline;
|
||||
padding: 0;
|
||||
}
|
||||
.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner,
|
||||
.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner {
|
||||
display: inline;
|
||||
}
|
||||
.bootstrap-select.fit-width .dropdown-toggle .caret {
|
||||
position: static;
|
||||
top: auto;
|
||||
margin-top: -1px;
|
||||
}
|
||||
.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
right: 15px;
|
||||
top: 5px;
|
||||
}
|
||||
.bootstrap-select.show-tick .dropdown-menu li a span.text {
|
||||
margin-right: 34px;
|
||||
}
|
||||
.bootstrap-select .bs-ok-default:after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 0.5em;
|
||||
height: 1em;
|
||||
border-style: solid;
|
||||
border-width: 0 0.26em 0.26em 0;
|
||||
-webkit-transform: rotate(45deg);
|
||||
-ms-transform: rotate(45deg);
|
||||
-o-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.bootstrap-select.show-menu-arrow.open > .dropdown-toggle,
|
||||
.bootstrap-select.show-menu-arrow.show > .dropdown-toggle {
|
||||
z-index: 1061;
|
||||
}
|
||||
.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before {
|
||||
content: '';
|
||||
border-left: 7px solid transparent;
|
||||
border-right: 7px solid transparent;
|
||||
border-bottom: 7px solid rgba(204, 204, 204, 0.2);
|
||||
position: absolute;
|
||||
bottom: -4px;
|
||||
left: 9px;
|
||||
display: none;
|
||||
}
|
||||
.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after {
|
||||
content: '';
|
||||
border-left: 6px solid transparent;
|
||||
border-right: 6px solid transparent;
|
||||
border-bottom: 6px solid white;
|
||||
position: absolute;
|
||||
bottom: -4px;
|
||||
left: 10px;
|
||||
display: none;
|
||||
}
|
||||
.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before {
|
||||
bottom: auto;
|
||||
top: -4px;
|
||||
border-top: 7px solid rgba(204, 204, 204, 0.2);
|
||||
border-bottom: 0;
|
||||
}
|
||||
.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after {
|
||||
bottom: auto;
|
||||
top: -4px;
|
||||
border-top: 6px solid white;
|
||||
border-bottom: 0;
|
||||
}
|
||||
.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before {
|
||||
right: 12px;
|
||||
left: auto;
|
||||
}
|
||||
.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after {
|
||||
right: 13px;
|
||||
left: auto;
|
||||
}
|
||||
.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:before,
|
||||
.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:before,
|
||||
.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:after,
|
||||
.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:after {
|
||||
display: block;
|
||||
}
|
||||
.bs-searchbox,
|
||||
.bs-actionsbox,
|
||||
.bs-donebutton {
|
||||
padding: 4px 8px;
|
||||
}
|
||||
.bs-actionsbox {
|
||||
width: 100%;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.bs-actionsbox .btn-group button {
|
||||
width: 50%;
|
||||
}
|
||||
.bs-donebutton {
|
||||
float: left;
|
||||
width: 100%;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.bs-donebutton .btn-group button {
|
||||
width: 100%;
|
||||
}
|
||||
.bs-searchbox + .bs-actionsbox {
|
||||
padding: 0 8px 4px;
|
||||
}
|
||||
.bs-searchbox .form-control {
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
float: none;
|
||||
}
|
||||
/*# sourceMappingURL=bootstrap-select.css.map */
|
||||
1
trunk/src/AppBundle/Resources/public/css/custom-min.css
vendored
Normal file
1
trunk/src/AppBundle/Resources/public/css/header-min.css
vendored
Normal file
1367
trunk/src/AppBundle/Resources/public/css/header.css
Normal file
5
trunk/src/AppBundle/Resources/public/css/jqueryUI-min.css
vendored
Normal file
1225
trunk/src/AppBundle/Resources/public/css/jqueryUI.css
Normal file
17
trunk/src/AppBundle/Resources/public/css/my-custom-blessed1-min.css
vendored
Normal file
1
trunk/src/AppBundle/Resources/public/css/my-custom.css
Normal file
12
trunk/src/AppBundle/Resources/public/css/my-custom.less
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
@import url(https://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900);
|
||||
@import url(https://fonts.googleapis.com/css?family=Oswald:400,700);
|
||||
|
||||
@import (inline) './bootstrap-3.3.7.css';
|
||||
@import (inline) './jqueryUI.css';
|
||||
@import (inline) './font-awesome-4.7.0.css';
|
||||
@import (inline) './bootstrap-select-1.13.2.css';
|
||||
@import (inline) './owl-carousel.css';
|
||||
@import (inline) './cookieconsent.min.css';
|
||||
@import (inline) './custom.css';
|
||||
@import (inline) './header-min.css';
|
||||
1
trunk/src/AppBundle/Resources/public/css/preload-min.css
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
#preloader{position:fixed;z-index:9999999;top:0;bottom:0;right:0;left:0;background:#fff}.inner{position:absolute;top:0;bottom:0;right:0;left:0;width:54px;height:54px;margin:auto}.page-loader{display:block;width:100%;height:100%;position:fixed;top:0;left:0;background:#fefefe;z-index:100000}#preloader span.loader{width:50px;height:50px;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;font-size:10px;text-indent:-12345px;border-top:1px solid rgba(0,0,0,0.08);border-right:1px solid rgba(0,0,0,0.08);border-bottom:1px solid rgba(0,0,0,0.08);border-left:1px solid rgba(0,0,0,0.5);border-radius:50%;-webkit-animation:spinner 700ms infinite linear;animation:spinner 700ms infinite linear;z-index:100001}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
|
||||
130
trunk/src/AppBundle/Resources/public/css/preload.css
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
/** Preloader
|
||||
**************************************************************** **/
|
||||
#preloader {
|
||||
position: fixed;
|
||||
z-index: 9999999;
|
||||
top: 0; bottom: 0;
|
||||
right: 0; left: 0;
|
||||
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.inner {
|
||||
position: absolute;
|
||||
top: 0; bottom: 0;
|
||||
right: 0; left: 0;
|
||||
|
||||
width: 54px;
|
||||
height: 54px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.page-loader{
|
||||
display:block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: #fefefe;
|
||||
z-index: 100000;
|
||||
}
|
||||
|
||||
#preloader span.loader {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin: -25px 0 0 -25px;
|
||||
font-size: 10px;
|
||||
text-indent: -12345px;
|
||||
border-top: 1px solid rgba(0,0,0, 0.08);
|
||||
border-right: 1px solid rgba(0,0,0, 0.08);
|
||||
border-bottom: 1px solid rgba(0,0,0, 0.08);
|
||||
border-left: 1px solid rgba(0,0,0, 0.5);
|
||||
|
||||
-webkit-border-radius: 50%;
|
||||
-moz-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
|
||||
-webkit-animation: spinner 700ms infinite linear;
|
||||
-moz-animation: spinner 700ms infinite linear;
|
||||
-ms-animation: spinner 700ms infinite linear;
|
||||
-o-animation: spinner 700ms infinite linear;
|
||||
animation: spinner 700ms infinite linear;
|
||||
|
||||
z-index: 100001;
|
||||
}
|
||||
|
||||
@-webkit-keyframes spinner {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-moz-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
-o-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-moz-transform: rotate(360deg);
|
||||
-ms-transform: rotate(360deg);
|
||||
-o-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@-moz-keyframes spinner {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-moz-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
-o-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-moz-transform: rotate(360deg);
|
||||
-ms-transform: rotate(360deg);
|
||||
-o-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@-o-keyframes spinner {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-moz-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
-o-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-moz-transform: rotate(360deg);
|
||||
-ms-transform: rotate(360deg);
|
||||
-o-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spinner {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-moz-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
-o-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-moz-transform: rotate(360deg);
|
||||
-ms-transform: rotate(360deg);
|
||||
-o-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
BIN
trunk/src/AppBundle/Resources/public/images/_1logo-qualitaet.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
186
trunk/src/AppBundle/Resources/public/images/_footer.svg
Normal file
|
|
@ -0,0 +1,186 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" baseProfile="tiny" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
x="0px" y="0px" viewBox="0 0 595.4 191.5" xml:space="preserve">
|
||||
<rect x="30.4" y="97.2" fill="none" width="95.7" height="79.5"/>
|
||||
<text transform="matrix(1 0 0 1 30.4243 103.3096)" fill="#7E7E7E" font-family="'Tahoma-Bold'" font-size="8px">STERN TOURS GmbH</text>
|
||||
<text transform="matrix(1 0 0 1 30.4243 112.8096)" fill="#1E181A" font-family="'Tahoma-Bold'" font-size="8px">Emser Straße 3</text>
|
||||
<text transform="matrix(1 0 0 1 30.4243 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">1</text>
|
||||
<text transform="matrix(1 0 0 1 34.7915 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">0</text>
|
||||
<text transform="matrix(1 0 0 1 39.1587 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">7</text>
|
||||
<text transform="matrix(1 0 0 1 43.5259 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">1</text>
|
||||
<text transform="matrix(1 0 0 1 47.8931 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">9</text>
|
||||
<text transform="matrix(1 0 0 1 52.2602 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 54.7602 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">B</text>
|
||||
<text transform="matrix(1 0 0 1 59.5141 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">e</text>
|
||||
<text transform="matrix(1 0 0 1 63.7251 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">r</text>
|
||||
<text transform="matrix(1 0 0 1 66.6079 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">l</text>
|
||||
<text transform="matrix(1 0 0 1 68.4438 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">i</text>
|
||||
<text transform="matrix(1 0 0 1 70.272 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">n</text>
|
||||
<text transform="matrix(1 0 0 1 74.7329 122.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<rect x="144.1" y="97.2" fill="none" width="126.3" height="79.5"/>
|
||||
<text transform="matrix(1 0 0 1 144.0776 103.3096)" fill="#7E7E7E" font-family="'Tahoma-Bold'" font-size="8px">e-Mail</text>
|
||||
<text transform="matrix(1 0 0 1 169.0386 103.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 172.7446 103.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> stern@stern-tours.de</text>
|
||||
<text transform="matrix(1 0 0 1 144.0776 112.8096)" fill="#7E7E7E" font-family="'Tahoma-Bold'" font-size="8px">Web</text>
|
||||
<text transform="matrix(1 0 0 1 162.1046 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 172.7446 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 175.2446 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 177.7446 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 180.2446 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 182.7446 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">w</text>
|
||||
<text transform="matrix(1 0 0 1 188.6821 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">w</text>
|
||||
<text transform="matrix(1 0 0 1 194.6196 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">w</text>
|
||||
<text transform="matrix(1 0 0 1 200.2915 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">.</text>
|
||||
<text transform="matrix(1 0 0 1 202.7133 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">s</text>
|
||||
<text transform="matrix(1 0 0 1 206.2837 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">t</text>
|
||||
<text transform="matrix(1 0 0 1 208.9594 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">e</text>
|
||||
<text transform="matrix(1 0 0 1 213.1704 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">r</text>
|
||||
<text transform="matrix(1 0 0 1 216.0532 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">n</text>
|
||||
<text transform="matrix(1 0 0 1 220.5141 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">-</text>
|
||||
<text transform="matrix(1 0 0 1 223.4204 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">t</text>
|
||||
<text transform="matrix(1 0 0 1 226.0962 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">o</text>
|
||||
<text transform="matrix(1 0 0 1 230.4399 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">u</text>
|
||||
<text transform="matrix(1 0 0 1 234.9008 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">r</text>
|
||||
<text transform="matrix(1 0 0 1 237.7837 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">s</text>
|
||||
<text transform="matrix(1 0 0 1 241.354 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">.</text>
|
||||
<text transform="matrix(1 0 0 1 243.7758 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">d</text>
|
||||
<text transform="matrix(1 0 0 1 248.1977 112.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">e</text>
|
||||
<text transform="matrix(1 0 0 1 144.0776 131.8096)" fill="#7E7E7E" font-family="'Tahoma-Bold'" font-size="8px">Fon</text>
|
||||
<text transform="matrix(1 0 0 1 158.7846 131.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 172.7446 131.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> 030 | 700 94 100</text>
|
||||
<text transform="matrix(1 0 0 1 144.0776 141.3096)" fill="#7E7E7E" font-family="'Tahoma-Bold'" font-size="8px">Fax</text>
|
||||
<text transform="matrix(1 0 0 1 158.3506 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 172.7446 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> 030 | 700 94 1044</text>
|
||||
<rect x="287.5" y="97.2" fill="none" width="135.6" height="79.5"/>
|
||||
<text transform="matrix(1 0 0 1 287.4805 103.3086)" fill="#7E7E7E" font-family="'Tahoma-Bold'" font-size="8px">Bankverbindung</text>
|
||||
<text transform="matrix(1 0 0 1 287.4805 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">S</text>
|
||||
<text transform="matrix(1 0 0 1 291.9375 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">T</text>
|
||||
<text transform="matrix(1 0 0 1 296.6094 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">E</text>
|
||||
<text transform="matrix(1 0 0 1 301.0977 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">R</text>
|
||||
<text transform="matrix(1 0 0 1 306.0625 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">N</text>
|
||||
<text transform="matrix(1 0 0 1 311.4024 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 313.9024 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">T</text>
|
||||
<text transform="matrix(1 0 0 1 318.3907 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">O</text>
|
||||
<text transform="matrix(1 0 0 1 324.0508 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">U</text>
|
||||
<text transform="matrix(1 0 0 1 329.2969 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">R</text>
|
||||
<text transform="matrix(1 0 0 1 334.2617 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">S</text>
|
||||
<text transform="matrix(1 0 0 1 338.7188 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 341.2188 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">G</text>
|
||||
<text transform="matrix(1 0 0 1 346.5586 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">m</text>
|
||||
<text transform="matrix(1 0 0 1 353.2774 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">b</text>
|
||||
<text transform="matrix(1 0 0 1 357.6992 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">H</text>
|
||||
<text transform="matrix(1 0 0 1 287.4805 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">H</text>
|
||||
<text transform="matrix(1 0 0 1 292.8828 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">y</text>
|
||||
<text transform="matrix(1 0 0 1 296.8672 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">p</text>
|
||||
<text transform="matrix(1 0 0 1 301.2891 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">o</text>
|
||||
<text transform="matrix(1 0 0 1 305.6328 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 308.1328 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">V</text>
|
||||
<text transform="matrix(1 0 0 1 312.5391 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">e</text>
|
||||
<text transform="matrix(1 0 0 1 316.75 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">r</text>
|
||||
<text transform="matrix(1 0 0 1 319.5938 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">e</text>
|
||||
<text transform="matrix(1 0 0 1 323.8047 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">i</text>
|
||||
<text transform="matrix(1 0 0 1 325.6328 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">n</text>
|
||||
<text transform="matrix(1 0 0 1 330.0938 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">s</text>
|
||||
<text transform="matrix(1 0 0 1 333.6641 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">b</text>
|
||||
<text transform="matrix(1 0 0 1 338.086 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">a</text>
|
||||
<text transform="matrix(1 0 0 1 342.2852 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">n</text>
|
||||
<text transform="matrix(1 0 0 1 346.7461 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">k</text>
|
||||
<text transform="matrix(1 0 0 1 287.4805 131.8096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">IBAN: DE83100208900018857111</text>
|
||||
<text transform="matrix(1 0 0 1 287.4805 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">B</text>
|
||||
<text transform="matrix(1 0 0 1 292.1953 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">I</text>
|
||||
<text transform="matrix(1 0 0 1 295.1797 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">C</text>
|
||||
<text transform="matrix(1 0 0 1 299.8008 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">-</text>
|
||||
<text transform="matrix(1 0 0 1 302.7071 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">/</text>
|
||||
<text transform="matrix(1 0 0 1 305.7657 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">S</text>
|
||||
<text transform="matrix(1 0 0 1 310.2227 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">W</text>
|
||||
<text transform="matrix(1 0 0 1 317.4375 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">I</text>
|
||||
<text transform="matrix(1 0 0 1 320.4219 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">F</text>
|
||||
<text transform="matrix(1 0 0 1 324.7071 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">T</text>
|
||||
<text transform="matrix(1 0 0 1 328.8203 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">-</text>
|
||||
<text transform="matrix(1 0 0 1 331.7266 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">C</text>
|
||||
<text transform="matrix(1 0 0 1 336.5313 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">o</text>
|
||||
<text transform="matrix(1 0 0 1 340.875 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">d</text>
|
||||
<text transform="matrix(1 0 0 1 345.2969 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">e</text>
|
||||
<text transform="matrix(1 0 0 1 349.5078 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">:</text>
|
||||
<text transform="matrix(1 0 0 1 352.336 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 354.836 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">H</text>
|
||||
<text transform="matrix(1 0 0 1 360.2383 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">Y</text>
|
||||
<text transform="matrix(1 0 0 1 364.8477 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">V</text>
|
||||
<text transform="matrix(1 0 0 1 369.6211 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">E</text>
|
||||
<text transform="matrix(1 0 0 1 374.1094 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">D</text>
|
||||
<text transform="matrix(1 0 0 1 379.5352 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">E</text>
|
||||
<text transform="matrix(1 0 0 1 384.0235 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">M</text>
|
||||
<text transform="matrix(1 0 0 1 390.1875 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">M</text>
|
||||
<text transform="matrix(1 0 0 1 396.3516 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">4</text>
|
||||
<text transform="matrix(1 0 0 1 400.7188 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">8</text>
|
||||
<text transform="matrix(1 0 0 1 405.086 141.3096)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">8</text>
|
||||
<rect x="447.2" y="97.2" fill="none" width="129.1" height="88.5"/>
|
||||
<text transform="matrix(1 0 0 1 447.1821 103.3086)" fill="#7E7E7E" font-family="'Tahoma-Bold'" font-size="8px">Telefonische Öffnungszeiten</text>
|
||||
<text transform="matrix(1 0 0 1 447.1821 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">Mo - Do:</text>
|
||||
<text transform="matrix(1 0 0 1 478.1941 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 490.9321 112.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">09:00 - 22:00 Uhr</text>
|
||||
<text transform="matrix(1 0 0 1 447.1821 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">Fr:</text>
|
||||
<text transform="matrix(1 0 0 1 457.0651 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 473.1821 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 490.9321 122.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">10:00 - 22:00 Uhr</text>
|
||||
<text transform="matrix(1 0 0 1 447.1821 131.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">Sa: </text>
|
||||
<text transform="matrix(1 0 0 1 461.1661 131.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 473.1821 131.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 490.9321 131.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">11:00 - 22.00 Uhr</text>
|
||||
<text transform="matrix(1 0 0 1 447.1821 150.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">UStID:</text>
|
||||
<text transform="matrix(1 0 0 1 470.7991 150.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 473.1821 150.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> DE192609253</text>
|
||||
<text transform="matrix(1 0 0 1 447.1821 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">R</text>
|
||||
<text transform="matrix(1 0 0 1 452.0024 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">e</text>
|
||||
<text transform="matrix(1 0 0 1 456.2134 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">g</text>
|
||||
<text transform="matrix(1 0 0 1 460.6353 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">i</text>
|
||||
<text transform="matrix(1 0 0 1 462.4634 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">s</text>
|
||||
<text transform="matrix(1 0 0 1 466.0337 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">t</text>
|
||||
<text transform="matrix(1 0 0 1 468.7095 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">e</text>
|
||||
<text transform="matrix(1 0 0 1 472.9204 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">r</text>
|
||||
<text transform="matrix(1 0 0 1 475.8032 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">n</text>
|
||||
<text transform="matrix(1 0 0 1 480.2642 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">u</text>
|
||||
<text transform="matrix(1 0 0 1 484.7251 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">m</text>
|
||||
<text transform="matrix(1 0 0 1 491.4438 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">m</text>
|
||||
<text transform="matrix(1 0 0 1 498.1626 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">e</text>
|
||||
<text transform="matrix(1 0 0 1 502.3735 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">r</text>
|
||||
<text transform="matrix(1 0 0 1 505.2563 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">:</text>
|
||||
<text transform="matrix(1 0 0 1 508.0845 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 510.5845 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 513.0845 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">H</text>
|
||||
<text transform="matrix(1 0 0 1 518.4868 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">R</text>
|
||||
<text transform="matrix(1 0 0 1 523.4517 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">B</text>
|
||||
<text transform="matrix(1 0 0 1 528.1665 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 530.6665 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">6</text>
|
||||
<text transform="matrix(1 0 0 1 535.0337 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">7</text>
|
||||
<text transform="matrix(1 0 0 1 539.4009 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">1</text>
|
||||
<text transform="matrix(1 0 0 1 543.7681 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">1</text>
|
||||
<text transform="matrix(1 0 0 1 548.1353 160.3086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">1</text>
|
||||
<text transform="matrix(1 0 0 1 447.1821 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">A</text>
|
||||
<text transform="matrix(1 0 0 1 451.979 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">m</text>
|
||||
<text transform="matrix(1 0 0 1 458.6978 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">t</text>
|
||||
<text transform="matrix(1 0 0 1 461.3735 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">s</text>
|
||||
<text transform="matrix(1 0 0 1 464.9438 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">g</text>
|
||||
<text transform="matrix(1 0 0 1 469.3657 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">e</text>
|
||||
<text transform="matrix(1 0 0 1 473.5767 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">r</text>
|
||||
<text transform="matrix(1 0 0 1 476.4595 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">i</text>
|
||||
<text transform="matrix(1 0 0 1 478.2876 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">c</text>
|
||||
<text transform="matrix(1 0 0 1 481.979 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">h</text>
|
||||
<text transform="matrix(1 0 0 1 486.4399 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">t</text>
|
||||
<text transform="matrix(1 0 0 1 489.1157 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px"> </text>
|
||||
<text transform="matrix(1 0 0 1 491.6157 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">C</text>
|
||||
<text transform="matrix(1 0 0 1 496.4204 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">h</text>
|
||||
<text transform="matrix(1 0 0 1 500.8813 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">a</text>
|
||||
<text transform="matrix(1 0 0 1 505.0806 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">r</text>
|
||||
<text transform="matrix(1 0 0 1 507.9634 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">l</text>
|
||||
<text transform="matrix(1 0 0 1 509.7915 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">o</text>
|
||||
<text transform="matrix(1 0 0 1 514.1353 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">t</text>
|
||||
<text transform="matrix(1 0 0 1 516.7485 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">t</text>
|
||||
<text transform="matrix(1 0 0 1 519.4243 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">e</text>
|
||||
<text transform="matrix(1 0 0 1 523.6353 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">n</text>
|
||||
<text transform="matrix(1 0 0 1 528.0962 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">b</text>
|
||||
<text transform="matrix(1 0 0 1 532.5181 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">u</text>
|
||||
<text transform="matrix(1 0 0 1 536.979 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">r</text>
|
||||
<text transform="matrix(1 0 0 1 539.8228 169.8086)" fill="#1E181A" font-family="'Tahoma'" font-size="8px">g</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 21 KiB |
BIN
trunk/src/AppBundle/Resources/public/images/_logo-qualitaet.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
|
|
@ -1,16 +1,54 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="595.358px" height="191.533px" viewBox="0 0 595.358 191.533" enable-background="new 0 0 595.358 191.533"
|
||||
xml:space="preserve">
|
||||
<rect x="30.424" y="97.229" fill="none" width="95.653" height="79.521"/>
|
||||
<text transform="matrix(1 0 0 1 30.4243 103.3096)"><tspan x="0" y="0" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">STERN TOURS GmbH</tspan><tspan x="0" y="9.5" fill="#1E181A" font-family="'Tahoma-Bold'" font-size="8">Uhlandstraße 137</tspan><tspan x="0" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8">10717 Berlin </tspan></text>
|
||||
<rect x="144.078" y="97.229" fill="none" width="126.32" height="79.521"/>
|
||||
<text transform="matrix(1 0 0 1 144.0776 103.3096)"><tspan x="0" y="0" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">e-Mail</tspan><tspan x="24.961" y="0" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="1"> </tspan><tspan x="28.667" y="0" fill="#1E181A" font-family="'Tahoma'" font-size="8"> stern@stern-tours.de</tspan><tspan x="0" y="9.5" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">Web</tspan><tspan x="18.027" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="8"> </tspan><tspan x="28.667" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8"> www.stern-tours.de</tspan><tspan x="0" y="28.5" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">Fon</tspan><tspan x="14.707" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="11"> </tspan><tspan x="28.667" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8"> 030 | 700 94 100</tspan><tspan x="0" y="38" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">Fax</tspan><tspan x="14.273" y="38" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="11"> </tspan><tspan x="28.667" y="38" fill="#1E181A" font-family="'Tahoma'" font-size="8"> 030 | 700 94 1044</tspan></text>
|
||||
<rect x="287.48" y="97.229" fill="none" width="135.597" height="79.521"/>
|
||||
<text transform="matrix(1 0 0 1 287.4805 103.3086)"><tspan x="0" y="0" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">Bankverbindung</tspan><tspan x="0" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">STERN TOURS GmbH</tspan><tspan x="0" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8">Hypo Vereinsbank</tspan><tspan x="0" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">BLZ: 10020890</tspan><tspan x="0" y="38" fill="#1E181A" font-family="'Tahoma'" font-size="8">Kto.: 18857111</tspan><tspan x="0" y="57" fill="#1E181A" font-family="'Tahoma'" font-size="8">IBAN: DE83100208900018857111</tspan><tspan x="0" y="66.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">BIC-/SWIFT-Code: HYVEDEMM488</tspan></text>
|
||||
<rect x="447.182" y="97.229" fill="none" width="129.12" height="88.521"/>
|
||||
<text transform="matrix(1 0 0 1 447.1821 103.3086)"><tspan x="0" y="0" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">Telefonische Öffnungszeiten</tspan><tspan x="0" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">Mo - Do:</tspan><tspan x="31.012" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="10"> </tspan><tspan x="43.75" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">09:00 - 23:00 Uhr</tspan><tspan x="0" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8">Fr:</tspan><tspan x="9.883" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="13"> </tspan><tspan x="26" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="15"> </tspan><tspan x="43.75" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8">10:00 - 23:00 Uhr</tspan><tspan x="0" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">Sa: </tspan><tspan x="13.984" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="9"> </tspan><tspan x="26" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="15"> </tspan><tspan x="43.75" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">11:00 - 23.00 Uhr</tspan><tspan x="0" y="47.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">UStID:</tspan><tspan x="23.617" y="47.5" fill="#1E181A" font-family="'Tahoma'" font-size="8"> </tspan><tspan x="26" y="47.5" fill="#1E181A" font-family="'Tahoma'" font-size="8"> DE192609253</tspan><tspan x="0" y="57" fill="#1E181A" font-family="'Tahoma'" font-size="8">Registernummer: HRB 67111</tspan><tspan x="0" y="66.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">Amtsgericht Charlottenburg</tspan></text>
|
||||
|
||||
</svg>
|
||||
<svg version="1.0" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="595.358px" height="191.533px" viewBox="0 0 595.358 191.533" enable-background="new 0 0 595.358 191.533" xml:space="preserve">
|
||||
<rect x="30.424" y="97.229" fill="none" width="95.653" height="79.521" />
|
||||
<text transform="matrix(1 0 0 1 30.4243 103.3096)">
|
||||
<tspan x="0" y="0" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">STERN TOURS GmbH</tspan>
|
||||
<tspan x="0" y="9.5" fill="#1E181A" font-family="'Tahoma-Bold'" font-size="8">Emser Str. 3</tspan>
|
||||
<tspan x="0" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8">10719 Berlin </tspan>
|
||||
</text>
|
||||
<rect x="144.078" y="97.229" fill="none" width="126.32" height="79.521" />
|
||||
<text transform="matrix(1 0 0 1 144.0776 103.3096)">
|
||||
<tspan x="0" y="0" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">e-Mail</tspan>
|
||||
<tspan x="24.961" y="0" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="1"> </tspan>
|
||||
<tspan x="28.667" y="0" fill="#1E181A" font-family="'Tahoma'" font-size="8"> stern@stern-tours.de</tspan>
|
||||
<tspan x="0" y="9.5" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">Web</tspan>
|
||||
<tspan x="18.027" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="8"> </tspan>
|
||||
<tspan x="28.667" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8"> www.stern-tours.de</tspan>
|
||||
<tspan x="0" y="28.5" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">Fon</tspan>
|
||||
<tspan x="14.707" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="11"> </tspan>
|
||||
<tspan x="28.667" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8"> 030 | 700 94 100</tspan>
|
||||
<tspan x="0" y="38" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">Fax</tspan>
|
||||
<tspan x="14.273" y="38" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="11"> </tspan>
|
||||
<tspan x="28.667" y="38" fill="#1E181A" font-family="'Tahoma'" font-size="8"> 030 | 700 94 1044</tspan>
|
||||
</text>
|
||||
<rect x="287.48" y="97.229" fill="none" width="135.597" height="79.521" />
|
||||
<text transform="matrix(1 0 0 1 287.4805 103.3086)">
|
||||
<tspan x="0" y="0" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">Bankverbindung</tspan>
|
||||
<tspan x="0" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">STERN TOURS GmbH</tspan>
|
||||
<tspan x="0" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8">Hypo Vereinsbank</tspan>
|
||||
<tspan x="0" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">IBAN: DE83100208900018857111</tspan>
|
||||
<tspan x="0" y="38" fill="#1E181A" font-family="'Tahoma'" font-size="8">BIC-/SWIFT-Code: HYVEDEMM488</tspan>
|
||||
</text>
|
||||
<rect x="447.182" y="97.229" fill="none" width="129.12" height="88.521" />
|
||||
<text transform="matrix(1 0 0 1 447.1821 103.3086)">
|
||||
<tspan x="0" y="0" fill="#7e7e7e" font-family="'Tahoma-Bold'" font-size="8">Telefonische Öffnungszeiten</tspan>
|
||||
<tspan x="0" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">Mo - Do:</tspan>
|
||||
<tspan x="31.012" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="10"> </tspan>
|
||||
<tspan x="43.75" y="9.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">09:00 - 22:00 Uhr</tspan>
|
||||
<tspan x="0" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8">Fr:</tspan>
|
||||
<tspan x="9.883" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="13"> </tspan>
|
||||
<tspan x="26" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="15"> </tspan>
|
||||
<tspan x="43.75" y="19" fill="#1E181A" font-family="'Tahoma'" font-size="8">10:00 - 22:00 Uhr</tspan>
|
||||
<tspan x="0" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">Sa: </tspan>
|
||||
<tspan x="13.984" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="9"> </tspan>
|
||||
<tspan x="26" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8" letter-spacing="15"> </tspan>
|
||||
<tspan x="43.75" y="28.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">11:00 - 22:00 Uhr</tspan>
|
||||
<tspan x="0" y="47.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">UStID:</tspan>
|
||||
<tspan x="23.617" y="47.5" fill="#1E181A" font-family="'Tahoma'" font-size="8"> </tspan>
|
||||
<tspan x="26" y="47.5" fill="#1E181A" font-family="'Tahoma'" font-size="8"> DE192609253</tspan>
|
||||
<tspan x="0" y="57" fill="#1E181A" font-family="'Tahoma'" font-size="8">Registernummer: HRB 67111</tspan>
|
||||
<tspan x="0" y="66.5" fill="#1E181A" font-family="'Tahoma'" font-size="8">Amtsgericht Charlottenburg</tspan>
|
||||
</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 5 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 193 KiB |
|
Before Width: | Height: | Size: 193 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 178 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 108 KiB |
632
trunk/src/AppBundle/Resources/public/js/_custom.js
Normal file
|
|
@ -0,0 +1,632 @@
|
|||
jQuery(document).ready(function($) {
|
||||
"use strict";
|
||||
|
||||
window.addEventListener("load", function(){
|
||||
window.cookieconsent.initialise({
|
||||
"palette": {
|
||||
"popup": {
|
||||
"background": "#648859"
|
||||
},
|
||||
"button": {
|
||||
"background": "#f1d600"
|
||||
}
|
||||
},
|
||||
"position": "bottom",
|
||||
"content": {
|
||||
"message": "Diese Webseite verwendet Cookies, über die personenbezogene Daten erhoben werden können. Nähere Informationen zu den verwendeten Cookies finden Sie hier:",
|
||||
"dismiss": "Einverstanden!",
|
||||
"link": "Datenschutzerklärung",
|
||||
"href": "https://www.sterntours.de/datenschutz"
|
||||
}
|
||||
})});
|
||||
|
||||
/* ==============================================
|
||||
VIDEOS -->
|
||||
=============================================== */
|
||||
|
||||
var videos$ = $('a[id^="video_"]');
|
||||
|
||||
function videoInitHandler()
|
||||
{
|
||||
var el$ = $(this);
|
||||
|
||||
var text = el$.text();
|
||||
var length = text.length - 11;
|
||||
var caption = text.substring(0, length);
|
||||
var expl = this.id.substring(6, this.id.length);
|
||||
|
||||
$('<iframe />')
|
||||
.attr({
|
||||
width: '100%',
|
||||
height: 500,
|
||||
src: '//www.youtube-nocookie.com/embed/'+ expl,
|
||||
frameborder: 0,
|
||||
allowfullscreen: true,
|
||||
'data-st-video': this.id
|
||||
})
|
||||
.hide()
|
||||
.insertAfter(this)
|
||||
;
|
||||
el$
|
||||
.addClass('st-collapsed')
|
||||
//.css('background-image', 'url(/images/st2/icons/arrowup.gif)')
|
||||
.text(caption + ' einblenden')
|
||||
.attr('href', 'javascript:void(0);')
|
||||
;
|
||||
}
|
||||
|
||||
videos$.each(videoInitHandler);
|
||||
|
||||
videos$.click(function() {
|
||||
|
||||
var el$ = $(this);
|
||||
var video$ = $('[data-st-video='+ this.id +']');
|
||||
var text = el$.text();
|
||||
var length = text.length - 11;
|
||||
var caption = text.substring(0, length);
|
||||
|
||||
if (el$.hasClass('st-collapsed'))
|
||||
{
|
||||
video$.slideDown('slow');
|
||||
el$.text(caption + ' ausblenden');
|
||||
el$.removeClass('st-collapsed');
|
||||
}
|
||||
else
|
||||
{
|
||||
video$.slideUp(400);
|
||||
el$.text(caption + ' einblenden');
|
||||
el$.addClass('st-collapsed');
|
||||
}
|
||||
});
|
||||
|
||||
/* ==============================================
|
||||
KEYWORDS -->
|
||||
=============================================== */
|
||||
|
||||
var modal$ = $('#st-default-modal');
|
||||
|
||||
$('a.show-layer').click(function() {
|
||||
|
||||
$.get($(this).attr('href')).then(function(r) {
|
||||
|
||||
modal$.find('.modal-body').html(r);
|
||||
modal$.find('a[id^="video_"]').each(videoInitHandler);
|
||||
modal$.modal('show');
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
/* ==============================================
|
||||
SIDEBAR BOX SLIDER -->
|
||||
=============================================== */
|
||||
|
||||
function createSlider(ctx$, interval)
|
||||
{
|
||||
if (!interval)
|
||||
{
|
||||
interval = 0;
|
||||
}
|
||||
|
||||
function setSlideInterval()
|
||||
{
|
||||
if (interval <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if(slideInterval)
|
||||
{
|
||||
clearInterval(slideInterval);
|
||||
}
|
||||
slideInterval = setInterval(function() {
|
||||
|
||||
jumpToNextSlide();
|
||||
}, interval);
|
||||
}
|
||||
|
||||
function jumpToNextSlide()
|
||||
{
|
||||
setActiveSlide(slideIndex === slideCount - 1 ? 0 : slideIndex + 1);
|
||||
setSlideInterval();
|
||||
}
|
||||
|
||||
function setActiveSlide(newIndex)
|
||||
{
|
||||
slide$s[slideIndex].removeClass('active');
|
||||
slideIndex = newIndex;
|
||||
slide$s[slideIndex].addClass('active');
|
||||
}
|
||||
|
||||
var slides$ = $('.slide', ctx$);
|
||||
var slideCount = slides$.length;
|
||||
if(slideCount > 1)
|
||||
{
|
||||
var slideInterval;
|
||||
|
||||
var slide$s = [];
|
||||
for(var i = 0; i < slideCount; ++i)
|
||||
{
|
||||
slide$s.push($(slides$.get(i)));
|
||||
}
|
||||
|
||||
var slideIndex = 0;
|
||||
setSlideInterval();
|
||||
|
||||
$('.item-button-next', ctx$).click(function() {
|
||||
jumpToNextSlide();
|
||||
});
|
||||
$('.item-button-prev', ctx$).click(function() {
|
||||
setActiveSlide(slideIndex === 0 ? slideCount - 1 : slideIndex - 1);
|
||||
setSlideInterval();
|
||||
});
|
||||
}
|
||||
}
|
||||
$('.box-slider').each(function() {
|
||||
createSlider($(this));
|
||||
});
|
||||
|
||||
/* ==============================================
|
||||
HEADER STICKY -->
|
||||
=============================================== */
|
||||
|
||||
// var navbarCollapse = false;
|
||||
|
||||
/*$(window).scroll(function() {
|
||||
if(!navbarCollapse){
|
||||
if ($(this).scrollTop() > 1){
|
||||
$('header').addClass("sticky");
|
||||
}
|
||||
else{
|
||||
$('header').removeClass("sticky");
|
||||
}
|
||||
}
|
||||
});*/
|
||||
|
||||
|
||||
/*
|
||||
$('#navbar-collapse').on('shown.bs.collapse', function () {
|
||||
navbarCollapse = true;
|
||||
$('header').removeClass("sticky");
|
||||
$(window).scrollTop(0);
|
||||
|
||||
});
|
||||
|
||||
$('#navbar-collapse').on('hide.bs.collapse', function () {
|
||||
navbarCollapse = false;
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
/* ==============================================
|
||||
nav-tabs -->
|
||||
=============================================== */
|
||||
var hidWidth;
|
||||
var scrollBarWidths = 40;
|
||||
var windowW = $(window).width();
|
||||
|
||||
|
||||
var widthOfList = function(){
|
||||
var itemsWidth = 0;
|
||||
$('.list-nav-tabs li').each(function(){
|
||||
var itemWidth = $(this).outerWidth();
|
||||
itemsWidth+=itemWidth;
|
||||
});
|
||||
return itemsWidth;
|
||||
};
|
||||
|
||||
var widthOfHidden = function(){
|
||||
return (($('.wrapper-nav-tabs').outerWidth())-widthOfList()-getLeftPosi())-scrollBarWidths;
|
||||
};
|
||||
|
||||
var getLeftPosi = function(){
|
||||
if($('.list-nav-tabs').length){
|
||||
return $('.list-nav-tabs').position().left;
|
||||
}else{
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
var reAdjust = function(){
|
||||
if (($('.wrapper-nav-tabs').outerWidth()) < widthOfList()) {
|
||||
$('.scroller-right-nav-tabs').show();
|
||||
}
|
||||
else {
|
||||
$('.scroller-right-nav-tabs').hide();
|
||||
}
|
||||
|
||||
if (getLeftPosi()<0) {
|
||||
$('.scroller-left-nav-tabs').show();
|
||||
}
|
||||
else {
|
||||
$('.item').animate({left:"-="+getLeftPosi()+"px"},'slow');
|
||||
$('.scroller-left-nav-tabs').hide();
|
||||
}
|
||||
}
|
||||
|
||||
if(windowW <= 992){
|
||||
reAdjust();
|
||||
}
|
||||
$(window).on('resize',function(e){
|
||||
var windowW = $(window).width();
|
||||
if(windowW <= 992){
|
||||
reAdjust();
|
||||
}else{
|
||||
$('.scroller-right-nav-tabs').hide();
|
||||
$('.scroller-left-nav-tabs').hide();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('.scroller-right-nav-tabs').click(function() {
|
||||
|
||||
if(((getLeftPosi()*-1) + $('.wrapper-nav-tabs').outerWidth()) < (widthOfHidden()*-1)){
|
||||
$('.scroller-left-nav-tabs').fadeIn('slow');
|
||||
$('.list-nav-tabs').animate({left:"+="+($('.wrapper-nav-tabs').outerWidth()*-1)+"px"},'slow',function(){
|
||||
|
||||
});
|
||||
}else{
|
||||
$('.scroller-left-nav-tabs').fadeIn('slow');
|
||||
$('.scroller-right-nav-tabs').fadeOut('slow');
|
||||
$('.list-nav-tabs').animate({left:"+="+widthOfHidden()+"px"},'slow',function(){
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('.scroller-left-nav-tabs').click(function() {
|
||||
|
||||
|
||||
|
||||
if(((getLeftPosi()) + $('.wrapper-nav-tabs').outerWidth()) < 0){
|
||||
$('.scroller-left-nav-tabs').fadeIn('slow');
|
||||
$('.list-nav-tabs').animate({left:"-="+($('.wrapper-nav-tabs').outerWidth()*-1)+"px"},'slow',function(){
|
||||
|
||||
});
|
||||
}else{
|
||||
$('.scroller-right-nav-tabs').fadeIn('slow');
|
||||
$('.scroller-left-nav-tabs').fadeOut('slow');
|
||||
$('.list-nav-tabs').animate({left:"-="+getLeftPosi()+"px"},'slow',function(){
|
||||
$('.list-nav-tabs').css({'left': 0});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
/* ==============================================
|
||||
MENU HOVER -->
|
||||
=============================================== */
|
||||
if($(window).width() > 768){
|
||||
|
||||
$(".header .navbar-nav .dropdown:not(.openClick)").hover(
|
||||
function() {
|
||||
$(".dropdown.openClick").removeClass('open');
|
||||
$('.dropdown-menu', this).stop( true, true ).slideDown("fast");
|
||||
$('.bootstrap-select.open').removeClass('open');
|
||||
$(this).toggleClass('open');
|
||||
},
|
||||
function() {
|
||||
$('.dropdown-menu', this).stop( true, true ).slideUp("fast");
|
||||
$(this).toggleClass('open');
|
||||
}
|
||||
);
|
||||
|
||||
$(".header .dropdown:not(.openClick) .nav-first-a").click(
|
||||
function ()
|
||||
{
|
||||
if($(window).width() > 768){
|
||||
window.location.href = $(this).attr('href');
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$('.selectpicker').selectpicker({
|
||||
dropupAuto: false
|
||||
});
|
||||
|
||||
|
||||
|
||||
/* ==============================================
|
||||
collapse_open -->
|
||||
=============================================== */
|
||||
|
||||
function collapse_open(){
|
||||
var windowW = $(window).width();
|
||||
if(windowW <= 768){
|
||||
$('.collapse-widget').addClass('collapsed');
|
||||
$('.collapse-widget').parents('.widget').find('.collapse').removeClass('in');
|
||||
}else{
|
||||
$('.collapse-widget').removeClass('collapsed');
|
||||
$('.collapse-widget').parents('.widget').find('.collapse').addClass('in');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var $frist = false;
|
||||
$(window).resize(function() {
|
||||
if(!$first){
|
||||
var $first = true;
|
||||
collapse_open();
|
||||
}
|
||||
});
|
||||
collapse_open();
|
||||
|
||||
|
||||
/* ==============================================
|
||||
nav-tabs -->
|
||||
=============================================== */
|
||||
$('.nav-tabs li a').click(function (e) {
|
||||
//get selected href
|
||||
var href = $(this).attr('href');
|
||||
|
||||
//set all nav tabs to inactive
|
||||
$('.nav-tabs li').removeClass('active');
|
||||
|
||||
//get all nav tabs matching the href and set to active
|
||||
$('.nav-tabs li a[href="'+href+'"]').closest('li').addClass('active');
|
||||
|
||||
//active tab
|
||||
$('.tab-pane').removeClass('active');
|
||||
$('.tab-pane'+href).addClass('active');
|
||||
|
||||
if($(this).parents('.nav-tabs-bottom').length){
|
||||
$('html, body').animate({
|
||||
scrollTop: ($(".content-copy").offset().top + 200)
|
||||
}, 500);
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
/* ==============================================
|
||||
tooltip -->
|
||||
=============================================== */
|
||||
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
|
||||
/* ==============================================
|
||||
carousel -->
|
||||
=============================================== */
|
||||
|
||||
$('.carousel').carousel({
|
||||
interval: 5000 //changes the speed
|
||||
})
|
||||
|
||||
/* ==============================================
|
||||
ACCORDION -->
|
||||
=============================================== */
|
||||
|
||||
function toggleChevron(e) {
|
||||
console.log(e.target);
|
||||
var $i = $(e.target)
|
||||
.parent('.panel-group')
|
||||
.find("i.indicator");
|
||||
|
||||
$i.toggleClass('icon-minus icon-plus');
|
||||
|
||||
if($i.hasClass('icon-minus')){
|
||||
$i.parent('h3').find('span').html('Reiseleistungen ausblenden');
|
||||
}
|
||||
if($i.hasClass('icon-plus')){
|
||||
$i.parent('h3').find('span').html('Reiseleistungen einblenden');
|
||||
}
|
||||
}
|
||||
$('#accordion').on('hidden.bs.collapse', toggleChevron);
|
||||
$('#accordion').on('shown.bs.collapse', toggleChevron);
|
||||
|
||||
function toggleChevron2(e) {
|
||||
console.log(e.target);
|
||||
var $i = $(e.target)
|
||||
.parent('.panel-group')
|
||||
.find("i.indicator");
|
||||
|
||||
$i.toggleClass('icon-minus icon-plus');
|
||||
|
||||
if($i.hasClass('icon-minus')){
|
||||
$i.parent('h3').find('span').html('Reiseablauf mit Reisetagen ausblenden');
|
||||
}
|
||||
if($i.hasClass('icon-plus')){
|
||||
$i.parent('h3').find('span').html('Reiseablauf mit Reisetagen einblenden');
|
||||
}
|
||||
}
|
||||
$('#accordion_pd').on('hidden.bs.collapse', toggleChevron2);
|
||||
$('#accordion_pd').on('shown.bs.collapse', toggleChevron2);
|
||||
|
||||
function toggleChevron3(e) {
|
||||
console.log(e.target);
|
||||
var $i = $(e.target)
|
||||
.parent('.panel-group')
|
||||
.find("i.indicator");
|
||||
|
||||
$i.toggleClass('icon-minus icon-plus');
|
||||
|
||||
if($i.hasClass('icon-minus')){
|
||||
$i.parent('h3').find('span').html('Flugdaten ausblenden');
|
||||
}
|
||||
if($i.hasClass('icon-plus')){
|
||||
$i.parent('h3').find('span').html('Flugdaten einblenden');
|
||||
}
|
||||
}
|
||||
$('#accordion_fd').on('hidden.bs.collapse', toggleChevron3);
|
||||
$('#accordion_fd').on('shown.bs.collapse', toggleChevron3);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* ==============================================
|
||||
LIGHTBOX -->
|
||||
=============================================== */
|
||||
|
||||
/*
|
||||
jQuery('a[data-gal]').each(function() {
|
||||
jQuery(this).attr('rel', jQuery(this).data('gal'));
|
||||
});
|
||||
jQuery("a[data-gal^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',slideshow:false,overlay_gallery: false,theme:'light_square',social_tools:false,deeplinking:false});
|
||||
*/
|
||||
/* ==============================================
|
||||
CAROUSEL -->
|
||||
=============================================== */
|
||||
|
||||
$('.owl-fullwidth').owlCarousel({
|
||||
loop:true,
|
||||
margin:0,
|
||||
nav:true,
|
||||
dots:false,
|
||||
navText: [
|
||||
"<i class='fa fa-angle-right'></i>",
|
||||
"<i class='fa fa-angle-left'></i>"],
|
||||
responsive:{
|
||||
0:{
|
||||
items:1
|
||||
},
|
||||
600:{
|
||||
items:2
|
||||
},
|
||||
1000:{
|
||||
items:3
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
/* ==============================================
|
||||
BOX LINK -->
|
||||
=============================================== */
|
||||
|
||||
$('.get-box-link').click(function() {
|
||||
var el$ = $(this);
|
||||
var url = el$.find('.is-box-link').attr('href');
|
||||
if (el$.attr('target') === '_blank')
|
||||
{
|
||||
window.open(url);
|
||||
}
|
||||
else
|
||||
{
|
||||
location.href = url;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
/* function resize_box (){
|
||||
$('.owl-fullwidth:not(.noresize)').each(function(){
|
||||
var boxes = $(this).find('.hl5');
|
||||
var maxHeight = Math.max.apply(
|
||||
Math, boxes.map(function() {
|
||||
return $(this).height();
|
||||
}).get());
|
||||
boxes.height(maxHeight);
|
||||
});
|
||||
|
||||
$('a.item-button').each(function(){
|
||||
$(this).removeClass('single_line');
|
||||
$(this).removeClass('dobble_line');
|
||||
if($(this).height() <= 36){
|
||||
$(this).addClass('single_line');
|
||||
}else{
|
||||
$(this).addClass('dobble_line');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
resize_box();
|
||||
|
||||
$(window).resize(function() {
|
||||
resize_box();
|
||||
}); */
|
||||
|
||||
|
||||
/* ==============================================
|
||||
resize_travel_img with height < 190 -->
|
||||
=============================================== */
|
||||
|
||||
|
||||
/*function resize_travel_img (){
|
||||
$('.travel-wrapper').find('img').each(function(){
|
||||
if($(this).height() < 190){
|
||||
$(this).addClass('lower-height');
|
||||
}
|
||||
});
|
||||
}
|
||||
resize_travel_img();
|
||||
$(window).resize(function() {
|
||||
resize_travel_img();
|
||||
});*/
|
||||
|
||||
|
||||
/* ==============================================
|
||||
DATEPICKER -->
|
||||
=============================================== */
|
||||
|
||||
$(".datepicker").each(function(){
|
||||
var windowW = $(window).width();
|
||||
if(windowW <= 768){
|
||||
$(this).attr('readonly', 'true');
|
||||
}
|
||||
});
|
||||
$( ".datepicker" ).datepicker({
|
||||
dateFormat: 'dd.mm.yy', prevText: '<zurück', prevStatus: '',
|
||||
prevJumpText: '<<', prevJumpStatus: '',
|
||||
nextText: 'Vor>', nextStatus: '',
|
||||
nextJumpText: '>>', nextJumpStatus: '',
|
||||
currentText: 'heute', currentStatus: '',
|
||||
todayText: 'heute', todayStatus: '',
|
||||
clearText: '-', clearStatus: '',
|
||||
closeText: 'schließen', closeStatus: '',
|
||||
monthNames: ['Januar','Februar','März','April','Mai','Juni',
|
||||
'Juli','August','September','Oktober','November','Dezember'],
|
||||
monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dez'],
|
||||
dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
|
||||
dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
firstDay: 1,
|
||||
beforeShowDay: function(date) {
|
||||
var allowedDateStrListStr = $(this).attr('data-allowed-dates');
|
||||
if (allowedDateStrListStr)
|
||||
{
|
||||
var allowedDatesStrList = allowedDateStrListStr.split(';');
|
||||
for (var i = 0; i < allowedDatesStrList.length; ++i)
|
||||
{
|
||||
var allowedDate = new Date(allowedDatesStrList[i]);
|
||||
if (allowedDate.getDate() === date.getDate() && allowedDate.getMonth() === date.getMonth() &&
|
||||
allowedDate.getYear() === date.getYear())
|
||||
{
|
||||
return [true, '', ''];
|
||||
}
|
||||
}
|
||||
return [false, '', '']
|
||||
}
|
||||
return [true, '', ''];
|
||||
}
|
||||
});
|
||||
|
||||
function initAutoEndDate(startTxt$, endTxt$)
|
||||
{
|
||||
startTxt$.add(endTxt$).change(function() {
|
||||
|
||||
var startDate = startTxt$.datepicker('getDate');
|
||||
if (startDate > endTxt$.datepicker('getDate'))
|
||||
{
|
||||
endTxt$.datepicker('setDate', new Date(startDate.getFullYear(), startDate.getMonth(),
|
||||
startDate.getDate() + 14));
|
||||
}
|
||||
});
|
||||
}
|
||||
var ttSearchForm$ = $('.st-tt-search-form');
|
||||
if (ttSearchForm$.length)
|
||||
{
|
||||
initAutoEndDate(ttSearchForm$.find('[name=termin]'), ttSearchForm$.find('[name=ruecktermin]'));
|
||||
}
|
||||
var searchForm$ = $('.st-search-form');
|
||||
if (searchForm$.length)
|
||||
{
|
||||
initAutoEndDate(searchForm$.find('[name=b]'), searchForm$.find('[name=e]'));
|
||||
}
|
||||
|
||||
});
|
||||
|
|
@ -1,318 +1,318 @@
|
|||
$(document).ready(function() {
|
||||
|
||||
var frm$ = $('.st-booking-form');
|
||||
var summary$ = $('.st-booking-summary');
|
||||
|
||||
var roomCountSR$ = $('#booking_request_singleRoomCount');
|
||||
var roomCountDR$ = $('#booking_request_doubleRoomCount');
|
||||
var roomCountTR$ = $('#booking_request_tripleRoomCount');
|
||||
|
||||
var roomChildCountSR$ = $('#booking_request_singleRoomChildCount');
|
||||
var roomChildCountDR$ = $('#booking_request_doubleRoomChildCount');
|
||||
var roomChildCountTR$ = $('#booking_request_tripleRoomChildCount');
|
||||
|
||||
|
||||
//var travelersIndices = $('.st-traveller-index');
|
||||
|
||||
var travelers$ = $('.st-traveler');
|
||||
var travelerFields$ = travelers$.find('input,select,checkbox');
|
||||
|
||||
frm$.find('input, select').change(function() {
|
||||
var tmp = location.href.split('?');
|
||||
var tmp2 = tmp[0].split('/');
|
||||
tmp2.pop();
|
||||
var url = tmp2.join('/') + '/berechne-gesamtpreis';
|
||||
if (tmp[1])
|
||||
{
|
||||
url += '?'+ tmp[1];
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: 'post',
|
||||
data: frm$.serialize()
|
||||
|
||||
}).then(function(r) {
|
||||
summary$.html(r);
|
||||
/*
|
||||
$('#st-booking-price-set-table .st-total-price-set').html($(r).find('.st-total-price').text());
|
||||
$('#st-booking-price-set-table .st-deposit-price-set').html($(r).find('.st-deposit-price').text());
|
||||
$('#st-booking-price-set-table .st-final-price-set').html($(r).find('.st-final-price').text());
|
||||
*/
|
||||
|
||||
}, function() {
|
||||
summary$.html('Aufgrund eines Fehlers konnte kein Angebot ermittelt werden.');
|
||||
})
|
||||
});
|
||||
|
||||
$('#booking_request_departure').change(function () {
|
||||
//show nothing
|
||||
$('.flight_times_ele').hide();
|
||||
$('#no_flight_time').hide();
|
||||
$('#yes_flight_time').hide();
|
||||
|
||||
console.log($(this).val());
|
||||
if(!$(this).val() || $(this).find("option:selected").text().indexOf("Eigenanreise") == 0){
|
||||
return;
|
||||
}
|
||||
console.log($('#flight_time_'+$(this).val()).length);
|
||||
if($('#flight_time_'+$(this).val()).length){
|
||||
$('#flight_time_'+$(this).val()).show();
|
||||
$('#yes_flight_time').show();
|
||||
}else{
|
||||
$('#no_flight_time').show();
|
||||
}
|
||||
});
|
||||
var toggle_first= [];
|
||||
|
||||
function updateNationality(ele){
|
||||
var obj = ele.parents('.nationality_select').data('toggle');
|
||||
if(ele.val()){
|
||||
var values = $("input[name='travel_program_countries_id[]']").map(function(){return $(this).val();}).get();
|
||||
|
||||
var tmp = location.href.split('?');
|
||||
var tmp2 = tmp[0].split('/');
|
||||
tmp2.pop();
|
||||
var url = tmp2.join('/') + '/show_nationality_country_text';
|
||||
if (tmp[1])
|
||||
{
|
||||
url += '?'+ tmp[1];
|
||||
}
|
||||
|
||||
var data = {nationality_id : ele.val(), country_ids: values};
|
||||
|
||||
$.ajax({
|
||||
url:url,
|
||||
type: "POST",
|
||||
data: data,
|
||||
}).then(function(r) {
|
||||
$(obj).find('.set_nationality_country_text').html(r);
|
||||
$(obj).show('slow');
|
||||
if(!toggle_first[ele.val()]){
|
||||
$(obj).find('.accordion-toggle').click();
|
||||
toggle_first[ele.val()] = true;
|
||||
}
|
||||
|
||||
|
||||
}, function() {
|
||||
summary$.html('Aufgrund eines Fehlers konnte kein Angebot ermittelt werden.');
|
||||
});
|
||||
}else{
|
||||
$(obj).hide();
|
||||
}
|
||||
}
|
||||
|
||||
$('.nationality_select').find('select').change(function(){
|
||||
updateNationality($(this));
|
||||
});
|
||||
|
||||
|
||||
function updateAllNationality(){
|
||||
$('.nationality_select').find('select').each(function(){
|
||||
updateNationality($(this));
|
||||
});
|
||||
}
|
||||
updateAllNationality();
|
||||
|
||||
|
||||
function toggleUpdateChevron(e) {
|
||||
var $i = $(e.target)
|
||||
.parent('.panel-group')
|
||||
.find("i.indicator");
|
||||
|
||||
$i.toggleClass('icon-minus icon-plus');
|
||||
}
|
||||
|
||||
$('.acc_nationality_panel').on('hidden.bs.collapse', toggleUpdateChevron);
|
||||
$('.acc_nationality_panel').on('shown.bs.collapse', toggleUpdateChevron);
|
||||
|
||||
|
||||
function toggleChevronIn(e) {
|
||||
console.log(e);
|
||||
var $i = $(e.target)
|
||||
.parent('.panel-group')
|
||||
.find("i.indicator");
|
||||
|
||||
$i.toggleClass('icon-minus icon-plus');
|
||||
|
||||
if($i.hasClass('icon-minus')){
|
||||
$i.parent('h5').find('span').html('Leistungen ausblenden');
|
||||
}
|
||||
if($i.hasClass('icon-plus')){
|
||||
$i.parent('h5').find('span').html('Leistungen einblenden');
|
||||
}
|
||||
}
|
||||
|
||||
$('.booking_insurance_toogle').on('hidden.bs.collapse', toggleChevronIn);
|
||||
$('.booking_insurance_toogle').on('shown.bs.collapse', toggleChevronIn);
|
||||
|
||||
|
||||
|
||||
function updateTravelers()
|
||||
{
|
||||
var travelersIndex = 1;
|
||||
|
||||
var singleTravelerCount = parseInt(roomCountSR$.val());
|
||||
var doubleTravelerCount = parseInt(roomCountDR$.val()) * 2;
|
||||
var tripleTravelerCount = parseInt(roomCountTR$.val()) * 3;
|
||||
|
||||
var singleTravelerChildCount = parseInt(roomChildCountSR$.val()) * 2;
|
||||
var doubleTravelerChildCount = parseInt(roomChildCountDR$.val()) * 3;
|
||||
var tripleTravelerChildCount = parseInt(roomChildCountTR$.val()) * 4;
|
||||
|
||||
var allTravelersCount = singleTravelerCount + doubleTravelerCount + tripleTravelerCount + singleTravelerChildCount + doubleTravelerChildCount + tripleTravelerChildCount;
|
||||
|
||||
travelers$.hide();
|
||||
travelerFields$.prop('required', false);
|
||||
|
||||
var counter = 1;
|
||||
var $offset = 1;
|
||||
|
||||
//single
|
||||
if(singleTravelerCount > 0)
|
||||
{
|
||||
for(var i = $offset; i <= singleTravelerCount; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-' + i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Einzelzimmer 1. Erwachsender");
|
||||
counter ++;
|
||||
}
|
||||
}
|
||||
//single + child
|
||||
$offset = $offset + parseInt(roomCountSR$.find('option').length) -1;
|
||||
//4 next 5
|
||||
|
||||
if(singleTravelerChildCount > 0)
|
||||
{
|
||||
for(var i = $offset; i < singleTravelerChildCount + $offset; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-' + i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Einzelzimmer | 1. Erwachsender");
|
||||
counter ++;
|
||||
|
||||
//child
|
||||
i++;
|
||||
var travelerSelector = '.st-traveler-' + i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Einzelzimmer | Kind");
|
||||
counter ++;
|
||||
}
|
||||
}
|
||||
//double
|
||||
$offset = $offset + (parseInt(roomChildCountSR$.find('option').length) -1) * 2;
|
||||
//4 + 4*2 next 13
|
||||
if(doubleTravelerCount > 0)
|
||||
{
|
||||
$m = 1;
|
||||
|
||||
for(var i = $offset; i < doubleTravelerCount + $offset; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
// var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Doppelzimmer | " + $m + ". Erwachsender");
|
||||
counter ++;
|
||||
$m++;
|
||||
if($m == 3){
|
||||
$m = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
//double + child
|
||||
$offset = $offset + (parseInt(roomCountDR$.find('option').length) -1) * 2;
|
||||
//12 + 3*2 next 19
|
||||
if(doubleTravelerChildCount > 0)
|
||||
{
|
||||
$m = 1;
|
||||
for(var i = $offset; i < doubleTravelerChildCount + $offset; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Doppelzimmer | " + $m + ". Erwachsender");
|
||||
counter ++;
|
||||
$m++;
|
||||
if($m == 3){
|
||||
$m = 1;
|
||||
//child
|
||||
i++;
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Doppelzimmer | Kind");
|
||||
counter ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//triple
|
||||
$offset = $offset + (parseInt(roomChildCountDR$.find('option').length) -1) * 3;
|
||||
//18 + 3*3 next 28
|
||||
if(tripleTravelerCount > 0)
|
||||
{
|
||||
$m = 1;
|
||||
for(var i = $offset; i < tripleTravelerCount + $offset; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Dreibettzimmer | " + $m + ". Erwachsender");
|
||||
counter ++;
|
||||
$m++;
|
||||
if($m == 4){
|
||||
$m = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//triple + child
|
||||
$offset = $offset + (parseInt(roomCountTR$.find('option').length) -1) * 3;
|
||||
//27 + 2*3 next 34
|
||||
if(tripleTravelerChildCount > 0)
|
||||
{
|
||||
$m = 1;
|
||||
for(var i = $offset; i < tripleTravelerChildCount + $offset; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Dreibettzimmer | " + $m + ". Erwachsender");
|
||||
counter ++;
|
||||
$m++;
|
||||
if($m == 4){
|
||||
$m = 1;
|
||||
//child
|
||||
i++;
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Dreibettzimmer | Kind");
|
||||
counter ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
roomCountSR$.change(updateTravelers);
|
||||
roomCountDR$.change(updateTravelers);
|
||||
roomCountTR$.change(updateTravelers);
|
||||
roomChildCountSR$.change(updateTravelers);
|
||||
roomChildCountDR$.change(updateTravelers);
|
||||
roomChildCountTR$.change(updateTravelers);
|
||||
updateTravelers();
|
||||
$(document).ready(function() {
|
||||
|
||||
var frm$ = $('.st-booking-form');
|
||||
var summary$ = $('.st-booking-summary');
|
||||
|
||||
var roomCountSR$ = $('#booking_request_singleRoomCount');
|
||||
var roomCountDR$ = $('#booking_request_doubleRoomCount');
|
||||
var roomCountTR$ = $('#booking_request_tripleRoomCount');
|
||||
|
||||
var roomChildCountSR$ = $('#booking_request_singleRoomChildCount');
|
||||
var roomChildCountDR$ = $('#booking_request_doubleRoomChildCount');
|
||||
var roomChildCountTR$ = $('#booking_request_tripleRoomChildCount');
|
||||
|
||||
|
||||
//var travelersIndices = $('.st-traveller-index');
|
||||
|
||||
var travelers$ = $('.st-traveler');
|
||||
var travelerFields$ = travelers$.find('input,select,checkbox');
|
||||
|
||||
frm$.find('input, select').change(function() {
|
||||
var tmp = location.href.split('?');
|
||||
var tmp2 = tmp[0].split('/');
|
||||
tmp2.pop();
|
||||
var url = tmp2.join('/') + '/berechne-gesamtpreis';
|
||||
if (tmp[1])
|
||||
{
|
||||
url += '?'+ tmp[1];
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: 'post',
|
||||
data: frm$.serialize()
|
||||
|
||||
}).then(function(r) {
|
||||
summary$.html(r);
|
||||
/*
|
||||
$('#st-booking-price-set-table .st-total-price-set').html($(r).find('.st-total-price').text());
|
||||
$('#st-booking-price-set-table .st-deposit-price-set').html($(r).find('.st-deposit-price').text());
|
||||
$('#st-booking-price-set-table .st-final-price-set').html($(r).find('.st-final-price').text());
|
||||
*/
|
||||
|
||||
}, function() {
|
||||
summary$.html('Aufgrund eines Fehlers konnte kein Angebot ermittelt werden.');
|
||||
})
|
||||
});
|
||||
|
||||
$('#booking_request_departure').change(function () {
|
||||
//show nothing
|
||||
$('.flight_times_ele').hide();
|
||||
$('#no_flight_time').hide();
|
||||
$('#yes_flight_time').hide();
|
||||
|
||||
console.log($(this).val());
|
||||
if(!$(this).val() || $(this).find("option:selected").text().indexOf("Eigenanreise") == 0){
|
||||
return;
|
||||
}
|
||||
console.log($('#flight_time_'+$(this).val()).length);
|
||||
if($('#flight_time_'+$(this).val()).length){
|
||||
$('#flight_time_'+$(this).val()).show();
|
||||
$('#yes_flight_time').show();
|
||||
}else{
|
||||
$('#no_flight_time').show();
|
||||
}
|
||||
});
|
||||
var toggle_first= [];
|
||||
|
||||
function updateNationality(ele){
|
||||
var obj = ele.parents('.nationality_select').data('toggle');
|
||||
if(ele.val()){
|
||||
var values = $("input[name='travel_program_countries_id[]']").map(function(){return $(this).val();}).get();
|
||||
|
||||
var tmp = location.href.split('?');
|
||||
var tmp2 = tmp[0].split('/');
|
||||
tmp2.pop();
|
||||
var url = tmp2.join('/') + '/show_nationality_country_text';
|
||||
if (tmp[1])
|
||||
{
|
||||
url += '?'+ tmp[1];
|
||||
}
|
||||
|
||||
var data = {nationality_id : ele.val(), country_ids: values};
|
||||
|
||||
$.ajax({
|
||||
url:url,
|
||||
type: "POST",
|
||||
data: data,
|
||||
}).then(function(r) {
|
||||
$(obj).find('.set_nationality_country_text').html(r);
|
||||
$(obj).show('slow');
|
||||
if(!toggle_first[ele.val()]){
|
||||
$(obj).find('.accordion-toggle').click();
|
||||
toggle_first[ele.val()] = true;
|
||||
}
|
||||
|
||||
|
||||
}, function() {
|
||||
summary$.html('Aufgrund eines Fehlers konnte kein Angebot ermittelt werden.');
|
||||
});
|
||||
}else{
|
||||
$(obj).hide();
|
||||
}
|
||||
}
|
||||
|
||||
$('.nationality_select').find('select').change(function(){
|
||||
updateNationality($(this));
|
||||
});
|
||||
|
||||
|
||||
function updateAllNationality(){
|
||||
$('.nationality_select').find('select').each(function(){
|
||||
updateNationality($(this));
|
||||
});
|
||||
}
|
||||
updateAllNationality();
|
||||
|
||||
|
||||
function toggleUpdateChevron(e) {
|
||||
var $i = $(e.target)
|
||||
.parent('.panel-group')
|
||||
.find("i.indicator");
|
||||
|
||||
$i.toggleClass('icon-minus icon-plus');
|
||||
}
|
||||
|
||||
$('.acc_nationality_panel').on('hidden.bs.collapse', toggleUpdateChevron);
|
||||
$('.acc_nationality_panel').on('shown.bs.collapse', toggleUpdateChevron);
|
||||
|
||||
|
||||
function toggleChevronIn(e) {
|
||||
console.log(e);
|
||||
var $i = $(e.target)
|
||||
.parent('.panel-group')
|
||||
.find("i.indicator");
|
||||
|
||||
$i.toggleClass('icon-minus icon-plus');
|
||||
|
||||
if($i.hasClass('icon-minus')){
|
||||
$i.parent('h5').find('span').html('Leistungen ausblenden');
|
||||
}
|
||||
if($i.hasClass('icon-plus')){
|
||||
$i.parent('h5').find('span').html('Leistungen einblenden');
|
||||
}
|
||||
}
|
||||
|
||||
$('.booking_insurance_toogle').on('hidden.bs.collapse', toggleChevronIn);
|
||||
$('.booking_insurance_toogle').on('shown.bs.collapse', toggleChevronIn);
|
||||
|
||||
|
||||
|
||||
function updateTravelers()
|
||||
{
|
||||
var travelersIndex = 1;
|
||||
|
||||
var singleTravelerCount = parseInt(roomCountSR$.val());
|
||||
var doubleTravelerCount = parseInt(roomCountDR$.val()) * 2;
|
||||
var tripleTravelerCount = parseInt(roomCountTR$.val()) * 3;
|
||||
|
||||
var singleTravelerChildCount = parseInt(roomChildCountSR$.val()) * 2;
|
||||
var doubleTravelerChildCount = parseInt(roomChildCountDR$.val()) * 3;
|
||||
var tripleTravelerChildCount = parseInt(roomChildCountTR$.val()) * 4;
|
||||
|
||||
var allTravelersCount = singleTravelerCount + doubleTravelerCount + tripleTravelerCount + singleTravelerChildCount + doubleTravelerChildCount + tripleTravelerChildCount;
|
||||
|
||||
travelers$.hide();
|
||||
travelerFields$.prop('required', false);
|
||||
|
||||
var counter = 1;
|
||||
var $offset = 1;
|
||||
|
||||
//single
|
||||
if(singleTravelerCount > 0)
|
||||
{
|
||||
for(var i = $offset; i <= singleTravelerCount; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-' + i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Einzelzimmer 1. Erwachsender");
|
||||
counter ++;
|
||||
}
|
||||
}
|
||||
//single + child
|
||||
$offset = $offset + parseInt(roomCountSR$.find('option').length) -1;
|
||||
//4 next 5
|
||||
|
||||
if(singleTravelerChildCount > 0)
|
||||
{
|
||||
for(var i = $offset; i < singleTravelerChildCount + $offset; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-' + i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Einzelzimmer | 1. Erwachsender");
|
||||
counter ++;
|
||||
|
||||
//child
|
||||
i++;
|
||||
var travelerSelector = '.st-traveler-' + i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Einzelzimmer | Kind");
|
||||
counter ++;
|
||||
}
|
||||
}
|
||||
//double
|
||||
$offset = $offset + (parseInt(roomChildCountSR$.find('option').length) -1) * 2;
|
||||
//4 + 4*2 next 13
|
||||
if(doubleTravelerCount > 0)
|
||||
{
|
||||
$m = 1;
|
||||
|
||||
for(var i = $offset; i < doubleTravelerCount + $offset; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
// var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Doppelzimmer | " + $m + ". Erwachsender");
|
||||
counter ++;
|
||||
$m++;
|
||||
if($m == 3){
|
||||
$m = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
//double + child
|
||||
$offset = $offset + (parseInt(roomCountDR$.find('option').length) -1) * 2;
|
||||
//12 + 3*2 next 19
|
||||
if(doubleTravelerChildCount > 0)
|
||||
{
|
||||
$m = 1;
|
||||
for(var i = $offset; i < doubleTravelerChildCount + $offset; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Doppelzimmer | " + $m + ". Erwachsender");
|
||||
counter ++;
|
||||
$m++;
|
||||
if($m == 3){
|
||||
$m = 1;
|
||||
//child
|
||||
i++;
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Doppelzimmer | Kind");
|
||||
counter ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//triple
|
||||
$offset = $offset + (parseInt(roomChildCountDR$.find('option').length) -1) * 3;
|
||||
//18 + 3*3 next 28
|
||||
if(tripleTravelerCount > 0)
|
||||
{
|
||||
$m = 1;
|
||||
for(var i = $offset; i < tripleTravelerCount + $offset; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Dreibettzimmer | " + $m + ". Erwachsender");
|
||||
counter ++;
|
||||
$m++;
|
||||
if($m == 4){
|
||||
$m = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//triple + child
|
||||
$offset = $offset + (parseInt(roomCountTR$.find('option').length) -1) * 3;
|
||||
//27 + 2*3 next 34
|
||||
if(tripleTravelerChildCount > 0)
|
||||
{
|
||||
$m = 1;
|
||||
for(var i = $offset; i < tripleTravelerChildCount + $offset; i++)
|
||||
{
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Dreibettzimmer | " + $m + ". Erwachsender");
|
||||
counter ++;
|
||||
$m++;
|
||||
if($m == 4){
|
||||
$m = 1;
|
||||
//child
|
||||
i++;
|
||||
var travelerSelector = '.st-traveler-'+i;
|
||||
var roomIndexSelector = travelerSelector+' .st-traveller-index';
|
||||
//var currentRoomIndex = $(travelerSelector).attr("data-room-index");
|
||||
$(travelerSelector).show().find('input,select').prop('required', true);
|
||||
$(roomIndexSelector).text(counter + ".) Reiseteilnehmer | Dreibettzimmer | Kind");
|
||||
counter ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
roomCountSR$.change(updateTravelers);
|
||||
roomCountDR$.change(updateTravelers);
|
||||
roomCountTR$.change(updateTravelers);
|
||||
roomChildCountSR$.change(updateTravelers);
|
||||
roomChildCountDR$.change(updateTravelers);
|
||||
roomChildCountTR$.change(updateTravelers);
|
||||
updateTravelers();
|
||||
});
|
||||
2737
trunk/src/AppBundle/Resources/public/js/bootstrap-select-1.13.2.js
vendored
Executable file
2445
trunk/src/AppBundle/Resources/public/js/config.codekit3
Normal file
104
trunk/src/AppBundle/Resources/public/js/cssrelpreload.js
Executable file
|
|
@ -0,0 +1,104 @@
|
|||
/*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
|
||||
/* This file is meant as a standalone workflow for
|
||||
- testing support for link[rel=preload]
|
||||
- enabling async CSS loading in browsers that do not support rel=preload
|
||||
- applying rel preload css once loaded, whether supported or not.
|
||||
*/
|
||||
(function( w ){
|
||||
"use strict";
|
||||
// rel=preload support test
|
||||
if( !w.loadCSS ){
|
||||
w.loadCSS = function(){};
|
||||
}
|
||||
// define on the loadCSS obj
|
||||
var rp = loadCSS.relpreload = {};
|
||||
// rel=preload feature support test
|
||||
// runs once and returns a function for compat purposes
|
||||
rp.support = (function(){
|
||||
var ret;
|
||||
try {
|
||||
ret = w.document.createElement( "link" ).relList.supports( "preload" );
|
||||
} catch (e) {
|
||||
ret = false;
|
||||
}
|
||||
return function(){
|
||||
return ret;
|
||||
};
|
||||
})();
|
||||
|
||||
// if preload isn't supported, get an asynchronous load by using a non-matching media attribute
|
||||
// then change that media back to its intended value on load
|
||||
rp.bindMediaToggle = function( link ){
|
||||
// remember existing media attr for ultimate state, or default to 'all'
|
||||
var finalMedia = link.media || "all";
|
||||
|
||||
function enableStylesheet(){
|
||||
link.media = finalMedia;
|
||||
}
|
||||
|
||||
// bind load handlers to enable media
|
||||
if( link.addEventListener ){
|
||||
link.addEventListener( "load", enableStylesheet );
|
||||
} else if( link.attachEvent ){
|
||||
link.attachEvent( "onload", enableStylesheet );
|
||||
}
|
||||
|
||||
// Set rel and non-applicable media type to start an async request
|
||||
// note: timeout allows this to happen async to let rendering continue in IE
|
||||
setTimeout(function(){
|
||||
link.rel = "stylesheet";
|
||||
link.media = "only x";
|
||||
});
|
||||
// also enable media after 3 seconds,
|
||||
// which will catch very old browsers (android 2.x, old firefox) that don't support onload on link
|
||||
setTimeout( enableStylesheet, 3000 );
|
||||
};
|
||||
|
||||
// loop through link elements in DOM
|
||||
rp.poly = function(){
|
||||
// double check this to prevent external calls from running
|
||||
if( rp.support() ){
|
||||
return;
|
||||
}
|
||||
var links = w.document.getElementsByTagName( "link" );
|
||||
for( var i = 0; i < links.length; i++ ){
|
||||
var link = links[ i ];
|
||||
// qualify links to those with rel=preload and as=style attrs
|
||||
if( link.rel === "preload" && link.getAttribute( "as" ) === "style" && !link.getAttribute( "data-loadcss" ) ){
|
||||
// prevent rerunning on link
|
||||
link.setAttribute( "data-loadcss", true );
|
||||
// bind listeners to toggle media back
|
||||
rp.bindMediaToggle( link );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// if unsupported, run the polyfill
|
||||
if( !rp.support() ){
|
||||
// run once at least
|
||||
rp.poly();
|
||||
|
||||
// rerun poly on an interval until onload
|
||||
var run = w.setInterval( rp.poly, 500 );
|
||||
if( w.addEventListener ){
|
||||
w.addEventListener( "load", function(){
|
||||
rp.poly();
|
||||
w.clearInterval( run );
|
||||
} );
|
||||
} else if( w.attachEvent ){
|
||||
w.attachEvent( "onload", function(){
|
||||
rp.poly();
|
||||
w.clearInterval( run );
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// commonjs
|
||||
if( typeof exports !== "undefined" ){
|
||||
exports.loadCSS = loadCSS;
|
||||
}
|
||||
else {
|
||||
w.loadCSS = loadCSS;
|
||||
}
|
||||
}( typeof global !== "undefined" ? global : this ) );
|
||||
|
|
@ -1,6 +1,84 @@
|
|||
window.currentScroll = 0;
|
||||
|
||||
jQuery('body').removeClass('no-js');
|
||||
|
||||
|
||||
// Initialize library to lazy load images
|
||||
|
||||
var observer = lozad('.lozad', {
|
||||
threshold: 0.1,
|
||||
});
|
||||
observer.observe();
|
||||
|
||||
|
||||
jQuery("button.btn-mobile").bind("click", function(e) {
|
||||
e.preventDefault();
|
||||
jQuery(this).toggleClass('btn-mobile-active');
|
||||
jQuery('html').removeClass('noscroll');
|
||||
jQuery('#menu-overlay').remove();
|
||||
|
||||
if(jQuery(this).hasClass('btn-mobile-active')) {
|
||||
jQuery('body').append('<div id="menu-overlay"></div>');
|
||||
|
||||
if(!jQuery("#topMain").hasClass('nav-onepage') || window.width > 960) { /* onepage fix */
|
||||
jQuery('html').addClass('noscroll');
|
||||
window.currentScroll = jQuery(window).scrollTop();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
if(!jQuery("#topMain").hasClass('nav-onepage') || window.width > 960) { /* onepage fix */
|
||||
jQuery('html,body').animate({scrollTop: currentScroll}, 300, 'easeInOutExpo');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
var addActiveClass = false;
|
||||
jQuery("#topMain a.dropdown-toggle").bind("click", function(e) {
|
||||
|
||||
if(jQuery("button.btn-mobile").hasClass('btn-mobile-active') || jQuery("html").hasClass('touch')){
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
addActiveClass = jQuery(this).parent().hasClass("resp-active");
|
||||
jQuery("#topMain").find(".resp-active").removeClass("resp-active");
|
||||
|
||||
if(!addActiveClass) {
|
||||
jQuery(this).parents("li").addClass("resp-active");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
});
|
||||
jQuery(document).ready(function($) {
|
||||
if (jQuery(document).width() < 768) {
|
||||
jQuery('.widget').find('.collapse-widget').addClass('collapsed');
|
||||
jQuery('.widget').find('.collapse').removeClass('in');
|
||||
}
|
||||
});
|
||||
|
||||
jQuery(document).ready(function($) {
|
||||
"use strict";
|
||||
|
||||
window.addEventListener("load", function(){
|
||||
window.cookieconsent.initialise({
|
||||
"palette": {
|
||||
"popup": {
|
||||
"background": "#648859"
|
||||
},
|
||||
"button": {
|
||||
"background": "#f1d600"
|
||||
}
|
||||
},
|
||||
"position": "bottom",
|
||||
"content": {
|
||||
"message": "Diese Webseite verwendet Cookies, über die personenbezogene Daten erhoben werden können. Nähere Informationen zu den verwendeten Cookies finden Sie hier:",
|
||||
"dismiss": "Einverstanden!",
|
||||
"link": "Datenschutzerklärung",
|
||||
"href": "https://www.sterntours.de/datenschutz"
|
||||
}
|
||||
})});
|
||||
|
||||
/* ==============================================
|
||||
VIDEOS -->
|
||||
=============================================== */
|
||||
|
|
@ -20,7 +98,7 @@ jQuery(document).ready(function($) {
|
|||
.attr({
|
||||
width: '100%',
|
||||
height: 500,
|
||||
src: '//www.youtube-nocookie.com/embed/'+ expl,
|
||||
src: 'https://www.youtube-nocookie.com/embed/'+ expl,
|
||||
frameborder: 0,
|
||||
allowfullscreen: true,
|
||||
'data-st-video': this.id
|
||||
|
|
@ -146,40 +224,10 @@ jQuery(document).ready(function($) {
|
|||
createSlider($(this));
|
||||
});
|
||||
|
||||
/* ==============================================
|
||||
HEADER STICKY -->
|
||||
=============================================== */
|
||||
|
||||
var navbarCollapse = false;
|
||||
|
||||
$(window).scroll(function() {
|
||||
if(!navbarCollapse){
|
||||
if ($(this).scrollTop() > 1){
|
||||
$('header').addClass("sticky");
|
||||
}
|
||||
else{
|
||||
$('header').removeClass("sticky");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('#navbar-collapse').on('shown.bs.collapse', function () {
|
||||
navbarCollapse = true;
|
||||
$('header').removeClass("sticky");
|
||||
$(window).scrollTop(0);
|
||||
|
||||
});
|
||||
|
||||
$('#navbar-collapse').on('hide.bs.collapse', function () {
|
||||
navbarCollapse = false;
|
||||
});
|
||||
|
||||
|
||||
/* ==============================================
|
||||
nav-tabs -->
|
||||
=============================================== */
|
||||
var hidWidth;
|
||||
var scrollBarWidths = 40;
|
||||
var windowW = $(window).width();
|
||||
|
||||
|
|
@ -276,7 +324,7 @@ jQuery(document).ready(function($) {
|
|||
/* ==============================================
|
||||
MENU HOVER -->
|
||||
=============================================== */
|
||||
if($(window).width() > 768){
|
||||
if($(window).width() > 768){
|
||||
|
||||
$(".header .navbar-nav .dropdown:not(.openClick)").hover(
|
||||
function() {
|
||||
|
|
@ -302,39 +350,11 @@ jQuery(document).ready(function($) {
|
|||
}
|
||||
|
||||
|
||||
|
||||
$('.selectpicker').selectpicker({
|
||||
dropupAuto: false
|
||||
});
|
||||
|
||||
|
||||
|
||||
/* ==============================================
|
||||
collapse_open -->
|
||||
=============================================== */
|
||||
|
||||
function collapse_open(){
|
||||
var windowW = $(window).width();
|
||||
if(windowW <= 768){
|
||||
$('.collapse-widget').addClass('collapsed');
|
||||
$('.collapse-widget').parents('.widget').find('.collapse').removeClass('in');
|
||||
}else{
|
||||
$('.collapse-widget').removeClass('collapsed');
|
||||
$('.collapse-widget').parents('.widget').find('.collapse').addClass('in');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var $frist = false;
|
||||
$(window).resize(function() {
|
||||
if(!$first){
|
||||
var $first = true;
|
||||
collapse_open();
|
||||
}
|
||||
});
|
||||
collapse_open();
|
||||
|
||||
|
||||
/* ==============================================
|
||||
nav-tabs -->
|
||||
=============================================== */
|
||||
|
|
@ -358,7 +378,7 @@ jQuery(document).ready(function($) {
|
|||
}, 500);
|
||||
}
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
/* ==============================================
|
||||
tooltip -->
|
||||
|
|
@ -366,16 +386,10 @@ jQuery(document).ready(function($) {
|
|||
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
|
||||
/* ==============================================
|
||||
carousel -->
|
||||
=============================================== */
|
||||
|
||||
$('.carousel').carousel({
|
||||
interval: 5000 //changes the speed
|
||||
})
|
||||
|
||||
/* ==============================================
|
||||
ACCORDION -->
|
||||
=============================================== */
|
||||
|
|
@ -434,25 +448,29 @@ jQuery(document).ready(function($) {
|
|||
$('#accordion_fd').on('hidden.bs.collapse', toggleChevron3);
|
||||
$('#accordion_fd').on('shown.bs.collapse', toggleChevron3);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* ==============================================
|
||||
LIGHTBOX -->
|
||||
=============================================== */
|
||||
carousel -->
|
||||
=============================================== */
|
||||
|
||||
/*
|
||||
jQuery('a[data-gal]').each(function() {
|
||||
jQuery(this).attr('rel', jQuery(this).data('gal'));
|
||||
});
|
||||
jQuery("a[data-gal^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',slideshow:false,overlay_gallery: false,theme:'light_square',social_tools:false,deeplinking:false});
|
||||
$('.carousel').carousel({
|
||||
interval: 5000, //changes the speed
|
||||
});
|
||||
|
||||
/*$('#myCarousel').find(".fill[data-src]:not(.loaded)").each(function(i,v){
|
||||
$(v).addClass("loaded").css("background-image", "url("+$(v).attr("data-src")+")");
|
||||
});
|
||||
|
||||
|
||||
$('.travel-wrapper').find(".img-background[data-src]:not(.loaded)").each(function(i,v){
|
||||
$(v).addClass("loaded").css("background-image", "url("+$(v).attr("data-src")+")");
|
||||
});
|
||||
*/
|
||||
/* ==============================================
|
||||
CAROUSEL -->
|
||||
=============================================== */
|
||||
|
||||
$('.owl-fullwidth').owlCarousel({
|
||||
|
||||
/* ==============================================
|
||||
OWL CAROUSEL -->
|
||||
=============================================== */
|
||||
var owl = $('.owl-fullwidth').owlCarousel({
|
||||
loop:true,
|
||||
margin:0,
|
||||
nav:true,
|
||||
|
|
@ -460,7 +478,7 @@ jQuery(document).ready(function($) {
|
|||
navText: [
|
||||
"<i class='fa fa-angle-right'></i>",
|
||||
"<i class='fa fa-angle-left'></i>"],
|
||||
responsive:{
|
||||
responsive:{
|
||||
0:{
|
||||
items:1
|
||||
},
|
||||
|
|
@ -470,8 +488,19 @@ jQuery(document).ready(function($) {
|
|||
1000:{
|
||||
items:3
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
});
|
||||
|
||||
/* onTranslated: function(me){
|
||||
$(me.target).find(".owl-item.active [data-src]:not(.loaded)").each(function(i,v){
|
||||
$(v).addClass("loaded").css("background-image", "url("+$(v).attr("data-src")+")");
|
||||
});
|
||||
},
|
||||
onInitialized: function(me){
|
||||
$(me.target).find(".owl-item.active [data-src]:not(.loaded)").each(function(i,v){
|
||||
$(v).addClass("loaded").css("background-image", "url("+$(v).attr("data-src")+")");
|
||||
});
|
||||
},*/
|
||||
|
||||
/* ==============================================
|
||||
BOX LINK -->
|
||||
|
|
@ -491,51 +520,6 @@ jQuery(document).ready(function($) {
|
|||
return false;
|
||||
});
|
||||
|
||||
/* function resize_box (){
|
||||
$('.owl-fullwidth:not(.noresize)').each(function(){
|
||||
var boxes = $(this).find('.hl5');
|
||||
var maxHeight = Math.max.apply(
|
||||
Math, boxes.map(function() {
|
||||
return $(this).height();
|
||||
}).get());
|
||||
boxes.height(maxHeight);
|
||||
});
|
||||
|
||||
$('a.item-button').each(function(){
|
||||
$(this).removeClass('single_line');
|
||||
$(this).removeClass('dobble_line');
|
||||
if($(this).height() <= 36){
|
||||
$(this).addClass('single_line');
|
||||
}else{
|
||||
$(this).addClass('dobble_line');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
resize_box();
|
||||
|
||||
$(window).resize(function() {
|
||||
resize_box();
|
||||
}); */
|
||||
|
||||
|
||||
/* ==============================================
|
||||
resize_travel_img with height < 190 -->
|
||||
=============================================== */
|
||||
|
||||
|
||||
/*function resize_travel_img (){
|
||||
$('.travel-wrapper').find('img').each(function(){
|
||||
if($(this).height() < 190){
|
||||
$(this).addClass('lower-height');
|
||||
}
|
||||
});
|
||||
}
|
||||
resize_travel_img();
|
||||
$(window).resize(function() {
|
||||
resize_travel_img();
|
||||
});*/
|
||||
|
||||
|
||||
/* ==============================================
|
||||
|
|
|
|||
79
trunk/src/AppBundle/Resources/public/js/loadCSS.js
Executable file
|
|
@ -0,0 +1,79 @@
|
|||
/*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
|
||||
(function(w){
|
||||
"use strict";
|
||||
/* exported loadCSS */
|
||||
var loadCSS = function( href, before, media ){
|
||||
// Arguments explained:
|
||||
// `href` [REQUIRED] is the URL for your CSS file.
|
||||
// `before` [OPTIONAL] is the element the script should use as a reference for injecting our stylesheet <link> before
|
||||
// By default, loadCSS attempts to inject the link after the last stylesheet or script in the DOM. However, you might desire a more specific location in your document.
|
||||
// `media` [OPTIONAL] is the media type or query of the stylesheet. By default it will be 'all'
|
||||
var doc = w.document;
|
||||
var ss = doc.createElement( "link" );
|
||||
var ref;
|
||||
if( before ){
|
||||
ref = before;
|
||||
}
|
||||
else {
|
||||
var refs = ( doc.body || doc.getElementsByTagName( "head" )[ 0 ] ).childNodes;
|
||||
ref = refs[ refs.length - 1];
|
||||
}
|
||||
|
||||
var sheets = doc.styleSheets;
|
||||
ss.rel = "stylesheet";
|
||||
ss.href = href;
|
||||
// temporarily set media to something inapplicable to ensure it'll fetch without blocking render
|
||||
ss.media = "only x";
|
||||
|
||||
// wait until body is defined before injecting link. This ensures a non-blocking load in IE11.
|
||||
function ready( cb ){
|
||||
if( doc.body ){
|
||||
return cb();
|
||||
}
|
||||
setTimeout(function(){
|
||||
ready( cb );
|
||||
});
|
||||
}
|
||||
// Inject link
|
||||
// Note: the ternary preserves the existing behavior of "before" argument, but we could choose to change the argument to "after" in a later release and standardize on ref.nextSibling for all refs
|
||||
// Note: `insertBefore` is used instead of `appendChild`, for safety re: http://www.paulirish.com/2011/surefire-dom-element-insertion/
|
||||
ready( function(){
|
||||
ref.parentNode.insertBefore( ss, ( before ? ref : ref.nextSibling ) );
|
||||
});
|
||||
// A method (exposed on return object for external use) that mimics onload by polling document.styleSheets until it includes the new sheet.
|
||||
var onloadcssdefined = function( cb ){
|
||||
var resolvedHref = ss.href;
|
||||
var i = sheets.length;
|
||||
while( i-- ){
|
||||
if( sheets[ i ].href === resolvedHref ){
|
||||
return cb();
|
||||
}
|
||||
}
|
||||
setTimeout(function() {
|
||||
onloadcssdefined( cb );
|
||||
});
|
||||
};
|
||||
|
||||
function loadCB(){
|
||||
if( ss.addEventListener ){
|
||||
ss.removeEventListener( "load", loadCB );
|
||||
}
|
||||
ss.media = media || "all";
|
||||
}
|
||||
|
||||
// once loaded, set link's media back to `all` so that the stylesheet applies once it loads
|
||||
if( ss.addEventListener ){
|
||||
ss.addEventListener( "load", loadCB);
|
||||
}
|
||||
ss.onloadcssdefined = onloadcssdefined;
|
||||
onloadcssdefined( loadCB );
|
||||
return ss;
|
||||
};
|
||||
// commonjs
|
||||
if( typeof exports !== "undefined" ){
|
||||
exports.loadCSS = loadCSS;
|
||||
}
|
||||
else {
|
||||
w.loadCSS = loadCSS;
|
||||
}
|
||||
}( typeof global !== "undefined" ? global : this ));
|
||||
115
trunk/src/AppBundle/Resources/public/js/lozad.es.js
Executable file
|
|
@ -0,0 +1,115 @@
|
|||
/*! lozad.js - v1.7.0 - 2018-11-08
|
||||
* https://github.com/ApoorvSaxena/lozad.js
|
||||
* Copyright (c) 2018 Apoorv Saxena; Licensed MIT */
|
||||
|
||||
|
||||
/**
|
||||
* Detect IE browser
|
||||
* @const {boolean}
|
||||
* @private
|
||||
*/
|
||||
const isIE = typeof document !== 'undefined' && document.documentMode;
|
||||
|
||||
const defaultConfig = {
|
||||
rootMargin: '0px',
|
||||
threshold: 0,
|
||||
load(element) {
|
||||
if (element.nodeName.toLowerCase() === 'picture') {
|
||||
const img = document.createElement('img');
|
||||
if (isIE && element.getAttribute('data-iesrc')) {
|
||||
img.src = element.getAttribute('data-iesrc');
|
||||
}
|
||||
if (element.getAttribute('data-alt')) {
|
||||
img.alt = element.getAttribute('data-alt');
|
||||
}
|
||||
element.appendChild(img);
|
||||
}
|
||||
if (element.getAttribute('data-src')) {
|
||||
element.src = element.getAttribute('data-src');
|
||||
}
|
||||
if (element.getAttribute('data-srcset')) {
|
||||
element.setAttribute('srcset', element.getAttribute('data-srcset'));
|
||||
}
|
||||
if (element.getAttribute('data-background-image')) {
|
||||
element.style.backgroundImage = `url('${element.getAttribute('data-background-image')}')`;
|
||||
}
|
||||
if (element.getAttribute('data-toggle-class')) {
|
||||
element.classList.toggle(element.getAttribute('data-toggle-class'));
|
||||
}
|
||||
},
|
||||
loaded() {}
|
||||
};
|
||||
|
||||
function markAsLoaded(element) {
|
||||
element.setAttribute('data-loaded', true);
|
||||
}
|
||||
|
||||
const isLoaded = element => element.getAttribute('data-loaded') === 'true';
|
||||
|
||||
const onIntersection = (load, loaded) => (entries, observer) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.intersectionRatio > 0 || entry.isIntersecting) {
|
||||
observer.unobserve(entry.target);
|
||||
|
||||
if (!isLoaded(entry.target)) {
|
||||
load(entry.target);
|
||||
markAsLoaded(entry.target);
|
||||
loaded(entry.target);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const getElements = (selector, root = document) => {
|
||||
if (selector instanceof Element) {
|
||||
return [selector]
|
||||
}
|
||||
if (selector instanceof NodeList) {
|
||||
return selector
|
||||
}
|
||||
return root.querySelectorAll(selector)
|
||||
};
|
||||
|
||||
function lozad (selector = '.lozad', options = {}) {
|
||||
const {root, rootMargin, threshold, load, loaded} = {...defaultConfig, ...options};
|
||||
let observer;
|
||||
|
||||
if (window.IntersectionObserver) {
|
||||
observer = new IntersectionObserver(onIntersection(load, loaded), {
|
||||
root,
|
||||
rootMargin,
|
||||
threshold
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
observe() {
|
||||
const elements = getElements(selector, root);
|
||||
|
||||
for (let i = 0; i < elements.length; i++) {
|
||||
if (isLoaded(elements[i])) {
|
||||
continue
|
||||
}
|
||||
if (observer) {
|
||||
observer.observe(elements[i]);
|
||||
continue
|
||||
}
|
||||
load(elements[i]);
|
||||
markAsLoaded(elements[i]);
|
||||
loaded(elements[i]);
|
||||
}
|
||||
},
|
||||
triggerLoad(element) {
|
||||
if (isLoaded(element)) {
|
||||
return
|
||||
}
|
||||
|
||||
load(element);
|
||||
markAsLoaded(element);
|
||||
loaded(element);
|
||||
},
|
||||
observer
|
||||
}
|
||||
}
|
||||
|
||||
export default lozad;
|
||||
141
trunk/src/AppBundle/Resources/public/js/lozad.js
Executable file
|
|
@ -0,0 +1,141 @@
|
|||
/*! lozad.js - v1.7.0 - 2018-11-08
|
||||
* https://github.com/ApoorvSaxena/lozad.js
|
||||
* Copyright (c) 2018 Apoorv Saxena; Licensed MIT */
|
||||
|
||||
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global.lozad = factory());
|
||||
}(this, (function () { 'use strict';
|
||||
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
/**
|
||||
* Detect IE browser
|
||||
* @const {boolean}
|
||||
* @private
|
||||
*/
|
||||
var isIE = typeof document !== 'undefined' && document.documentMode;
|
||||
|
||||
var defaultConfig = {
|
||||
rootMargin: '0px',
|
||||
threshold: 0,
|
||||
load: function load(element) {
|
||||
if (element.nodeName.toLowerCase() === 'picture') {
|
||||
var img = document.createElement('img');
|
||||
if (isIE && element.getAttribute('data-iesrc')) {
|
||||
img.src = element.getAttribute('data-iesrc');
|
||||
}
|
||||
if (element.getAttribute('data-alt')) {
|
||||
img.alt = element.getAttribute('data-alt');
|
||||
}
|
||||
element.appendChild(img);
|
||||
}
|
||||
if (element.getAttribute('data-src')) {
|
||||
element.src = element.getAttribute('data-src');
|
||||
}
|
||||
if (element.getAttribute('data-srcset')) {
|
||||
element.setAttribute('srcset', element.getAttribute('data-srcset'));
|
||||
}
|
||||
if (element.getAttribute('data-background-image')) {
|
||||
element.style.backgroundImage = 'url(\'' + element.getAttribute('data-background-image') + '\')';
|
||||
}
|
||||
if (element.getAttribute('data-toggle-class')) {
|
||||
element.classList.toggle(element.getAttribute('data-toggle-class'));
|
||||
}
|
||||
},
|
||||
loaded: function loaded() {}
|
||||
};
|
||||
|
||||
function markAsLoaded(element) {
|
||||
element.setAttribute('data-loaded', true);
|
||||
}
|
||||
|
||||
var isLoaded = function isLoaded(element) {
|
||||
return element.getAttribute('data-loaded') === 'true';
|
||||
};
|
||||
|
||||
var onIntersection = function onIntersection(load, loaded) {
|
||||
return function (entries, observer) {
|
||||
entries.forEach(function (entry) {
|
||||
if (entry.intersectionRatio > 0 || entry.isIntersecting) {
|
||||
observer.unobserve(entry.target);
|
||||
|
||||
if (!isLoaded(entry.target)) {
|
||||
load(entry.target);
|
||||
markAsLoaded(entry.target);
|
||||
loaded(entry.target);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
var getElements = function getElements(selector) {
|
||||
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
|
||||
|
||||
if (selector instanceof Element) {
|
||||
return [selector];
|
||||
}
|
||||
if (selector instanceof NodeList) {
|
||||
return selector;
|
||||
}
|
||||
return root.querySelectorAll(selector);
|
||||
};
|
||||
|
||||
function lozad () {
|
||||
var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '.lozad';
|
||||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
|
||||
var _defaultConfig$option = _extends({}, defaultConfig, options),
|
||||
root = _defaultConfig$option.root,
|
||||
rootMargin = _defaultConfig$option.rootMargin,
|
||||
threshold = _defaultConfig$option.threshold,
|
||||
load = _defaultConfig$option.load,
|
||||
loaded = _defaultConfig$option.loaded;
|
||||
|
||||
var observer = void 0;
|
||||
|
||||
if (window.IntersectionObserver) {
|
||||
observer = new IntersectionObserver(onIntersection(load, loaded), {
|
||||
root: root,
|
||||
rootMargin: rootMargin,
|
||||
threshold: threshold
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
observe: function observe() {
|
||||
var elements = getElements(selector, root);
|
||||
|
||||
for (var i = 0; i < elements.length; i++) {
|
||||
if (isLoaded(elements[i])) {
|
||||
continue;
|
||||
}
|
||||
if (observer) {
|
||||
observer.observe(elements[i]);
|
||||
continue;
|
||||
}
|
||||
load(elements[i]);
|
||||
markAsLoaded(elements[i]);
|
||||
loaded(elements[i]);
|
||||
}
|
||||
},
|
||||
triggerLoad: function triggerLoad(element) {
|
||||
if (isLoaded(element)) {
|
||||
return;
|
||||
}
|
||||
|
||||
load(element);
|
||||
markAsLoaded(element);
|
||||
loaded(element);
|
||||
},
|
||||
|
||||
observer: observer
|
||||
};
|
||||
}
|
||||
|
||||
return lozad;
|
||||
|
||||
})));
|
||||
9
trunk/src/AppBundle/Resources/public/js/lozad.min.js
vendored
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
/*! lozad.js - v1.7.0 - 2018-11-08
|
||||
* https://github.com/ApoorvSaxena/lozad.js
|
||||
* Copyright (c) 2018 Apoorv Saxena; Licensed MIT */
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.lozad=e()}(this,function(){"use strict";var g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},r="undefined"!=typeof document&&document.documentMode,l={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()){var e=document.createElement("img");r&&t.getAttribute("data-iesrc")&&(e.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(e.alt=t.getAttribute("data-alt")),t.appendChild(e)}t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset")),t.getAttribute("data-background-image")&&(t.style.backgroundImage="url('"+t.getAttribute("data-background-image")+"')"),t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded:function(){}};
|
||||
/**
|
||||
* Detect IE browser
|
||||
* @const {boolean}
|
||||
* @private
|
||||
*/function f(t){t.setAttribute("data-loaded",!0)}var b=function(t){return"true"===t.getAttribute("data-loaded")};return function(){var r,o,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=g({},l,t),n=e.root,i=e.rootMargin,d=e.threshold,u=e.load,c=e.loaded,s=void 0;return window.IntersectionObserver&&(s=new IntersectionObserver((r=u,o=c,function(t,e){t.forEach(function(t){(0<t.intersectionRatio||t.isIntersecting)&&(e.unobserve(t.target),b(t.target)||(r(t.target),f(t.target),o(t.target)))})}),{root:n,rootMargin:i,threshold:d})),{observe:function(){for(var t=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)}(a,n),e=0;e<t.length;e++)b(t[e])||(s?s.observe(t[e]):(u(t[e]),f(t[e]),c(t[e])))},triggerLoad:function(t){b(t)||(u(t),f(t),c(t))},observer:s}}});
|
||||
29
trunk/src/AppBundle/Resources/public/js/onloadCSS.js
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
/*! onloadCSS. (onload callback for loadCSS) [c]2017 Filament Group, Inc. MIT License */
|
||||
/* global navigator */
|
||||
/* exported onloadCSS */
|
||||
function onloadCSS( ss, callback ) {
|
||||
var called;
|
||||
function newcb(){
|
||||
if( !called && callback ){
|
||||
called = true;
|
||||
callback.call( ss );
|
||||
}
|
||||
}
|
||||
if( ss.addEventListener ){
|
||||
ss.addEventListener( "load", newcb );
|
||||
}
|
||||
if( ss.attachEvent ){
|
||||
ss.attachEvent( "onload", newcb );
|
||||
}
|
||||
|
||||
// This code is for browsers that don’t support onload
|
||||
// No support for onload (it'll bind but never fire):
|
||||
// * Android 4.3 (Samsung Galaxy S4, Browserstack)
|
||||
// * Android 4.2 Browser (Samsung Galaxy SIII Mini GT-I8200L)
|
||||
// * Android 2.3 (Pantech Burst P9070)
|
||||
|
||||
// Weak inference targets Android < 4.4
|
||||
if( "isApplicationInstalled" in navigator && "onloadcssdefined" in ss ) {
|
||||
ss.onloadcssdefined( newcb );
|
||||
}
|
||||
}
|
||||