Permalink
Browse files

Moved web files into their own directory.

  • Loading branch information...
1 parent 9a6940c commit a8784b651d6f09171cffeae87ce9561e2bbeedfc @scottgonzalez committed Apr 12, 2010
View
14 demo/chat.js
@@ -7,20 +7,20 @@ chatServer.listen(8001);
chatServer.addChannel({ basePath: "/chat" });
// chat app
-chatServer.passThru("/", router.staticHandler("index.html"));
+chatServer.passThru("/", router.staticHandler("web/index.html"));
// CSS
-chatServer.passThru("/css/layout.css", router.staticHandler("css/layout.css"));
-chatServer.passThru("/css/reset.css", router.staticHandler("css/reset.css"));
+chatServer.passThru("/css/layout.css", router.staticHandler("web/css/layout.css"));
+chatServer.passThru("/css/reset.css", router.staticHandler("web/css/reset.css"));
// Images
["background.png", "button.png", "footer.png", "glows.png", "header-bg.png",
"inset-border-l.png", "inset-border.png", "metal.jpg", "node-chat.png",
"send.png"].forEach(function(file) {
- chatServer.passThru("/images/" + file, router.staticHandler("images/" + file));
+ chatServer.passThru("/images/" + file, router.staticHandler("web/images/" + file));
});
// JS
-chatServer.passThru("/jquery-1.4.2.js", router.staticHandler("jquery-1.4.2.js"));
-chatServer.passThru("/nodechat.js", router.staticHandler("nodechat.js"));
-chatServer.passThru("/client.js", router.staticHandler("client.js"));
+chatServer.passThru("/js/jquery-1.4.2.js", router.staticHandler("web/js/jquery-1.4.2.js"));
+chatServer.passThru("/js/nodechat.js", router.staticHandler("web/js/nodechat.js"));
+chatServer.passThru("/js/client.js", router.staticHandler("web/js/client.js"));
View
104 demo/style.css
@@ -1,104 +0,0 @@
-body {
- margin: 0;
- padding: 0;
- background-color: #222;
- color: #eee;
-}
-
-#wrapper {
- position: absolute;
- top: 50%;
- left: 50%;
-}
-.login #wrapper {
- margin-top: -80px;
- margin-left: -200px;
-}
-.channel #wrapper {
- margin-top: -250px;
- margin-left: -430px;
-}
-
-#login {
- width: 300px;
- height: 160px;
- border: 5px solid #68c;
- text-align: center;
- padding: 1em;
-}
-.channel #login {
- display: none;
-}
-
-#channel {
- display: none;
- background-color: #eee;
- color: #222;
- border: 5px solid #68c;
- width: 860px;
- height: 500px;
- margin: 0 auto;
- position: relative;
- overflow-x: hidden;
- overflow-y: auto;
-}
-.channel #channel {
- display: block;
-}
-
-#users {
- background-color: #222;
- color: #eee;
- position: absolute;
- top: 0;
- right: 0;
- height: 500px;
- width: 100px;
- overflow: hidden;
- list-item: none;
- margin: 0;
- padding: 0;
-}
-
-#channel form {
- position: absolute;
- width: 760px;
- bottom: 0;
- height: 30px;
- background-color: #222;
-}
-
-#message {
- width: 740px;
- padding: 2px 5px;
- border: none;
-}
-
-#chat-log {
- position: absolute;
- bottom: 30px;
- max-height: 460px;
- width: 760px;
- overflow: auto;
-}
-
-.chat-msg {
- clear: both;
-}
-
-.chat-system-msg {
- border-left: 10px solid #68c;
- padding-left: 20px;
-}
-
-.chat-time {
- float: right;
- color: #aaa;
- font-size: .8em;
- padding: 2px;
-}
-
-.chat-nick {
- color: #68c;
- padding-right: 5px;
-}
View
0 demo/css/layout.css → demo/web/css/layout.css
File renamed without changes.
View
0 demo/css/reset.css → demo/web/css/reset.css
File renamed without changes.
View
0 demo/images/background.png → demo/web/images/background.png
File renamed without changes
View
0 demo/images/button.png → demo/web/images/button.png
File renamed without changes
View
0 demo/images/footer.png → demo/web/images/footer.png
File renamed without changes
View
0 demo/images/glows.png → demo/web/images/glows.png
File renamed without changes
View
0 demo/images/header-bg.png → demo/web/images/header-bg.png
File renamed without changes
View
0 demo/images/inset-border-l.png → demo/web/images/inset-border-l.png
File renamed without changes
View
0 demo/images/inset-border.png → demo/web/images/inset-border.png
File renamed without changes
View
0 demo/images/metal.jpg → demo/web/images/metal.jpg
File renamed without changes
View
0 demo/images/node-chat.png → demo/web/images/node-chat.png
File renamed without changes
View
0 demo/images/send.png → demo/web/images/send.png
File renamed without changes
View
6 demo/index.html → demo/web/index.html
@@ -5,9 +5,9 @@
<title>NodeChat v0.1</title>
<link rel="stylesheet" type="text/css" href="css/layout.css">
- <script src="jquery-1.4.2.js"></script>
- <script src="nodechat.js"></script>
- <script src="client.js"></script>
+ <script src="js/jquery-1.4.2.js"></script>
+ <script src="js/nodechat.js"></script>
+ <script src="js/client.js"></script>
</head>
<body class="login">
<header><img src="images/node-chat.png" width="92" height="10" alt="Node Chat v0.1" /></header>
View
0 demo/client.js → demo/web/js/client.js
File renamed without changes.
View
0 demo/jquery-1.4.2.js → demo/web/js/jquery-1.4.2.js
File renamed without changes.
View
0 demo/nodechat.js → demo/web/js/nodechat.js
File renamed without changes.

0 comments on commit a8784b6

Please sign in to comment.