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
$(document).keydown(function(e){ | |
if (e.keyCode == 37) { | |
var previous = self.currentX; | |
self.currentX = self.limitXBounds(self.previousPageX(self.currentX)); | |
if (self.currentX !== previous) { | |
self.update(); | |
} | |
return false; | |
}else if (e.keyCode == 39) { | |
var previous = self.currentX; |
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
conn = new Socket; | |
while (true) { | |
// listen on port 80 | |
if (conn.listen (8000)) { | |
// wait forever for a connection | |
var incoming; | |