825
edits
No edit summary |
No edit summary |
||
Line 99: | Line 99: | ||
if( countPoem2.length > 0 ){ | if( countPoem2.length > 0 ){ | ||
var Poem2lenghtArray = []; | |||
for (var k = 0; k <= countPoem2.length; k++) { | |||
Poem2lenghtArray.push(k); | |||
} | |||
Poem2lenghtArray.forEach(function(j) { | |||
var poemElement = $(".Poem2-Ekatra").eq(j); | var poemElement = $(".Poem2-Ekatra").eq(j); | ||
Line 111: | Line 117: | ||
// First measure | // First measure | ||
poemArray.forEach( | poemArray.forEach( function(i) { | ||
poemElement.append( '<p style="text-indent: 2em;">' + i + '</p>' ); | |||
}); | |||
// Second measure | // Second measure | ||
poemElement.children('p').each( | poemElement.children('p').each(function () { | ||
$(this).css('text-indent', '2em'); | |||
}); | |||
} | } | ||
} | }); | ||
} | } | ||
}); | }); | ||