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
var Crawler = require("crawler").Crawler; | |
var cheerio = require("cheerio"); | |
var c = new Crawler({ | |
"callback": function(error, result) { | |
var fg = []; | |
$ = cheerio.load(result.body); | |
$("ul.DataBlock").find('li').each(function(idx, el) { | |
var ob = { |
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
var socket = io.connect('http://localhost:8001'), | |
only = false, | |
timer_id = null, | |
Ball = { | |
img: new Image(), | |
x: 0, | |
direction : 1, // default direction - left to right | |
speed : 3, | |
width : 60 }, | |
Canvas = { |