Created
December 21, 2012 20:33
-
-
Save supernullset/4355611 to your computer and use it in GitHub Desktop.
Worst Abuse Ever
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
seat_index = "seat-#{arc_index}" | |
if href = SEATS[seat_index]["link"] | |
if !@links then @links = exports ? this | |
if [email protected] then @links.hash = {} | |
@links.hash[seat_index] = href | |
d3.select(".#{seat_index}").on "click", -> | |
seat_index = this.classList[1] | |
href = window.links.hash[seat_index] | |
window.open href, "_blank" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment