Last active
August 29, 2015 14:05
-
-
Save coleww/1d70edb6b0a6577177d8 to your computer and use it in GitHub Desktop.
Deleuze and jQuery and Guattari
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
http://coleww.github.io/a_milli_plateaus |
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(){ | |
window.location.href += '#/' | |
$("#assemblage").click(function(e){ | |
e.preventDefault(); | |
var $molecule = $(e.target); | |
if (line_of_flight = $molecule.attr('href')) { | |
window.location.href += line_of_flight + '/'; | |
} | |
var $assemblage = $(e.currentTarget); | |
var plateau = plateaus[~~(Math.random() * plateaus.length)].replace(/\W+/g, " "); | |
var plane_of_consistency = '' | |
plateau.split(' ').forEach(function(rupture, i, arr){ | |
plane_of_consistency += '<a href="'+rupture+'">'+rupture+'</a> '; | |
}) | |
$assemblage.html(plane_of_consistency); | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment