$(document).ready(function(){ $("nav>ul>li:has('ul')").append(""); $("nav>ul>li").hover( function() {if ($(window).width() > 768) { $(this).find('ul').stop().slideDown('slow'); }}, function() {if ($(window).width() > 768) { $(this).find('ul').stop().slideUp('slow'); }}); $('nav ul li span').click(function(e){ e.stopPropagation(); $(this).parents('li').find('>ul').slideToggle(); $(this).parents('li').siblings('li').find('>ul').slideUp(800); }); $('.hamburger').click(function(){ if($(this).hasClass('rotate')) { $('nav > ul').slideUp(800); $(this).removeClass('rotate'); } else { $('nav > ul').slideDown(); $(this).addClass('rotate'); } }); $('main').click(function(){if($(window).width()<768){ $('nav > ul').slideUp(800); $('.hamburger').removeClass('rotate'); } }); $('.moreinfo a').click(function(e){ e.preventDefault() $('.vortile ul li .popup2').fadeToggle(); return false }); $(document).click(function() { $('.vortile ul li .popup2').fadeOut(); }); $('.innerheading3 h3 span img').hover(function(){ $('.popup').fadeIn(500); },function() { $('.popup').fadeOut(500); }) /*$('.manualcontrol:eq(0) .simname').attr("style","background : #3a3a3a!important");*/ $(document).on('mouseover','.manualcontrol',function(){ $('.flexslider').flexslider($(this).index()); $('.manualcontrol').find('.simname').attr("style","background : #b61019;"); $(this).find(".simname").attr("style","background : #3a3a3a!important"); }).mouseout(function() { var pathname = window.location.pathname; var last_segment = pathname.substr(pathname.lastIndexOf('/') + 1); if(last_segment == "" || last_segment == "index.html") $('.flexslider').flexslider("play"); }); $('#parentHorizontalTab').easyResponsiveTabs({ type: 'default', //Types: default, vertical, accordion width: 'auto', //auto or any width like 600px fit: true, // 100% fit in a container tabidentify: 'hor_1', // The tab groups identifier activate: function(event) { // Callback function if tab is switched var $tab = $(this); var $info = $('#nested-tabInfo'); var $name = $('span', $info); $name.text($tab.text()); $info.show(); } }); // Child Tab $('#ChildVerticalTab_1').easyResponsiveTabs({ type: 'default', width: 'auto', fit: true, tabidentify: 'ver_1', // The tab groups identifier activetab_bg: '#fff', // background color for active tabs in this group inactive_bg: '#F5F5F5', // background color for inactive tabs in this group active_border_color: '#c1c1c1', // border color for active tabs heads in this group active_content_border_color: '#5AB1D0' // border color for active tabs contect in this group so that it matches the tab head border }); $('#ChildVerticalTab_3').easyResponsiveTabs({ type: 'default', width: 'auto', fit: true, tabidentify: 'ver_1', // The tab groups identifier activetab_bg: '#fff', // background color for active tabs in this group inactive_bg: '#F5F5F5', // background color for inactive tabs in this group active_border_color: '#c1c1c1', // border color for active tabs heads in this group active_content_border_color: '#5AB1D0' // border color for active tabs contect in this group so that it matches the tab head border }); $('#ChildVerticalTab_2').easyResponsiveTabs({ type: 'default', width: 'auto', fit: true, tabidentify: 'ver_1', // The tab groups identifier activetab_bg: '#fff', // background color for active tabs in this group inactive_bg: '#F5F5F5', // background color for inactive tabs in this group active_border_color: '#c1c1c1', // border color for active tabs heads in this group active_content_border_color: '#5AB1D0' // border color for active tabs contect in this group so that it matches the tab head border }); $("#hinweisfussnote").click(function() { if ($("#fussnote").is(":hidden")) { $("#fussnote").slideDown("slow"); $("#hinweisfussnote").html('

* Weitere Hinweise und Fußnoten einblenden

'); } else { $("#fussnote").slideUp("slow"); $("#hinweisfussnote").html('

* Weitere Hinweise und Fußnoten einblenden

'); } }); $('.fancybox').fancybox(); $('.fancybox_pdf').fancybox({ openEffect : 'none', closeEffect : 'none', width: 850, height: 850, iframe : { preload: false } }); $("[data-fancybox]").fancybox({ padding: 0, helpers: { overlay: { locked: false } } }) jQuery("#order").validationEngine({ ajaxFormValidationMethod: 'post' }); });