/* iFrame autoresize start */ function resizeMe(obj){ margin = 30; docHeight = mainContent.document.height || mainContent.document.body.scrollHeight obj.style.height = docHeight+margin + 'px' } var options = { width: 'fill', height: 'auto', autoUpdate: true }; jQuery(document).ready(function() { jQuery('.iframe').iframeResize(options); }); /* box autoheight */ function autoheight(attribute) { max = 0; jQuery(attribute).each(function(index) { if ($(this).height() > max) { max = ($(this).height()); } }); jQuery('div.tarifDescription').css('height', max); } /* Textarea autoresize start */ jQuery(document).ready(function() { $('textarea#uid3').autoResize({ // On resize: onResize : function() { $(this).css({opacity:0.8}); }, // After resize: animateCallback : function() { $(this).css({opacity:1}); }, // Quite slow animation: animateDuration : 300, // More extra space: limit : 800 }); }); /* CSS background-size IE hack & title Attribut hinzufügen (alle Broser) */ jQuery(document).ready(function(index) { if($.browser.msie) { // alle Listenelemente raussuchen $('.ui-tabs-nav .ui-tabs-nav-item span').each( function(index) { var cssurl = $(this).css('background-image'); //den span um das Bild formatiern $(this).css({ 'padding': '0', 'margin': '0px', 'overflow': 'hidden', 'width': '61px', 'height': '41px' }); //Bildquelle auslesen und Bild erstellen var url = cssurl.substr(5); url = url.replace('")', ''); var count = index + 1; $(this).html(""+$("); // Bild formatieren $("#nav-fragment-"+count+" img").css({ 'height': '41px', 'float': 'right' }); }); } else { $('.ui-tabs-nav .ui-tabs-nav-item span').each( function(index) { var count = index + 1; $(this).attr('title', $('#fragment-'+count+' h2')[0].innerHTML); }); } });