MediaWiki:Common.js: Difference between revisions

From Ekatra Wiki
Jump to navigation Jump to search
(Created page with "$( function(){ var poemElement = $(".Poem2-Ekatra"); var poemText = poemElement.text(); var poemArray = poemText.split("\n"); poemElement.text(""); poemArray.forEach(...")
 
No edit summary
Line 7: Line 7:


poemArray.forEach( function(i) {
poemArray.forEach( function(i) {
poemElement.append( '<p style="text-indent: 4em;">' + i + '</p>' );
poemElement.append( '<p style="text-indent: 3em;">' + i + '</p>' );
});
});
});
});

Revision as of 21:06, 13 May 2021

$( function(){
	var poemElement = $(".Poem2-Ekatra");
	var poemText = poemElement.text();
	var poemArray = poemText.split("\n");
	
	poemElement.text("");

	poemArray.forEach( function(i) {
		poemElement.append( '<p style="text-indent: 3em;">' + i + '</p>' );
	});
});