Skip to content

Instantly share code, notes, and snippets.

@coleww
Last active August 29, 2015 14:05
Show Gist options
  • Save coleww/1d70edb6b0a6577177d8 to your computer and use it in GitHub Desktop.
Save coleww/1d70edb6b0a6577177d8 to your computer and use it in GitHub Desktop.
Deleuze and jQuery and Guattari
http://coleww.github.io/a_milli_plateaus
$(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