Created
May 24, 2013 13:09
-
-
Save jswebschmiede/5643390 to your computer and use it in GitHub Desktop.
Skript was es ermöglicht HTML Listen mit farbigen Aufzählungspunkten zu versehen, dazu muss die CSS Klasse span.text mit der Standard Schriftfarbe versehen werden und die ul, ol Listen mit der Farbe in der die Punkte dargestellt werden sollen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Bsp CSS.: | |
ul, ol { color: red; } | |
span.text { color: black; } | |
*/ | |
$(document).ready(function(){ | |
/* content ist hier der Bereich für die Texte usw. */ | |
$('#content ul li').each(function(i, e) { | |
$(e).contents().wrap('<span class="text"></span>') | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment