GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — changes :rewind: · maninder123/fullstack-javascript@6a2178d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • 13-board-ui
    • app.js
  • 15-board-web
    • package.json
    • public
      • app.js
    • web.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎13-board-ui/app.js‎

Copy file name to clipboardExpand all lines: 13-board-ui/app.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ require([
8787
})
8888
},
8989
saveMessage: function(){
90-
var newMessageForm=$('#new-message')
91-
var username=newMessageForm.find('[name="username"]').val()
92-
var message=newMessageForm.find('[name="message"]').val()
90+
var newMessageForm = $('#new-message')
91+
var username = newMessageForm.find('[name="username"]').val()
92+
var message = newMessageForm.find('[name="message"]').val()
9393
this.collection.add({
9494
'username': username,
9595
'message': message
Collapse file

‎15-board-web/package.json‎

Copy file name to clipboardExpand all lines: 15-board-web/package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "1.0.1",
44
"dependencies": {
55
"mongodb": "2.0.35",
6-
"url": ""
6+
"url": "0.11.0"
77
},
88
"engines": {
99
"node": ">=0.6.x"
1010
}
11-
}
11+
}
Collapse file

‎15-board-web/public/app.js‎

Copy file name to clipboardExpand all lines: 15-board-web/public/app.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ require([
8787
})
8888
},
8989
saveMessage: function(){
90-
var newMessageForm=$('#new-message')
91-
var username=newMessageForm.find('[name="username"]').val()
92-
var message=newMessageForm.find('[name="message"]').val()
90+
var newMessageForm = $('#new-message')
91+
var username = newMessageForm.find('[name="username"]').val()
92+
var message = newMessageForm.find('[name="message"]').val()
9393
this.collection.add({
9494
'username': username,
9595
'message': message
Collapse file

‎15-board-web/web.js‎

Copy file name to clipboardExpand all lines: 15-board-web/web.js
+2-5Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,24 @@ client.connect(uri, function(error, db) {
5858
})
5959
} else {
6060
var uri = url.parse(request.url).pathname
61-
console.log('**', uri)
61+
console.log('Processing URI: ', uri)
6262
if (uri == '' || uri == '/') uri = 'index.html'
6363
filename = path.join(__dirname, staticFolder, uri)
64-
console.log('**', filename)
64+
console.log('Processing file: ', filename)
6565
stats = fs.statSync(filename)
6666
if (error) {
6767
console.error(error)
6868
response.writeHead(404, {
6969
'Content-Type': 'text/plain'})
7070
response.write('404 Not Found\n')
7171
return response.end()
72-
7372
}
7473
if(!stats.isFile()) {
7574
response.writeHead(404, {
7675
'Content-Type': 'text/plain'})
7776
response.write('404 Not Found\n')
7877
return response.end()
7978
} else {
80-
// if (stats.isDirectory())
81-
// filename += '/index.html'
8279
var file = fs.readFileSync(filename)
8380
if (!file) {
8481
response.writeHead(500,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.