feeback show, header css lazy
git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3482 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
30c42d0508
commit
b28c7db598
24 changed files with 681 additions and 202 deletions
|
|
@ -793,7 +793,7 @@ a[id^="video_"]:before,
|
|||
text-overflow: ellipsis;
|
||||
word-wrap: break-word;
|
||||
overflow: hidden;
|
||||
line-height: 1.45em;
|
||||
line-height: 1.2em;
|
||||
height: 3.6em;
|
||||
}
|
||||
.travel-wrapper .item > a.item-button.single_line {
|
||||
|
|
@ -2866,6 +2866,12 @@ nav hr {
|
|||
color: #fff;
|
||||
background: #ffc926;
|
||||
}
|
||||
|
||||
.dropdown-menu>.active>a, .dropdown-menu>.active>a:focus, .dropdown-menu>.active>a:hover {
|
||||
color: #fff;
|
||||
background: #ffc926;
|
||||
|
||||
}
|
||||
.yamm .dropdown-menu li h3 {
|
||||
font-size: 15px;
|
||||
margin-bottom: 0;
|
||||
|
|
@ -3703,7 +3709,21 @@ a,
|
|||
top: 53px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1024px) {
|
||||
@media (min-width:768px) and (max-width:991px) {
|
||||
.topbar li.visible-sm {
|
||||
display: inline-block !important
|
||||
}
|
||||
}
|
||||
@media (max-width: 767px){
|
||||
.topbar li {
|
||||
line-height: 12px;
|
||||
}
|
||||
.topbar li.visible-xs {
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
#sidebar #side-navigation .side-menu {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
@ -3752,7 +3772,7 @@ a,
|
|||
top: 52px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 992px) {
|
||||
@media (max-width: 991px) {
|
||||
/* Force table to not be like tables anymore */
|
||||
#no-more-tables table,
|
||||
#no-more-tables thead,
|
||||
|
|
@ -3813,7 +3833,7 @@ a,
|
|||
content: attr(data-title);
|
||||
}
|
||||
}
|
||||
@media (max-width: 992px) {
|
||||
@media (max-width: 991px) {
|
||||
/* Force table to not be like tables anymore */
|
||||
.no-more-tables table,
|
||||
.no-more-tables thead,
|
||||
|
|
@ -3920,7 +3940,7 @@ a,
|
|||
}
|
||||
.fullscreen {
|
||||
padding: 0;
|
||||
padding-top: 96px;
|
||||
padding-top: 110px;
|
||||
}
|
||||
.absolute-carousel {
|
||||
top: 0px;
|
||||
|
|
@ -5795,7 +5815,147 @@ input[type="radio"] .styled:checked + label::after {
|
|||
|
||||
.box-slider .slide:not(.active) {display: none;}
|
||||
|
||||
|
||||
#preloader {
|
||||
display: none;
|
||||
}
|
||||
.video-wrap {
|
||||
float: right;
|
||||
margin: 0 0 5px 20px;
|
||||
position: relative;
|
||||
max-width: 35%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.modal-body .video-wrap {
|
||||
max-width: 50%;
|
||||
}
|
||||
.video-wrap .img-responsive {
|
||||
margin: -8% 0;
|
||||
}
|
||||
|
||||
.boxwidget .video-wrap {
|
||||
float: right;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.btn.btn-close-video {
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.video-wrap {
|
||||
max-width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.video-wrap {
|
||||
float: right;
|
||||
margin: 0 0 5px 20px;
|
||||
position: relative;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
height: 280px;
|
||||
width: 100%;
|
||||
}
|
||||
.video-wrap .img-responsive {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
top: 35%;
|
||||
-webkit-transform: translate(0%, -50%);
|
||||
-ms-transform: translate(0%, -50%);
|
||||
transform: translate(0%, -50%);
|
||||
z-index: 2;
|
||||
margin: 0;
|
||||
|
||||
}
|
||||
.boxwidget .video-wrap {
|
||||
height: 180px;
|
||||
}
|
||||
}
|
||||
|
||||
.bootstrap-select .dropdown-toggle .filter-option {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
.g-absolute-centered {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
-webkit-transform: translate(0%, -50%);
|
||||
-ms-transform: translate(0%, -50%);
|
||||
transform: translate(0%, -50%);
|
||||
text-align: center;
|
||||
z-index: 10;
|
||||
|
||||
}
|
||||
|
||||
.u-icon-v3 {
|
||||
background-color: #ffc926;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
color: #fff !important;
|
||||
width: auto;
|
||||
font-size: 1rem;
|
||||
line-height: 1.2rem;
|
||||
font-weight: 500;
|
||||
|
||||
display: inline-block;
|
||||
padding: 10px 15px;
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out;
|
||||
transition: all .2s ease-in-out;
|
||||
-webkit-box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.5);
|
||||
-moz-box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.5);
|
||||
box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.5);
|
||||
|
||||
}
|
||||
|
||||
.u-icon-v3 i {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
z-index: 12;
|
||||
|
||||
}
|
||||
|
||||
.u-icon-v3:hover {
|
||||
background-color: #648859 !important;
|
||||
-webkit-box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.5);
|
||||
-moz-box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.5);
|
||||
box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.5);
|
||||
|
||||
}
|
||||
.tab-pane .h3l {
|
||||
padding-bottom: 10px;
|
||||
margin-bottom: 15px;
|
||||
border-bottom: 1px solid #c2c2c2;
|
||||
color: #616161;
|
||||
display: block;
|
||||
clear: both;
|
||||
padding-top: 20px;
|
||||
|
||||
}
|
||||
|
||||
.youtube {
|
||||
margin-bottom: 25px;
|
||||
position: relative;
|
||||
display: block;
|
||||
height: 0;
|
||||
padding: 0 0 56.25% 0;
|
||||
overflow: hidden;
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
.youtube iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
}
|
||||
|
|
@ -11,6 +11,76 @@ var observer = lozad('.lozad', {
|
|||
observer.observe();
|
||||
|
||||
|
||||
|
||||
|
||||
var youtube_loader = function(self) {
|
||||
options = {
|
||||
width: 853,
|
||||
height: 480,
|
||||
autoplay: 1,
|
||||
rel: 0,
|
||||
class: "youtube-video",
|
||||
frameborder: "0",
|
||||
allowfullscreen: true
|
||||
};
|
||||
options.src = $(self).data('src') + "?rel=" + options.rel + "&autoplay=" + options.autoplay;
|
||||
ret = $(document.createElement("iframe"));
|
||||
var ele = $(self).parent().parent();
|
||||
ele.html("");
|
||||
ele.removeClass('video-wrap');
|
||||
ele.addClass('youtube');
|
||||
ele.append(ret);
|
||||
ret.attr(options);
|
||||
|
||||
};
|
||||
jQuery('a[data-type="youtube"]').on('click', function () {
|
||||
youtube_loader(this);
|
||||
|
||||
});
|
||||
|
||||
var youtube_sterntours_video_closer = function(self) {
|
||||
$('#show_sterntours_video_full').hide('slow', function () {
|
||||
$(this).html("");
|
||||
});
|
||||
$('#show_sterntours_video_sidebar').show();
|
||||
};
|
||||
|
||||
var youtube_sterntours_video_loader = function(self) {
|
||||
$('#show_sterntours_video_sidebar').hide();
|
||||
options = {
|
||||
width: 853,
|
||||
height: 480,
|
||||
autoplay: 1,
|
||||
rel: 0,
|
||||
class: "youtube-video",
|
||||
frameborder: "0",
|
||||
allowfullscreen: true
|
||||
};
|
||||
options.src = $(self).data('src') + "?rel=" + options.rel + "&autoplay=" + options.autoplay;
|
||||
div = $(document.createElement("div"));
|
||||
div.addClass('youtube');
|
||||
ret = $(document.createElement("iframe"));
|
||||
h1 = $(document.createElement("h1")).html("Wir: STERN TOURS <a href=\"#\" title=\"Close\" class=\"pull-right btn btn-default btn-close-video\" id=\"sterntorus_video_close\"><i class=\"fa fa-times\"></i> <span class=\"\"></span></a>");
|
||||
var ele = $('#show_sterntours_video_full');
|
||||
ele.html("");
|
||||
ele.append(h1);
|
||||
div.append(ret);
|
||||
ele.append(div);
|
||||
ret.attr(options);
|
||||
ele.show('slow');
|
||||
|
||||
jQuery('a#sterntorus_video_close').on('click', function () {
|
||||
youtube_sterntours_video_closer(this);
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
jQuery('a[data-type="youtube_sterntours_video"]').on('click', function () {
|
||||
youtube_sterntours_video_loader(this);
|
||||
});
|
||||
|
||||
|
||||
|
||||
jQuery("button.btn-mobile").bind("click", function(e) {
|
||||
e.preventDefault();
|
||||
jQuery(this).toggleClass('btn-mobile-active');
|
||||
|
|
@ -19,14 +89,11 @@ jQuery("button.btn-mobile").bind("click", function(e) {
|
|||
|
||||
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');
|
||||
}
|
||||
|
|
@ -59,7 +126,6 @@ jQuery(document).ready(function($) {
|
|||
|
||||
jQuery(document).ready(function($) {
|
||||
"use strict";
|
||||
|
||||
window.addEventListener("load", function(){
|
||||
window.cookieconsent.initialise({
|
||||
"palette": {
|
||||
|
|
@ -83,7 +149,7 @@ jQuery(document).ready(function($) {
|
|||
VIDEOS -->
|
||||
=============================================== */
|
||||
|
||||
var videos$ = $('a[id^="video_"]');
|
||||
/* var videos$ = $('a[id^="video_"]');
|
||||
|
||||
function videoInitHandler()
|
||||
{
|
||||
|
|
@ -136,7 +202,8 @@ jQuery(document).ready(function($) {
|
|||
el$.text(caption + ' einblenden');
|
||||
el$.addClass('st-collapsed');
|
||||
}
|
||||
});
|
||||
});*/
|
||||
|
||||
|
||||
/* ==============================================
|
||||
KEYWORDS -->
|
||||
|
|
@ -147,9 +214,13 @@ jQuery(document).ready(function($) {
|
|||
$('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$.find('a[data-type="youtube"]').on('click', function () {
|
||||
youtube_loader(this);
|
||||
});
|
||||
modal$.find('img.lozad').each(function () {
|
||||
$(this).attr('src', $(this).data('src'));
|
||||
});
|
||||
modal$.modal('show');
|
||||
});
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue