Bläddra i källkod

now reloads the list on reconnect

master
mort 8 år sedan
förälder
incheckning
00c377e37d
2 ändrade filer med 6 tillägg och 3 borttagningar
  1. 1
    1
      package.json
  2. 5
    2
      web/script.js

+ 1
- 1
package.json Visa fil

"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"express": "^4.13.4", "express": "^4.13.4",
"webevents": "^1.0.2"
"webevents": "^1.1.1"
}, },
"devDependencies": {}, "devDependencies": {},
"description": "" "description": ""

+ 5
- 2
web/script.js Visa fil

remove(evt.index); remove(evt.index);
}); });


get("/list", function(err, list) {
list.forEach(function(word, index) { add(word, index); });
events.on("connection", function() {
clearChildren(elemList);
get("/list", function(err, list) {
list.forEach(function(word, index) { add(word, index); });
});
}); });


get("/words", function(err, w) { get("/words", function(err, w) {

Laddar…
Avbryt
Spara