var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /** * Baseurl * * @type {string} */ var baseurl; /** * Powermail main JavaScript for form validation */ jQuery(document).ready(function($) { // Read baseURL baseurl = getBaseUrl(); // Form validation if ($.fn.validationEngine) { $('.powermail_form').validationEngine(); } // Tabs if ($.fn.powermailTabs) { $('.powermail_morestep').powermailTabs(); } // Datepicker field if ($.fn.datepicker) { $('.powermail_date').datepicker({ dateFormat: $('.container_datepicker_dateformat:first').val(), dayNamesMin: [ $('.container_datepicker_day_so:first').val(), $('.container_datepicker_day_mo:first').val(), $('.container_datepicker_day_tu:first').val(), $('.container_datepicker_day_we:first').val(), $('.container_datepicker_day_th:first').val(), $('.container_datepicker_day_fr:first').val(), $('.container_datepicker_day_sa:first').val() ], monthNames: [ $('.container_datepicker_month_jan:first').val(), $('.container_datepicker_month_feb:first').val(), $('.container_datepicker_month_mar:first').val(), $('.container_datepicker_month_apr:first').val(), $('.container_datepicker_month_may:first').val(), $('.container_datepicker_month_jun:first').val(), $('.container_datepicker_month_jul:first').val(), $('.container_datepicker_month_aug:first').val(), $('.container_datepicker_month_sep:first').val(), $('.container_datepicker_month_oct:first').val(), $('.container_datepicker_month_nov:first').val(), $('.container_datepicker_month_dec:first').val() ], nextText: '>', prevText: '<', firstDay: 1 }); } // Location field if ($('.powermail_fieldwrap_location input').length > 0) { getLocationAndWrite(); } }); /** * Custom Validation of checkboxes for powermail * * @param object Current Field * @param object Given Rules * @param int Index * @param object Options * @return string Error Message */ function checkCheckboxes(field, rules, i, options) { var checked = 0; // no checkbox checked at the beginning var classes = field.attr('class').split(' '); jQuery('.' + classes[1]).each(function() { if (jQuery(this).attr('checked')) { checked = 1; } }); if (!checked) { return options.allrules.checkCheckboxes.alertText; } } /** * Getting the Location by the browser and write to inputform as address * * @return void */ function getLocationAndWrite() { if (navigator.geolocation) { // Read location from Browser navigator.geolocation.getCurrentPosition(function(position) { var lat = position.coords.latitude; var lng = position.coords.longitude; var url = baseurl + '/index.php' + '?eID=' + 'powermailEidGetLocation'; jQuery.ajax({ url: url, data: 'lat=' + lat + '&lng=' + lng, cache: false, beforeSend: function(jqXHR, settings) { jQuery('body').css('cursor', 'wait'); }, complete: function(jqXHR, textStatus) { jQuery('body').css('cursor', 'default'); }, success: function(data) { // return values if (data) { jQuery('.powermail_fieldwrap_location input').val(data); } } }); }); } } /** * Return BaseUrl as prefix * * @return string Base Url */ function getBaseUrl() { var baseurl; if (jQuery('base').length > 0) { baseurl = jQuery('base').attr('href'); } else { if (window.location.protocol != "https:") { baseurl = 'http://' + window.location.hostname; } else { baseurl = 'https://' + window.location.hostname; } } return baseurl; } $(function(){$('a[rel="bookmark"]').hide();$('a[rel="bookmark"]').each(function(){var a=$(this);$.get(a.attr("href"),function(b){a.attr("href",b.url).text(b.text);a.show();a.on("click",function(c){a.hide();c.preventDefault();$.get(a.attr("href"),function(d){a.attr("href",d.url).text(d.text);$removeParents=a.parents(".bookmark-remove");if($removeParents.length){if(d.code=="add"){$removeParents.remove()}}else{a.show()}})})})})}); jQuery(document).ready(function($) { // forum_last_post_summary var postSummarys = []; var postSummarysCount = 0; $('body').on('click', '[data-toggle]', function (e) { var $target = $(this).data('toggle'); $('#' + $target).toggle(); e.preventDefault(); }); $('.post_summary_box').each(function (index) { postSummarys[postSummarysCount] = {}; postSummarys[postSummarysCount]['type'] = $(this).data('type'); postSummarys[postSummarysCount]['hiddenimage'] = $(this).data('hiddenimage'); postSummarys[postSummarysCount]['uid'] = $(this).data('uid'); postSummarysCount = postSummarysCount + 1; }); // onlinepoint var displayedUser = []; var displayedUserCount = 0; $('.user_onlinepoint').each(function (index) { displayedUser[displayedUserCount] = $(this).data('uid'); displayedUserCount = displayedUserCount + 1; }); // topicIcons var displayedTopicIcons = []; var displayedTopicIconsCount = 0; $('.topic_icon').each(function (index) { displayedTopicIcons[displayedTopicIconsCount] = $(this).data('uid'); displayedTopicIconsCount = displayedTopicIconsCount + 1; }); // forumIcons var displayedForumIcons = []; var displayedForumIconsCount = 0; $('.forum_icon').each(function (index) { displayedForumIcons[displayedForumIconsCount] = $(this).data('uid'); displayedForumIconsCount = displayedForumIconsCount + 1; }); // forumMenus var displayedForumMenus = []; var displayedForumMenusCount = 0; $('.forum_menu').each(function (index) { displayedForumMenus[displayedForumMenusCount] = $(this).data('uid'); displayedForumMenusCount = displayedForumMenusCount + 1; }); // topicIcons var displayedTopics = []; var displayedTopicsCount = 0; $('.topic_entry').each(function (index) { displayedTopics[displayedTopicsCount] = $(this).data('uid'); displayedTopicsCount = displayedTopicsCount + 1; }); var displayOnlinebox = 0; if($('.user_online_box').length > 0){ displayOnlinebox = 1; } // post_item var displayedPosts = []; var displayedPostCount = 0; $('.post_item').each(function (index) { displayedPosts[displayedPostCount] = $(this).data('uid'); displayedPostCount = displayedPostCount + 1; }); // ads var displayedAds = {}; var displayedAdsIteration = 0; $('.ad-topic').each(function (index) { displayedAdsIteration = displayedAdsIteration + 1; }); $('.ad-topicdetail').each(function (index) { displayedAdsIteration = displayedAdsIteration + 1; }); displayedAds['count'] = displayedAdsIteration; displayedAds['mode'] = 0; $('.userInfo').each(function (index) { displayedAds['mode'] = 1; }); /* support old layout versions */ if(typeof typo3_forum_ajaxUrl === 'undefined' && typeof currentPageUid !== 'undefined' ){ typo3_forum_ajaxUrl = "?id=" + currentPageUid + "&eID=typo3_forum&language=de&tx_typo3forum_ajax[controller]=Ajax&tx_typo3forum_ajax[action]=main&tx_typo3forum_ajax[format]=json"; } if(typeof typo3_forum_ajaxUrl_helpful === 'undefined' && typeof currentPageUid !== 'undefined' ){ typo3_forum_ajaxUrl_helpful = "index.php?id=" + currentPageUid + "&eID=" + "__typo3_forum_eid__" + "&tx_typo3forum_ajax[controller]=Post" + "&tx_typo3forum_ajax[action]=" + "__typo3_forum_action__" + "&tx_typo3forum_ajax[post]=" + "__typo3_forum_post__"; } if (typeof typo3_forum_ajaxUrl !== 'undefined') { $.ajax({ type: "POST", url: typo3_forum_ajaxUrl, async: true, data: { "tx_typo3forum_ajax[displayedUser]": JSON.stringify(displayedUser), "tx_typo3forum_ajax[postSummarys]": JSON.stringify(postSummarys), "tx_typo3forum_ajax[topicIcons]": JSON.stringify(displayedTopicIcons), "tx_typo3forum_ajax[forumIcons]": JSON.stringify(displayedForumIcons), "tx_typo3forum_ajax[displayedTopics]": JSON.stringify(displayedTopics), "tx_typo3forum_ajax[displayOnlinebox]": JSON.stringify(displayOnlinebox), "tx_typo3forum_ajax[displayedForumMenus]": JSON.stringify(displayedForumMenus), "tx_typo3forum_ajax[displayedPosts]": JSON.stringify(displayedPosts), "tx_typo3forum_ajax[displayedAds]": JSON.stringify(displayedAds) }, success: function (data) { var json = $.parseJSON(data); if (json.topicIcons) { json.topicIcons.forEach(function (entry) { $('.topic_icon[data-uid="' + entry.uid + '"]').html(entry.html); }); } if (json.forumMenus) { json.forumMenus.forEach(function (entry) { $('.forum_menu[data-uid="' + entry.uid + '"]').html(entry.html); }); } if (json.forumIcons) { json.forumIcons.forEach(function (entry) { $('.forum_icon[data-uid="' + entry.uid + '"]').html(entry.html); }); } if (json.postSummarys) { json.postSummarys.forEach(function (entry) { $('.post_summary_box[data-uid="' + entry.uid + '"][data-type="' + entry.type + '"]').html(entry.html); }); } if (json.topics) { json.topics.forEach(function (entry) { $('.topic_reply_count[data-uid="' + entry.uid + '"]').html(entry.replyCount); $('.topic_list_menu[data-uid="' + entry.uid + '"]').html(entry.topicListMenu); }); } if (json.posts) { json.posts.forEach(function (entry) { $('.postHelpfulCount_' + entry.uid + '').html(entry.postHelpfulCount); $('.postUserHelpfulCount_' + entry.author.uid + '').html(entry.postUserHelpfulCount); $('.post_helpful_button[data-uid="' + entry.uid + '"]').html(entry.postHelpfulButton); $('.post_edit_link[data-uid="' + entry.uid + '"]').html(entry.postEditLink); }); } if (json.onlineUser) { json.onlineUser.forEach(function (entry) { $('.user_onlinepoint[data-uid="' + entry + '"]').removeClass('iconset-14-user-offline'); $('.user_onlinepoint[data-uid="' + entry + '"]').addClass('iconset-14-user-online'); }); } if (json.onlineBox) { $('.user_online_box .items').html(json.onlineBox.html); $('.user_online_count').html(json.onlineBox.count); } if (json.ads) { if ($('#infomation-' + json.ads.position).length > 0) { $('#infomation-' + json.ads.position).html(json.ads.html).show(); } } $('.tx-typo3forum-helpfull-btn').click(function () { var targetElement = this; var counttargetVal = $('.' + $(targetElement).attr('data-counttarget')).html(); var countusertargetVal = $('.' + $(targetElement).attr('data-countusertarget')).html(); var type = 'add'; var action = 'addSupporter'; var eID = $(this).attr('data-eid'); var post = $(this).attr('data-post'); if ($(targetElement).hasClass('supported')) { type = 'remove'; action = 'removeSupporter'; } $.ajax({ type: "GET", url: typo3_forum_ajaxUrl_helpful .replace('__typo3_forum_eid__', eID) .replace('__typo3_forum_action__', action) .replace('__typo3_forum_post__',post), async: false, beforeSend: function (msg) { $('.' + $(targetElement).attr('data-counttarget')).html('
'); $('.' + $(targetElement).attr('data-countusertarget')).html('
'); }, success: function (data) { var json = $.parseJSON(data); if (json.error) { $('.' + $(targetElement).attr('data-counttarget')).html(counttargetVal); $('.' + $(targetElement).attr('data-countusertarget')).html(countusertargetVal); return } if (type == 'add') { $(targetElement).addClass('supported'); } else { if ($(targetElement).hasClass('supported')) { $(targetElement).removeClass('supported'); } } $('.' + $(targetElement).attr('data-counttarget')).html(json.postHelpfulCount); $('.' + $(targetElement).attr('data-countusertarget')).html(json.userHelpfulCount); } }); }); } }); } }); $(document).ready(function() { PageContentWidth.init(); responsive_scripts(); scrollToTop.init(); Slider.init(); AutoComplete.init(); oneClickSolution.init(); $(window).resize(function() { responsive_scripts(); }); }); // --- fns called depending on device-width --- // function responsive_scripts(){ var viewport = get_viewport_width(); if (viewport > 1024) {} else if (viewport <= 1024) {} if (viewport <= 660) { MobileNav.init(); } else {} if (viewport <= 480) {} else if (viewport > 480) {} if (viewport == 480 && get_orientation() == 'landscape') {} if (viewport <= 480 && get_orientation() == 'portrait') {} else if (viewport <= 768 && get_orientation() == 'portrait') {} else if (viewport >= 768 && get_orientation() == 'landscape') {} } var oneClickSolution = { el: { fb_plugin: $('.fb-page'), overlay_txt: $('

Wenn Sie hier klicken, werden News von unserer Facebook-Seite angezeigt. Dadurch kann es sein, dass Ihre Nutzerdaten von Facebook erfasst und gespeichert werden.

'), overlay: $('
'), overlay_btn: $(''), fb_sdk_markup: $('
'), loader: $('
') }, init: function() { oneClickSolution.bindUIActions(); if (oneClickSolution.el.fb_plugin.length) { // add overlay oneClickSolution.el .fb_plugin .before(oneClickSolution.el.overlay); // add overlay-text oneClickSolution.el .overlay .children('.wrap-content') .html(oneClickSolution.el.overlay_txt) .append(oneClickSolution.el.overlay_btn); // fadeIn overlay-text setTimeout(function () { oneClickSolution.el .overlay .children('span') .fadeIn(200) .css('display', 'inline-block'); }, 1000); } }, bindUIActions: function() { oneClickSolution.el .overlay_btn .off('click') .on('click', function(e) { e.preventDefault(); // fade-out .wrap-content oneClickSolution.el .overlay .fadeOut(200); setTimeout(function () { oneClickSolution.el .overlay .html(oneClickSolution.el.loader) .fadeIn(200); }, 200); setTimeout(function () { oneClickSolution.el .overlay .fadeOut(200); oneClickSolution.el .fb_plugin .children('blockquote') .fadeIn(200); }, 2000); // load FBSDK oneClickSolution.loadFBSDK(); }); }, loadFBSDK: function() { (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//web.archive.org/web/20170920114230/https://connect.facebook.net/de_DE/sdk.js#xfbml=1&version=v2.9"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); } }; // workaround for setting width of middle-column .page-content in dependency if .teaser-column is present // templates need to be reworked before this can be removed var PageContentWidth = { el: { page_content: $('.page-content'), teaser_column: $('.teaser-column'), news_list: $('#news-list') }, init: function() { if ( PageContentWidth.el.teaser_column && ! PageContentWidth.el.teaser_column){ //console.log(PageContentWidth.el.teaser_column); PageContentWidth.el.page_content.addClass('no-teaser-column'); } else if (PageContentWidth.el.news_list && PageContentWidth.el.teaser_column){ //console.log(PageContentWidth.el.news_list); PageContentWidth.el.page_content.removeClass('no-teaser-column'); } else { //console.log('nothing'); PageContentWidth.el.page_content.removeClass('no-teaser-column'); } }, bindUIActions: function() {}, reset: function() {} }; var AutoComplete = { el : {}, init: function() { if ( $('.tx-solr-q').length ) { $('.tx-solr-q').autocomplete({ source: function (request, response) { $.ajax({ url: tx_solr_suggestUrl, dataType: 'json', data: { termLowercase: request.term.toLowerCase(), termOriginal: request.term, L: $('div.tx-solr input[name="L"]').val() }, success: function (data) { var rs = [], output = []; $.each(data, function (term, termIndex) { var unformatted_label = term; output.push({ label: unformatted_label.replace(new RegExp('(?![^&;]+;)(?!<[^<>]*)(' + $.ui.autocomplete.escapeRegex(request.term) + ')(?![^<>]*>)(?![^&;]+;)', 'gi'), '$1'), value: term }); }); response(output); } }) }, select: function (event, ui) { this.value = ui.item.value; $(event.target).closest('form').submit(); }, delay: 0, minLength: 2 }); // solr search: autosuggest $.ui.autocomplete.prototype._renderItem = function (ul, item) { return $("
  • ") .data("item.autocomplete", item) .append("" + item.label + "") .appendTo(ul); }; }; }, bindUIActions: {} }; var MobileNav = { el : {}, init: function () { $('.toprow').prepend($('.searchbox')); if ( !$('.nav-main-toggle').length ) { $('.nav-main').prepend(''); } MobileNav.bindUiActions(); }, bindUiActions: function () { $('.nav-main-toggle') .off('click') .on('click', function () { $('.nav-main').toggleClass('on'); }); } }; var Slider = { init: function () { $('.image-slider').each(function () { var _gw = $(this).innerWidth(); $(_is = $(this)) .width(_gw * $(this).find('> li').length).wrap($('
    ').addClass($(this).attr('class'))); $(this).removeAttr('class').after(_ip = $('