Created
July 1, 2013 19:30
-
-
Save Afforess/5903799 to your computer and use it in GitHub Desktop.
SPDR
This file contains hidden or 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
function softPowerScore() { | |
var html = $('<div>').append($(".highcharts-data-labels").children()[0]).html(); | |
var search = '<tspan x="3">'; | |
var index = html.indexOf(search) + search.length; | |
var end = html.indexOf('</tspan>', index); | |
console.log(index + " " + end); | |
return html.substring(index, end); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment