pexels-ketut-subiyanto-4759930.jpg

Personenbeine liegen entspannt im gemütlichen Bett.

'); } }); commentids.sort(Numsort); commentids.reverse(); max = commentids[0]; createCookie("newestComment",max,9999); // komprimieren var c = jQuery(".comment_text").length; jQuery(".comment_text").each(function() { var h = jQuery(this).height()+40; if((c >10 && h>140) || (h>400)){ jQuery(this).attr("origHeight",h).css("height","99px").addClass("short_comment").after("
+ Kommentar ganz anzeigen
"); jQuery(this).next().prepend(jQuery(this).find(".comment-reply-link")); } }); jQuery(".comment-more h6").click(function(){ if(jQuery(this).parent().prev().hasClass("short_comment")){ jQuery(this).html("- Kommentar verkleinern"); h = jQuery(this).parent().prev().attr("origHeight"); jQuery(this).parent().prev().css("height","auto"); h = jQuery(this).parent().prev().height() + 20; jQuery(this).parent().prev().css("height","99px"); jQuery(this).parent().prev().animate({ height: h + "px"}, 500).removeClass("short_comment"); var target = "#" + jQuery(this).parent().parent().parent().attr("id"); jQuery('html, body').animate({ scrollTop: jQuery(target).offset().top }, 500); window.setTimeout("calculate_says_heights();",501); }else{ jQuery(this).html("+ Kommentar ganz anzeigen").show(); jQuery(this).parent().prev().animate({ height: "99px"}, 500).addClass("short_comment"); var target = "#" + jQuery(this).parent().parent().parent().attr("id"); jQuery('html, body').animate({ scrollTop: jQuery(target).offset().top }, 500); window.setTimeout("calculate_says_heights();",501); } }); jQuery(".wrap_comment_form").insertAfter("div.comment-entry h1"); jQuery(".wrap_comment_form").before("
").after("
"); // Breite des Kommentarfelds anpassen calculate_says_heights(); // window.setTimeout("calculate_says_heights();",5000); window.setInterval("calculate_says_heights();",10000); /* Schmaler machen bei mehr als 10 Tiefe */ if(jQuery(".comment.depth-11").length){ jQuery("#kaffee_comments > div").css("max-width","1340px"); calculate_says_heights(); // jQuery(".commentlist").addClass("deep-thread"); }else if(jQuery(".comment.depth-8").length){ jQuery("#kaffee_comments > div").css("max-width","1140px"); calculate_says_heights(); // jQuery(".commentlist").addClass("deep-thread"); }else if(jQuery(".comment.depth-5").length){ jQuery("#kaffee_comments > div").css("max-width","800px"); calculate_says_heights(); // jQuery(".commentlist").addClass("deep-thread"); } jQuery("cite.author_name").each(function(){ if(jQuery(this).parent().parent().parent().find("ul").length) jQuery(this).append('- Ast ausblenden'); }); jQuery(".close_tree").click(function(){ entries = (jQuery(this).parent().parent().parent().parent().find(".gravatar").length); newentries = (jQuery(this).parent().parent().parent().parent().find(".newcomment").length); if(newentries){ newentriestext = " / " + newentries + ""; newentriesclass="newcommentintree"; }else{ newentriestext = ""; newentriesclass=""; } jQuery(this).parent().parent().parent().before('
' + entries + newentriestext + '>
'); jQuery(this).parent().parent().parent().parent().addClass("tree_closed"); jQuery(this).parent().parent().parent().prev().click(function(){ jQuery(this).parent().removeClass("tree_closed"); // Cookie löschen name = jQuery(this).parent().attr("id"); createCookie(name,""); jQuery(this).remove(); calculate_says_heights(); }); // Cookie name = jQuery(this).parent().parent().parent().parent().attr("id"); createCookie(name,"closed",365); }); // Gespeicherte Äste einklappen jQuery("li.comment").each(function(){ name = jQuery(this).attr("id"); if(readCookie(name)){ jQuery(this).children("div").children(".comment_content").find(".close_tree").click(); } }); // Kleine Layoutanpassung if(jQuery("li.comment:first-child > div:first-child").hasClass("newcomment")){ jQuery("body .commentlist").css("margin-top","25px"); } }); function calculate_says_heights(){ jQuery(".comment-entry").width(jQuery("#kaffee_comments .elementor-container").width() - 36).css("z-index","100"); jQuery(".says").each(function(){ if(jQuery(this).parent().parent().parent().children("ul").length){ h = jQuery(this).parent().parent().parent().height(); h -= jQuery(this).parent().parent().parent().children("ul").children("li").last().height(); }else{ h=1; } if(jQuery(this).height()!=h) jQuery(this).height(h); }); }

Kommentare

Hinterlasse eine Antwort auf den Artikel

Die Datenschutzerklärung findest du hier.

Kommentar verfassen