Buchungs­anfrage

Urlaub auf dem Bauernhof in Algund

$(document).ready(function () { if($('.ac_mandatory_information').length > 0) { if($('html').attr('lang') == 'it'){ $('.ac_mandatory_information').text('I campi indicati con * sono obbligatori'); }else if($('html').attr('lang') == 'en') { $('.ac_mandatory_information').text('Fields marked with * are required'); }else { $('.ac_mandatory_information').text('*Bitte füllen Sie alle Pflichtfelder aus'); } } var $locationHost = document.location.host; $('.danke').hide(); $('.form-enquiry').enquiryform({ ac_apikey: '912772B612C838BE', ac_delay: false, ac_allowchildage: false, ac_type: 'all', ac_environment: 'production', ac_tracking: { code: '0001', context: 'WEBSITE', value: 'aries.creative', resstatus: 'Commit', resid_type: '13', resid_value: 'none', resid_source: $locationHost, resid_sourcecontext: 'enquiry form' }, ac_ml: { "de": { "enquiry": "Buchungsanfrage" }, "it": { "enquiry": "Richiesta di prenotazione" } }, error: { } }); }); function getQueryParams(qs) { qs = qs.split("+").join(" "); var params = {}, tokens, re = /[?&]?([^=]+)=([^&]*)/g; while (tokens = re.exec(qs)) { params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]); } return params; } function mCallback(arg0, arg1) { var mL = 'en'; if ($('html').attr('lang')) { mL = $('html').attr('lang'); } var l = 0; if ($('html').data('l')) { var l = $('html').data('l'); } if (arg0 == 'loaded') { $('.' + $('.form-enquiry').attr('class') + ' .btn_submit').prop("disabled", false); //window.location.replace(window.location.href); if ($('DIV.text-' + mL).length > 0) { if ($('FORM.form-enquiry').length > 0) { $('FORM.form-enquiry').remove(); } $('DIV.text-' + mL).show(); scroll_down(0); } /* dataLayer.push({ 'event': 'gaEvent' + mL, 'eventCategory': 'pageview', 'eventAction': 'enquiry', 'eventLabel': 'Abschluss Anfrage: ' + mL }); */ if (typeof ga === 'function') { ga('send', 'pageview', 'Abschluss Buchungsanfrage: ' + mL); } else { console.log('No google analytics! TagManager?'); } //var current = 'DZ'; //$('.cb_rooms .dropdown-menu').find("[data-roomtypecode='" + current + "'] a").click(); //.data('roomtypecode') //.click (); //roomtypecode } // room data if (arg0 == 'room') { var $obj = arg1.combobox('selectedItem'); var getData = 'index.php?id=31&L=' + l + '&ADMCMD_cooluri=1'; /* var suites = ["JS", "FS", "PS", "HWS", "FSN", "FSS"]; for (var y = 0; y < suites.length; y++) { if ($obj.roomtypecode == suites[y]) { getData = 'index.php?id=61&L=' + l + '&ADMCMD_cooluri=1'; } } */ $.get(getData, function (data) { if (data) { var content = $('
').append(data); if (content.find('.room_data').length > 0) { var roomData = content.find('.room_data'); $.each(roomData, function (index, room) { string_a = ($obj.roomtypecode).toString(); string_b = $(this).attr('data-room-roomtypecode'); var match = string_a.localeCompare(string_b); if (match === 0) { var mRoom = $(roomData[index]).clone(); var label_first = $(arg1).parent().parent().parent().next().find('DIV.btn-group-detail'); var roomTitle = $(mRoom).attr('data-room-title'); var roomSubtitle = $(mRoom).attr('data-room-subtitle'); var roomText = $(mRoom).attr('data-room-text'); var roomDescription = $(mRoom).attr('data-room-description'); var roomImg = $(mRoom).attr('data-room-img'); roomImg = roomImg.split(','); var slideshow = ''; var countImg = 0; $(roomImg).each(function (eimg) { if (roomImg[eimg] != '') { slideshow += '' + ''; countImg++; } }); var pager = ''; if (countImg > 1) { pager = '
' + '
' + '
' + '
'; } var room = '' + '
' + '
' + '
' + '
' + '
' + roomTitle + '
' + '
' + roomSubtitle + '
' + '
' + '
' + roomText + '
' + '
' + '
' + '
' + ' ' + ' ' + pager + '
' + '
'; if ($('.modal_' + string_b).length < 1) { var mM = $('#myModal').clone(); mM.addClass('modal_' + string_b); mM.insertAfter($('#myModal')); mM.removeAttr('id'); $('.modal_' + string_b + ' .modal-body').append(room); $('.room_detail_slideshow_' + index).cycle(); } var fotoDetails = 'Foto & Details'; if($('html').attr('lang') == 'it'){ fotoDetails = 'Foto e dettagli'; }else if($('html').attr('lang') == 'en'){ fotoDetails = 'Pictures and details'; } var detail = $('
Unsere Highlights auf einen Blick
dolor sit amet