JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix whitespace
authorJason Woofenden <jason@jasonwoof.com>
Mon, 24 Oct 2011 01:10:50 +0000 (21:10 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Mon, 24 Oct 2011 01:10:50 +0000 (21:10 -0400)
client.coffee
server.coffee

index a87cb54..e263dfb 100644 (file)
@@ -32,7 +32,7 @@ add_card = (text, x, y) ->
                p = card.position()
                card.children().html("(#{p.left}, #{p.top})")
                # FIXME tell server
-       
+
 init = ->
        if state.auto_shuffle
                state.my_cards.shuffle()
index 48e2857..b3624ae 100644 (file)
@@ -34,7 +34,7 @@ clean_pathname = (str) ->
        str = str.replace clean_pathname_regex, '_'
        str = str.replace clean_pathname_regex2, '/_'
        return str.replace clean_pathname_regex3, '_'
-       
+
 # serve javascript files from within /usr/share/javascript
 javascript_handler = (args, out, request, url_parts) ->
        filename = clean_pathname "/usr/share/#{url_parts.pathname}"
@@ -44,7 +44,7 @@ javascript_handler = (args, out, request, url_parts) ->
                        return out.end "Server failed to read #{filename}"
                out.writeHead 200, 'Content-Type': 'text/javascript'
                out.end data
-       
+
 
 http_server = http.createServer (req, res) ->
        url_parts = url.parse req.url, true
@@ -61,7 +61,7 @@ http_server = http.createServer (req, res) ->
        else if rel_path.substr rel_path.length - 3 is '.js'
                res.writeHead 200, 'Content-Type': 'text/javascript'
                return js_handler url_parts.query, res, req, url_parts
-               
+
        return html_handler url_parts.query, res, req, url_parts
 
 http_server.listen listen_port, "127.0.0.1"