xonecas.io
49
Do

dotter / commit 2a237c9

updated the code to use the latest node api

xonecas2011-05-10 2a237c92b4a76b5c924421e91f810804536000de parent 022afcf

3 files changed

index.html+0−7
@@ -1,29 +1,22 @@
11 <!doctype html>
2-<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
32 <!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
43 <!--[if IE 7 ]> <html class="no-js ie7"> <![endif]-->
54 <!--[if IE 8 ]> <html class="no-js ie8"> <![endif]-->
65 <!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
76 <head>
87 <meta charset="utf-8">
9-
10- <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
11- Remove this if you use the .htaccess -->
128 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
139
1410 <title>Dotter</title>
1511 <meta name="description" content="Every dot is a geo-tagged tweet">
1612 <meta name="author" content="Sean Caetano Martin">
1713
18- <!-- Mobile viewport optimized: j.mp/bplateviewport -->
1914 <meta name="viewport" content="width=device-width, initial-scale=1.0">
2015
21- <!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
2216 <link rel="shortcut icon" href="/favicon.ico">
2317 <link rel="apple-touch-icon" href="/apple-touch-icon.png">
2418
2519
26- <!-- CSS : implied media="all" -->
2720 <link rel="stylesheet" href="css/style.css?v=2">
2821
2922 <!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
js/script.js+0−1
@@ -53,7 +53,6 @@
5353 });
5454
5555 socket.on('message', function(data){
56-
5756 var point = $.parseJSON(data);
5857
5958 var lat = Math.floor(point.lat),
server.js+2−7
@@ -1,6 +1,5 @@
11
2-var sys = require('sys'),
3- io = require('socket.io'),
2+var io = require('socket.io'),
43 _ = require('underscore'),
54 connect = require('connect'),
65 http = require('http'),
@@ -31,12 +30,8 @@ var twitter = new Twitter({
3130 });
3231
3332 var server = connect.createServer(
34- connect.conditionalGet(),
35- connect.cache(),
36- connect.gzip(),
37- connect.staticProvider(__dirname)
33+ connect.static(__dirname)
3834 );
39-
4035 server.listen(1234);
4136
4237 var stream = false;