Commit abbcc4a3 authored by Felipe Pereira's avatar Felipe Pereira

Correção de alguns arquivos

parent 6860c902
......@@ -8,12 +8,10 @@ var rename = require('gulp-rename');
var sh = require('shelljs');
var app = require('express')();
var http = require('http').Server(app);
var http = require('http').createServer();
var io = require('socket.io')(http);
var express = require('express');
var professores = [];
professores[0] = {};
professores[0].login = "anita";
......@@ -46,8 +44,8 @@ io.on('connection', function(socket){
});
http.listen(8081, function(){
console.log('listening on *:8081');
http.listen(3000, function(){
console.log("Executando na porta 3000");
});
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
<html>
<head>
<meta charset="utf-8">
<meta charset="utf-8">
<title> Teste stroop </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
......@@ -8,7 +8,9 @@
<link rel="stylesheet" href="pure-min.css">
<link rel="stylesheet" href="style.css">
<script src="jquery-3.0.0.min.js"></script>
<script src="jquery-3.1.1.min.js"></script>
<script src="ionic.min.js"></script>
</head>
<body>
......
var socket = io("localhost:8081");
app.initialize();
socket.on("login_retorno",function(){
document.getElementById("logado").style.display = "inline";
document.getElementById("deslogado").style.display = "none";
});
socket.on("login_retorno",function(){
document.getElementById("logado").style.display = "inline";
document.getElementById("deslogado").style.display = "none";
});
function tentaLogar(){
socket.emit("login",document.getElementById("login").value,document.getElementById("senha").value);
socket.emit("login",document.getElementById("login").value,document.getElementById("senha").value);
}
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