-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
38 lines (35 loc) · 824 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'use strict'
class usuario{
constructor(user, pass){
this.user = user;
this.pass = pass;
}
}
function paginicial(){
let u1 = document.getElementById('login');
let p1 = document.getElementById('senha');
let user = String(u1.value);
let pass = Number(p1.value);
let pessoa = new usuario (user, pass);
let usuarios = [];
usuarios.push(pessoa);
window.location.href = 'pag1.html';
}
function abrirpag(){
window.location.href = "historia.html";
}
function abrirpag2(){
window.location.href = "jogadores.html";
}
function voltar(){
window.location.href = "pag1.html";
}
function voltarlogin(){
window.location.href = "index.html";
}
function opiniao(){
window.prompt('o que você está achando do site?');
}
function erro(){
location.href=('404.html');
}