Commit f8068c0f authored by Felipe Pereira's avatar Felipe Pereira

Tradução terminada (bug de agumular strings no Início do professor

parent c3509c17
......@@ -32,6 +32,9 @@
.spanAcertou{
color:purple;
}
.exclueTeste{
color:red;
}
</style>
</head>
<body>
......
This diff is collapsed.
......@@ -6,10 +6,11 @@ var express = require('express');
var professores = [];
professores[0] = {};
professores[0].login = "anita";
professores[0].senha = "123";
professores[0].senha = "";
professores[0].testes = [];
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
......@@ -44,6 +45,12 @@ io.on('connection', function(socket){
callback(null);
}
});
socket.on('exclueTeste',function(login,senha,id,callback){
console.log(professores[0].testes[id].nome);
professores[0].testes.splice(id,1);
callback();
});
});
function verificaLoginSenha(login,senha){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment