-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
91 lines (73 loc) · 2.62 KB
/
Copy pathscript.js
File metadata and controls
91 lines (73 loc) · 2.62 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
function digitar(){
var conteudo = document.getElementById("postar").value;
var tamanhoCampo = conteudo.length;
if(tamanhoCampo > 73){
document.getElementById("postar").style.height = "85px";
}
if(tamanhoCampo > 315){
document.getElementById("postar").style.height = "150px";
}
if(tamanhoCampo < 315 && event.keycode === 8){
document.getElementById("postar").style.height = "85px";
}
if(tamanhoCampo < 75 && event.keyCode === 8){
document.getElementById("postar").style.height = "25px";
}
}
function quantidade(){
var conteudo = document.getElementById("matricula").value;
var tamanhoCampo = conteudo.length;
if(tamanhoCampo == 14){
document.getElementById("matricula").value = conteudo.toString().slice(0, 13);
}
}
/* Desabilitar nome calourask (não mais usado)
function checar(){
var marcado = document.getElementById("anonimo").checked;
var conteudo = document.getElementById("nome-calourask").value;
if(marcado == true){
document.getElementById("nome-calourask").disabled = true;
document.getElementById("nome-calourask").style.backgroundColor = "#d5cccc";
if(conteudo != -1){
document.getElementById("nome-calourask").value = "";
}
}
else{
document.getElementById("nome-calourask").disabled = false;
document.getElementById("nome-calourask").style.backgroundColor = "#f3e9f3";
}
}
*/
function changeSelectCadastro(){
var select = document.getElementById("curso");
var value = select.options[select.selectedIndex].value;
if (value == "SelecioneSeuCurso") {
alert("Você não selecionou seu curso..");
document.getElementById("redirecionar").action = "cadastro";
}
else {
document.getElementById("redirecionar").action = "cadastro";
}
}
function changeSelectCalourask(){
var select = document.getElementById("curso-calourask");
var value = select.options[select.selectedIndex].value;
if (value == "SelecioneSeuCurso") {
alert("Você não selecionou seu curso..");
document.getElementById("calourask").action = "calourask";
}
else {
document.getElementById("calourask").action = "feed";
}
}
function logar(){
var usuario = document.getElementById("user").value;
var senha = document.getElementById("password").value;
if (usuario == "marcosadriano99" && senha == "finnpoeisreal"){
document.getElementById("formulario-login").action = "feed";
}
else{
document.getElementById("formulario-login").action = "index";
alert('Marcos Zuckerberg: "Somente administrador.."');
}
}