{ "@context": "http://schema.org/", "@type": "Review", "itemReviewed": { "@type": "Product", "name": "Ring aus Onyx Fingerschmuck schwarz glatt unisex" }, "reviewRating": { "@type": "Rating", "bestRating": "5", "worstRating": "1", "ratingValue": "4.95" }, "publisher": { "@type": "Organization", "name": "Schmuck Krone" } } function runAfterElementExists(jquery_selector, callback) {var checker = window.setInterval(function() {if ($(jquery_selector).length) {clearInterval(checker);callback();}}, 500);} $(document).ready(function(){var oldArtNr = $('.art-no>span:nth-child(2)').html();var newArtNr = oldArtNr.split('-', 3);runAfterElementExists('select.custom-select', function() {if($("select.custom-select option").val() == '-1'){$('.info>li.av').hide();if (newArtNr.length > 2) {$('.art-no>span:nth-child(2)').after('' + newArtNr[0] +'-'+ newArtNr[1] +'').hide();} else{$('.art-no>span:nth-child(2)').after(''+ newArtNr[0] +'').hide();}};$("select.custom-select").change(function() {$('.newnr').remove();$('.art-no>span:nth-child(2)').delay( 1500 ).show();$('.add-to-basket-container').removeClass("disabled");$('.info>li.av').delay( 1500 ).show();});});$('input[name="variationid"]').val('0602007-58');$(".ItemQuestionForm form > input[data-mail='subject']").val("Artikel-Nummer: " + oldArtNr); $('.ItemQuestionForm input[name="Artikelnr."]').attr('disabled', 'disabled').val(oldArtNr);$("select.custom-select").change(function() {$(".ItemQuestionForm form > input[data-mail='subject']").val("Artikel-Nummer: " + oldArtNr);}); var averageCount=$('.feedback-average-count').text();$('.sectionHeader .reviewCountTarget').html(averageCount);});