-
-
Save faceleg/3201754 to your computer and use it in GitHub Desktop.
jQuery for adding Font Awesome icons to toolbar 1
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
jQuery(function(){ | |
var link = [ | |
"Home", | |
"About us", | |
"Contact us" | |
]; | |
var icon = [ | |
"home", | |
"user", | |
"envelope" | |
]; | |
for (var i = link.length - 1; i >= 0; i--){ | |
sdNav.tb1.find(' > ul > li > a:contains(' + link[i] + ')').prepend('<i class="icon-' + icon[i] + '"/> '); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment