Created
July 28, 2012 15:00
-
-
Save seyDoggy/3193686 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(document).ready(function($){ | |
var getNav; | |
if (sdNav.type == 0 || sdNav.type == 1) getNav = sdNav.tb1; | |
else if (sdNav.type == 2) getNav = sdNav.tb2; | |
else if (sdNav.type == 3) getNav = sdNav.tb3; | |
var sdFATLinks = (function(){ | |
var link = [ | |
"Home", | |
"About us", | |
"Contact us" | |
]; | |
var icon = [ | |
"home", | |
"user", | |
"envelope" | |
]; | |
for (var i = link.length - 1; i >= 0; i--){ | |
getNav.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