Skip to content

Commit

Permalink
Moved web files into their own directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Apr 12, 2010
1 parent 9a6940c commit a8784b6
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 114 deletions.
14 changes: 7 additions & 7 deletions demo/chat.js
Expand Up @@ -7,20 +7,20 @@ chatServer.listen(8001);
chatServer.addChannel({ basePath: "/chat" }); chatServer.addChannel({ basePath: "/chat" });


// chat app // chat app
chatServer.passThru("/", router.staticHandler("index.html")); chatServer.passThru("/", router.staticHandler("web/index.html"));


// CSS // CSS
chatServer.passThru("/css/layout.css", router.staticHandler("css/layout.css")); chatServer.passThru("/css/layout.css", router.staticHandler("web/css/layout.css"));
chatServer.passThru("/css/reset.css", router.staticHandler("css/reset.css")); chatServer.passThru("/css/reset.css", router.staticHandler("web/css/reset.css"));


// Images // Images
["background.png", "button.png", "footer.png", "glows.png", "header-bg.png", ["background.png", "button.png", "footer.png", "glows.png", "header-bg.png",
"inset-border-l.png", "inset-border.png", "metal.jpg", "node-chat.png", "inset-border-l.png", "inset-border.png", "metal.jpg", "node-chat.png",
"send.png"].forEach(function(file) { "send.png"].forEach(function(file) {
chatServer.passThru("/images/" + file, router.staticHandler("images/" + file)); chatServer.passThru("/images/" + file, router.staticHandler("web/images/" + file));
}); });


// JS // JS
chatServer.passThru("/jquery-1.4.2.js", router.staticHandler("jquery-1.4.2.js")); chatServer.passThru("/js/jquery-1.4.2.js", router.staticHandler("web/js/jquery-1.4.2.js"));
chatServer.passThru("/nodechat.js", router.staticHandler("nodechat.js")); chatServer.passThru("/js/nodechat.js", router.staticHandler("web/js/nodechat.js"));
chatServer.passThru("/client.js", router.staticHandler("client.js")); chatServer.passThru("/js/client.js", router.staticHandler("web/js/client.js"));
104 changes: 0 additions & 104 deletions demo/style.css

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 3 additions & 3 deletions demo/index.html → demo/web/index.html
Expand Up @@ -5,9 +5,9 @@
<title>NodeChat v0.1</title> <title>NodeChat v0.1</title>


<link rel="stylesheet" type="text/css" href="css/layout.css"> <link rel="stylesheet" type="text/css" href="css/layout.css">
<script src="jquery-1.4.2.js"></script> <script src="js/jquery-1.4.2.js"></script>
<script src="nodechat.js"></script> <script src="js/nodechat.js"></script>
<script src="client.js"></script> <script src="js/client.js"></script>
</head> </head>
<body class="login"> <body class="login">
<header><img src="images/node-chat.png" width="92" height="10" alt="Node Chat v0.1" /></header> <header><img src="images/node-chat.png" width="92" height="10" alt="Node Chat v0.1" /></header>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a8784b6

Please sign in to comment.