-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathscript.js
More file actions
34 lines (26 loc) · 726 Bytes
/
Copy pathscript.js
File metadata and controls
34 lines (26 loc) · 726 Bytes
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
function cancelar(){
window.location.href = "index.html";
}
function selFilme(){
window.location.href = "selecao-filme.html";
}
function selHorario(){
window.location.href = "selecao-local.html";
}
function selLocal(){
window.location.href = "selecao-cadeira.html";
}
function selecionaCadeira(id){
if(document.getElementById(id).className.match("btn-selectable")){
document.getElementById(id).className = "btn btn-secondary btn-success";
}else{
document.getElementById(id).className = "btn btn-secondary btn-selectable";
}
}
var filme;
function filmeEscolhido(id){
localStorage.setItem('filme', id);
}
function recuperaFilme() {
return localStorage.getItem('filme');
}