|<\?(?:php)?[\s\S]*?\?>/gi; return input.replace(commentsAndPhpTags, '') .replace(tags, function ($0, $1) { return allowed.indexOf('<' + $1.toLowerCase() + '>') > -1 ? $0 : ''; }); } // Nach Datenlatt AJAX leere Tabs entfernen if( $('#tabs-1').length > 0 ){ $( document ).ajaxComplete(function() { var IdMitContent = ""; var text = ""; $('.tabs div[id^=tabs]').each(function(){ html = $.trim( $(this).html() ); text = html.replace(/]*>([^<]*)<\/style>/, ""); text = html.replace(/]*>([^<]*)<\/script>/, ""); text = strip_tags(text); var laengehtml = text.length; var id = '"#'; id += $(this).attr('id'); id += '"'; if( laengehtml < 20 ) { $('.tabs ul a[href^='+id+']').remove(); } else{ if(IdMitContent == ""){ IdMitContent = id; } } }); // Den ersten vollen Reiter öffnen - Vorsicht bei ID Abgleich id2 = $('li > a[href='+IdMitContent+']').attr('id'); $("#"+id2).click(); }); } if($('.questionnaire').length == 0 && $('#Formular').length == 0){ $("#width_tmp").html($('select option:selected').text()); var widthneeded = $("#width_tmp").width()+35; if($('select#gruppenbezeichnung').length > 0){ $('select#gruppenbezeichnung').width(widthneeded); } if($('select#hersteller').length > 0){ $('select#hersteller').width(widthneeded); } $('select#gruppenbezeichnung,select#hersteller').change(function(){ $("#width_tmp").html($('select option:selected').text()); var widthneeded = $("#width_tmp").width()+35; $(this).width(widthneeded); }); } if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { $("#cartlink").html(''); } if( navigator.userAgent.match(/iPhone|iPad|iPod/i) ) { $("#Suchformular select").after(''); } $("#btnBackToAdressForm").click(function () { //$('input#btnSubmit').val(''); $('input#inputCheckAdressData').val(''); $('#Formular').attr('action', 'shopping-cart.html?step=2&prevStep=3'); $("#Formular").submit(); }); }); $(window).resize(function() { //$("#ui-id-1").css("display","none"); }); -->