Created
March 2, 2012 21:06
-
-
Save tron1point0/1961403 to your computer and use it in GitHub Desktop.
dotlan functions
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
// Raw SVG: http://evemaps.dotlan.net/svg/Branch.dark.svg | |
function system(name,fn) { | |
document.getElementsByClassName('ss').each(function(elem){ | |
if(elem.textContent == name) fn.call(elem.parentElement) | |
}); | |
} | |
system('D4R-H7',function(){this.getElementsByClassName('s')[0].style.fill = '#000000'}); | |
system('D4R-H7',function(){this.getElementsByClassName('st')[0].textContent = 'sup.'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment