<div class="navbar-footer">
<div class="imprint">
© {{ 'now'|date('Y') }} • 7SCHWABEN • <a href="/{{ locale }}/footer/impressum.php">{{ 'imprint' | trans }}</a> • <a href="/{{ locale }}/footer/datenschutz.php">{{ 'privacy' | trans }}</a>
</div>
</div>
<div id="footer-switch" style="height:1px; background:transparent;">
</div>
<a id="whatsapp-widget" href="https://wa.me/+4971259798725" target="_blank">
</a>
<a id="booking-widget" href="/{{ locale }}/buchen.php" target="_blank">{{ 'book-now'|trans }}</a>
<footer>
<div class="container footer-contact">
<div class="row">
<div class="col-12 col-xl-3">
<span class="lsf">phone</span><span class="contact-item"><a href="tel:+4971259798725" target="_blank">+49 7125 9798725</a></span>
</div>
<div class="col-12 col-xl-3">
<span class="lsf">mail</span><span class="contact-item"><a href="mailto:kontakt@das7schwaben.de" target="_blank">kontakt@das<strong class="condensed"><span class="red">7</span>SCHWABEN</strong>.de</a></span>
</div>
<div class="col-12 col-xl-4">
<span class="lsf">pin</span><span class="contact-item"><a href="https://www.google.com/maps/place/Espachstra%C3%9Fe+7,+72574+Bad+Urach/@48.49315,9.4049853,16z/data=!4m5!3m4!1s0x47998e01537a28a5:0x1266f5a9e482055e!8m2!3d48.49082!4d9.402322" target="_blank">Espachstraße 7, 72574 Bad Urach</a></span>
</div>
<div class="col-12 col-xl-2">
<span class="contact-item">
<a class="social-media-icon" href="https://instagram.com/7schwaben_ferienwohnungen" target="_blank"><span class="lsf">instagram</span></a>
</span>
<span class="contact-item">
<a class="social-media-icon" href="https://wa.me/+4971259798725" target="_blank"><span class="whatsapp-greyscale"></span></a>
</span>
</div>
</div>
</div>
</footer>
<a id="scrollTop" class="scroll-to-top" href="#body"><span class="lsf">up</span></a>
<!-- Modals -->
<div class="modal fade" id="bookingWidget" tabindex="-1" aria-labelledby="bookingWidgetLabel" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="bookingWidgetLabel">7SCHWABEN Apartment buchen</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<iframe src="https://tbooking.toubiz.de/FIT00020070055485969/tbooking?globalReset=1&lang=de" title="7SCHWABEN Buchung" frameborder="0" allowfullscreen>
</iframe>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Schließen</button>
</div>
</div>
</div>
</div>
<!-- let's start javascripting -->
<script src="{{ constant('SITE_TEMPLATE_PATH') }}/js/jquery-3.6.0.min.js"></script>
<script src="{{ constant('SITE_TEMPLATE_PATH') }}/js/bootstrap.bundle.min.js"></script>
<script src="{{ constant('SITE_TEMPLATE_PATH') }}/js/jquery-scrollto.js"></script>
<script src="{{ constant('SITE_TEMPLATE_PATH') }}/js/jquery.inview.min.js"></script>
<script src="{{ constant('SITE_TEMPLATE_PATH') }}/js/jquery.fancybox.min.js"></script>
<script type="text/javascript" src="{{ constant('SITE_TEMPLATE_PATH') }}/plugins/slick/slick.js"></script>
<script>
var contents = [];
contents[1] = '<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d7923.615022999031!2d9.398405535559164!3d48.491261631762384!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47998e01537a28a5%3A0x1266f5a9e482055e!2sEspachstra%C3%9Fe%207%2C%2072574%20Bad%20Urach!5e0!3m2!1sen!2sde!4v1636115437035!5m2!1sen!2sde" style="width:100%; height:400px; border:0;" allowfullscreen="" loading="lazy"></iframe>';
// console.log('1: ' + contents[1]);
$().ready(function() {
// get enviroment dimensions
var viewportHeight = $(window).height();
var viewportWidth = $(window).width();
var displayHeight = $(document).height();
// re-adjust on resize ...
$(window).resize(function()
{
var viewportHeight = $(window).height();
var viewportWidth = $(document).width();
});
// navbar toggler
$('#nav-icon').click(function(){
$(this).toggleClass('open');
});
$('.navbar-toggler').click(function() {
var n='.'+$(this).data('toggle');
$('header').toggleClass('header-transparent');
$(this).toggleClass('active-toggler');
$(n).fadeToggle();
});
// scroll to
$('a[href*=\\#]').bind("click", function(event) {
event.preventDefault();
var target = $(this).attr("href");
if (!target.match(/slider(.*)/i)) {
$('html,body').animate({
scrollTop: $(target).offset().top
}, 2000);
}
});
// animate on scroll
$('.scroll-animated').bind('inview', function(event, visible) {
if ( visible ) {
$(this).animate({
top: '0px',
opacity: 1
}, 600);
}
});
// animate footer
$('#footer-switch').bind('inview', function(event, visible) {
if ( visible ) {
$('.navbar-footer .imprint').fadeIn();
$('footer').animate({
height : '120px'
},300);
}
});
// animate scroll top
var s=false; var h=false;
var hl = (viewportWidth < 1200) ? '1.5rem' : '3rem';
var hr = (viewportWidth < 1200) ? '1rem' : '1.65rem';
$(window).scroll(function() {
var y=$(window).scrollTop();
// scroll top btn
if ( y > (viewportHeight * 2) && !s ) {
s = true;
$('#scrollTop').fadeIn(500);
}
if ( s && y < viewportHeight ) {
s = false;
$('#scrollTop').fadeOut(500);
}
// header resize
if ( y > viewportHeight ) {
h = true;
$('header').stop().animate({
paddingTop : '1rem'
}, 300);
$('.header-options').stop().animate({
top : '0rem'
}, 300);
}
if ( h && y < viewportHeight)
{
h = false;
$('header').stop().animate({
paddingTop : hl
}, 300);
$('.header-options').stop().animate({
top : hr
}, 300);
}
});
// Slick carousel
$('.appartments-slider').slick({
dots: true,
infinite: true,
speed: 300,
slidesToShow: 1,
centerMode: true,
variableWidth: true,
initialSlide: 0,
mobileFirst: true,
pauseOnFocus: true,
autoplay: true
});
$('.gallery-slider').slick({
dots: false,
infinite: true,
speed: 500,
slidesToShow: 1,
centerMode: false,
variableWidth: true,
initialSlide: 0,
mobileFirst: true,
pauseOnFocus: true,
autoplay: true
});
// check form input
var formComplete = false;
$('.check-finput').keyup(function() {
$('.check-finput').each(function() {
// console.log('Check input: ' + $(this).attr('name') + ' -> ' + $(this).val() );
if ( $(this).val() != '' )
formComplete = true;
else
formComplete = false;
});
if ( formComplete === true )
$('#submitContactForm').animate({opacity:1}, 300); // fadeIn();
else
$('#submitContactForm').animate({opacity:0}, 300); // fadeOut();
});
// consent mandatorys
$('.consent-mandatory').each(function() {
// console.log('Check: ' + $(this).data('content-id') );
var c = $(this).data('content-id');
var i = $(this).attr('id');
if (getCookie('_googleMaps')!='1') {
$(this).html('<div class="google-consent">{{ 'consent-google-maps' | trans }}<br /><br /><a class="btn btn-default consent-accept-google" data-elem-id="' + i + '" data-content-id="' + c + '">{{ 'show-content' | trans }}</a></div>');
}
});
$('.consent-accept-google').click(function() {
setCookie('_googleMaps', '1', 30);
var e = '#'+$(this).data('elem-id');
var c = $(this).data('content-id');
$(e).html(contents[c]);
});
$('.widget-toggler').click(function() {
var e = '#' + $(this).data('toggle');
$(this).toggleClass('minified-toggler');
$(e).find('.widget-content').fadeToggle(100);
$(e).toggleClass('minified-widget');
});
// 7Schwaben brand
// $("body").html( $("body").html().replace(/\!7SCHWABEN\!/g,'<strong class="condensed"><span class="red">7</span>SCHWABEN</strong>') );
});
</script>
<script language="javascript">
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
function getCookie(c_name) {
var i, x, y, ARRcookies = document.cookie.split(";");
for (i = 0; i < ARRcookies.length; i++) {
x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("="));
y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1);
x = x.replace(/^\s+|\s+$/g, "");
if (x == c_name) {
return unescape(y);
}
}
}
function validateEmail(email)
{
// var mailformat = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
if( email.match( /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ ) )
return true;
else
return false;
}
</script>