$(document).ready(function(){ $('.tooltip').tooltipster({ contentCloning: true, delay: 1, triggerClose: { click: true, scroll: true }, delayTouch: [5, 10000], maxWidth: 500 }); var winHeight = $(window).height(); var winwidth = $(window).width(); equalheight('.vertrag.vertragswahl-section1 .orange-wrapp') $('.wrapper').css('minHeight' , winHeight); if(winwidth < 767 ){ $(' Tarifübersicht').insertAfter('.slider-home') } if( $('#fpr').length > 0 ) { var fp = new Muhvar({screen_resolution: true, ie_activex: true}); document.getElementById('fpr').value = fp.get(); } $('.menu-wrapp').click(function(){ $(this).toggleClass('active') $('.ul-wrapp').slideToggle(); }); $('.policy').click(function(e){ e.preventDefault(); $(this).toggleClass('active') $('.policynote').slideToggle(); }); $('#vertragsende').change(function(){ $('p.vertragsende').show(); $('p.schnellstmoglich').hide(); }); $('#schnellstmoglich').change(function(){ $('p.vertragsende').hide(); $('p.schnellstmoglich').show(); }); if (winwidth < 767){ $('html').click(function(){ $('.ul-wrapp').slideUp(); $('.menu-wrapp ').removeClass('active') }); $('.ul-wrapp').click(function(e){ e.stopPropagation(); }); $('.menu-wrapp ').click(function(e){ e.stopPropagation(); }); } /* ***************************************tab******************************************* */ $(function() { $("#tabs").tabs(); $( "#more-tabs" ).tabs(); $( "#more-tabs1" ).tabs(); $( "#more-tabs2" ).tabs(); $("html, body").animate({ scrollTop: 0 }, 0); }); $('.changing.monthly ').hide(); $('.checkbox-wrapper > div').click(function(){ $(this).parents('.items').removeClass(inputValue) var inputValue = $(this).find('input[type="radio"]').attr("class"); $(this).parents('.items').parent().removeClass('monthly') $(this).parents('.items').parent().removeClass('month24') $(this).parents('.items').parent().addClass(inputValue) /* var targetBox = $("." + inputValue); $(".changing").not(targetBox).hide(); $(targetBox).show(); */ }); /* ***************************************tab end******************************************* */ $('#rufnummernportierung').change(function() { $('.Rufnummernportierung-checked').slideToggle(); $('.Angaben-input input').val('') $('.Rufnummernportierung-unchecked input').val('') }); }); equalheight = function(container){ var currentTallest = 0, currentRowStart = 0, rowDivs = new Array(), $el, topPosition = 0; $(container).each(function() { $el = $(this); $($el).height('auto') topPostion = $el.position().top; if (currentRowStart != topPostion) { for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { rowDivs[currentDiv].height(currentTallest); } rowDivs.length = 0; // empty the array currentRowStart = topPostion; currentTallest = $el.height(); rowDivs.push($el); } else { rowDivs.push($el); currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); } for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { rowDivs[currentDiv].height(currentTallest); } }); } $(window).load(function() { equalheight('.eq '); }); $(window).resize(function(){ equalheight('.eq '); equalheight('.vertrag.vertragswahl-section1 .orange-wrapp') });