Einige Tickes, kleine Anpassungen, bis 08-2023
This commit is contained in:
parent
148eb359ce
commit
086ba968f7
16 changed files with 276 additions and 726 deletions
|
|
@ -96,8 +96,8 @@
|
|||
{% endblock stylesheets %}
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js" async></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js" async></script>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js" async data-cookieconsent="necessary"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js" async data-cookieconsent="necessary"></script>
|
||||
<![endif]-->
|
||||
|
||||
</head>
|
||||
|
|
@ -188,7 +188,9 @@
|
|||
{% embed 'default/components/embed/modal.html.twig' with {id: 'default'} %}{% endembed %}
|
||||
|
||||
{% block javascripts %}
|
||||
<script rel="preload" src="{{ asset('js/custom-min.js?v') }}{{ get_file_last_time('js/custom-min.js') }}"></script>
|
||||
<script rel="preload" src="{{ asset('js/custom-min.js?v') }}{{ get_file_last_time('js/custom-min.js') }}" data-cookieconsent="necessary"></script>
|
||||
<script rel="preload" src="{{ asset('js/youtube-loader-min.js?v') }}{{ get_file_last_time('js/youtube-loader-min.js') }}" type="text/javascript" data-cookieconsent="preferences"></script>
|
||||
|
||||
{% endblock javascripts %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -35,11 +35,12 @@
|
|||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js data-cookieconsent="necessary""></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js data-cookieconsent="necessary""></script>
|
||||
<![endif]-->
|
||||
<script src="{{ asset('js/custom-min.js?v') }}{{ get_file_last_time('js/custom-min.js') }}"></script>
|
||||
<script src="{{ asset('js/fewoBooking-min.js?v') }}{{ get_file_last_time('js/fewoBooking-min.js') }}"></script>
|
||||
<script src="{{ asset('js/custom-min.js?v') }}{{ get_file_last_time('js/custom-min.js') }}" data-cookieconsent="necessary"></script>
|
||||
<script src="{{ asset('js/youtube-loader-min.js?v') }}{{ get_file_last_time('js/youtube-loader-min.js') }}" type="text/javascript" data-cookieconsent="preferences"></script>
|
||||
<script src="{{ asset('js/fewoBooking-min.js?v') }}{{ get_file_last_time('js/fewoBooking-min.js') }}" data-cookieconsent="necessary"></script>
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@
|
|||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
<meta name="msapplication-TileColor" content="#ffffff">
|
||||
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
{% block meta_description -%}
|
||||
{%- if page is defined and page.description is not empty -%}
|
||||
<meta name="description" content="{{ page.description }}" >
|
||||
|
|
@ -48,10 +52,10 @@
|
|||
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
||||
|
||||
<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="efbd59ab-4d18-411e-9bfa-47bbd4f9db28" data-blockingmode="auto" type="text/javascript"></script>
|
||||
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<meta name="msapplication-TileColor" content="#ffffff">
|
||||
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
{% block canonical_tag %}
|
||||
{% if canonical_url is not defined and page is defined %}
|
||||
|
|
@ -73,13 +77,10 @@
|
|||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="{{ asset('css/my-custom.css?v1') }}{{ get_file_last_time('css/my-custom.css') }}">
|
||||
<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="efbd59ab-4d18-411e-9bfa-47bbd4f9db28" data-blockingmode="auto" type="text/javascript"></script>
|
||||
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Y1Y779PDME"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Y1Y779PDME" data-cookieconsent="marketing"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
|
|
@ -92,8 +93,8 @@
|
|||
{% endblock stylesheets %}
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js" async></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js" async></script>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js" async data-cookieconsent="necessary></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js" async data-cookieconsent="necessary></script>
|
||||
<![endif]-->
|
||||
|
||||
</head>
|
||||
|
|
@ -193,9 +194,11 @@
|
|||
|
||||
|
||||
{% block javascripts %}
|
||||
<script rel="preload" src="{{ asset('js/custom-min.js?v') }}{{ get_file_last_time('js/custom-min.js') }}" type="text/javascript" data-cookieconsent="preferences"></script>
|
||||
<script rel="preload" src="{{ asset('js/custom-min.js?v') }}{{ get_file_last_time('js/custom-min.js') }}" type="text/javascript" data-cookieconsent="necessary"></script>
|
||||
<script rel="preload" src="{{ asset('js/youtube-loader-min.js?v') }}{{ get_file_last_time('js/youtube-loader-min.js') }}" type="text/javascript" data-cookieconsent="preferences"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
<script type="text/javascript" data-cookieconsent="necessary">
|
||||
$(document).ready(function() {
|
||||
$('a.travel-booking-content-open').click(function (e) {
|
||||
e.preventDefault();
|
||||
|
|
@ -203,8 +206,7 @@
|
|||
});
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" src="https://siegel.ausgezeichnet.org/widgets/js/55b648290cf257aef3483d90/widget.js"></script><!-- Ausgezeichnet.org-Siegel: End -->
|
||||
|
||||
<script type="text/javascript" src="https://siegel.ausgezeichnet.org/widgets/js/55b648290cf257aef3483d90/widget.js" data-cookieconsent="marketing"></script><!-- Ausgezeichnet.org-Siegel: End -->
|
||||
|
||||
{% endblock javascripts %}
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@
|
|||
</div>
|
||||
</section><!-- end section -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript" data-cookieconsent="necessary">
|
||||
|
||||
checkDates = function(date) {
|
||||
formatted = date.format('DD.MM.YYYY');
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@
|
|||
</div>
|
||||
</section><!-- end section -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript" data-cookieconsent="necessary">
|
||||
|
||||
checkDates = function(date) {
|
||||
formatted = date.format('DD.MM.YYYY');
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<strong>Firma STERN TOURS GmbH</strong><p>
|
||||
Emser Str. 3<br>
|
||||
10719 Berlin<br>
|
||||
Vertreten d. d. Geschäftsführer Herrn Thomas Stern<br>
|
||||
Vertreten d. d. Geschäftsführung Leoni Stern<br>
|
||||
Telefon: +49 30 700 94 100<br>
|
||||
Telefax: +49 30 700 94 1044<br>
|
||||
E-Mail: <a href="mailto:stern@sterntours.de">stern@sterntours.de</a></p>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ STERN TOURS GmbH
|
|||
Emser Straße 3
|
||||
10719 Berlin
|
||||
|
||||
Geschäftsführer: Thomas Stern
|
||||
Geschäftsführung: Leoni Stern
|
||||
E-Mail: stern@stern-tours.de
|
||||
Tel.: 030 / 700 94 100
|
||||
Fax: 030 / 700 94 1044
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
{% javascripts '@AppBundle/Resources/public/js/travelProgram.js' %}
|
||||
<script src="{{ asset_url }}"></script>
|
||||
<script src="{{ asset_url }}" data-cookieconsent="necessary"></script>
|
||||
{% endjavascripts %}
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
werden uns dann umgehend bei Ihnen melden. Ihre Daten (Name, Telefonnummer etc.) werden ausschließlich zur
|
||||
Bearbeitung Ihrer Anfrage verwendet und nicht an Dritte weitergegeben.
|
||||
</p>
|
||||
<script src='https://www.google.com/recaptcha/api.js'></script>
|
||||
<script src="https://www.google.com/recaptcha/api.js" data-cookieconsent="preferences"></script>
|
||||
<div id="contact_form" class="contact_form">
|
||||
|
||||
<form id="contactform" action="/kontakt" name="contactform" method="post" data-toggle="validator">
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
<script src="{{ asset('js/fewoBooking-min.js?v') }}{{ get_file_last_time('js/fewoBooking-min.js') }}"></script>
|
||||
<script src="{{ asset('js/fewoBooking-min.js?v') }}{{ get_file_last_time('js/fewoBooking-min.js') }}" data-cookieconsent="necessary"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -75,76 +75,6 @@ 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');
|
||||
|
|
@ -198,7 +128,9 @@ jQuery(document).ready(function($) {
|
|||
$.get($(this).attr('href')).then(function(r) {
|
||||
modal$.find('.modal-body').html(r);
|
||||
modal$.find('a[data-type="youtube"]').on('click', function () {
|
||||
if (typeof youtube_loader === 'function') {
|
||||
youtube_loader(this);
|
||||
}
|
||||
});
|
||||
modal$.find('img.lozad').each(function () {
|
||||
$(this).attr('src', $(this).data('src'));
|
||||
|
|
@ -444,17 +376,6 @@ jQuery(document).ready(function($) {
|
|||
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")+")");
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
/* ==============================================
|
||||
OWL CAROUSEL -->
|
||||
=============================================== */
|
||||
|
|
@ -479,17 +400,6 @@ jQuery(document).ready(function($) {
|
|||
},
|
||||
});
|
||||
|
||||
/* 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 -->
|
||||
=============================================== */
|
||||
|
|
|
|||
67
src/AppBundle/Resources/public/js/youtube-loader.js
Normal file
67
src/AppBundle/Resources/public/js/youtube-loader.js
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
|
||||
|
||||
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);
|
||||
});
|
||||
17
web/js/_custom-min.js
vendored
Normal file
17
web/js/_custom-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
29
web/js/custom-min.js
vendored
29
web/js/custom-min.js
vendored
File diff suppressed because one or more lines are too long
1
web/js/youtube-loader-min.js
vendored
Normal file
1
web/js/youtube-loader-min.js
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
var youtube_loader=function(e){options={width:853,height:480,autoplay:1,rel:0,class:"youtube-video",frameborder:"0",allowfullscreen:!0},options.src=$(e).data("src")+"?rel="+options.rel+"&autoplay="+options.autoplay,ret=$(document.createElement("iframe"));var t=$(e).parent().parent();t.html(""),t.removeClass("video-wrap"),t.addClass("youtube"),t.append(ret),ret.attr(options)};jQuery('a[data-type="youtube"]').on("click",(function(){youtube_loader(this)}));var youtube_sterntours_video_closer=function(e){$("#show_sterntours_video_full").hide("slow",(function(){$(this).html("")})),$("#show_sterntours_video_sidebar").show()},youtube_sterntours_video_loader=function(e){$("#show_sterntours_video_sidebar").hide(),options={width:853,height:480,autoplay:1,rel:0,class:"youtube-video",frameborder:"0",allowfullscreen:!0},options.src=$(e).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 t=$("#show_sterntours_video_full");t.html(""),t.append(h1),div.append(ret),t.append(div),ret.attr(options),t.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)}));
|
||||
Loading…
Add table
Add a link
Reference in a new issue