Vorschautext in html erweitern?

Ich sehe gerade den Wald voller Bäume nicht mehr.

Ich bastle schon seit einigen Tagen an einem Blogger Template und möchte den Vorschautext eines Beitrages vergrößern. Momentan werden mir nur zwei Zeilen des eigentlichen Texts angezeigt.

Was muss ich im HTML-Code ändern, dass er mir zum Beispiel 5 Zeilen anzeigt?


<script type='text/javascript'> //<![CDATA[ // JavaScript Document

function removeHtmlTag(e, t) {     if (e.indexOf("<") != -1) {         var n = e.split("<");         for (var r = 0; r < n.length; r++) {             if (n[r].indexOf(">") != -1) {                 n[r] = n[r].substring(n[r].indexOf(">") + 1, n[r].length)             }         }         e = n.join("")     }     t = t < e.length - 0 ? t : e.length - 0;     while (e.charAt(t - 1) != " " && e.indexOf(" ", t) != -1) t++;     e = e.substring(0, t - 1);     return e + "" }

function rm(s,a,e,t,l,i,n){var m=document.getElementById(s),c=(document.getElementById(e),t=t,l=l,i=i,""),r=m.getElementsByTagName("img"),p=(m.getElementsByTagName("iframe"),summary_noimg);r.length>=1&&(c='<a href="'+a+'" class="thumbnail-block"><img src="'+r[0].src.replace(/s\B\d{2,4}/,"s1600")+'"><div class="post-image-bg" style="background-image: url('+r[0].src.replace(/s\B\d{2,4}/,"s1600")+');"></div></a></div>',p=summaryi);var o='<div class="post-image">'+c+'</div><div class="post-content"><div class="post-tag"><span class="em">In</span> '+i+'</div><h2 class="post-title entry-title"><a href="'+a+'" title="'+e+'">'+e+'</a></h2><ul class="post-meta"><li class="post-author"><span>Von</span> '+n+'</li><li class="post-date"><span>Am</span> '+t+'</li><li class="post-comments">'+l+'</li></ul><div class="post-excerpt"><p>'+removeHtmlTag(m.innerHTML,p)+'</p></div><div class="post-read-more"><span><a href="'+a+'">Weiterlesen</a></span></div>';m.innerHTML=o}

var summary_noimg = 300; summaryi = 180; summaryv = 130; thh = 433; thw = 100; scthh = 120;

jQuery(document).ready(function () { $(".mobile-link a").click(function(){   $("div.nav-menu ul").slideToggle();   }); });

jQuery(document).ready(function() {  $('.search-icon .fa').on('click', function(event) {         event.preventDefault(); $('.search-icon input').removeClass('search-hidden');         $('#search').addClass('open');         $('#search > form > input[type="search"]').focus();     });          $('#search, #search button.close').on('click keyup', function(event) {         if (event.target == this || event.target.className == 'close' || event.keyCode == 27) {             $(this).removeClass('open');         }     }); }); 

//]]></script>


Vorschautext in html erweitern?
Technik, HTML, CSS, JavaScript, bloggen, Blogger
1 Antwort