Last active
February 22, 2017 02:07
-
-
Save jbaxleyiii/7695fae3c19ac5652385afedb1e3ac0a to your computer and use it in GitHub Desktop.
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
<div> | |
<menu type="toolbar"> | |
<a class="sort">sort</a> or <a class="reset">reset</a> | |
</menu> | |
<div class="example"> | |
<ul id="xret"> | |
<li style="color: red;"><span class="">elit</span></li> | |
<li><span class="striked">ac</span></li> | |
<li style="color: red;"><span class="">feugiat</span></li> | |
<li style="color: red;"><span class="">orci</span></li> | |
<li style="color: red;"><span class="">proin</span></li> | |
<li><span class="striked">quisque</span></li> | |
<li><span class="striked">semper</span></li> | |
<li style="color: red;"><span class="">volutpat</span></li> | |
</ul> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
tinysort('ul#xret>li','span:not([class=striked])',{returns:true,place:'org'}) | |
.forEach(function(elm){ | |
elm.style.color = 'red'; | |
}) | |
; | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment