-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcadastro.js
More file actions
52 lines (48 loc) · 1.55 KB
/
cadastro.js
File metadata and controls
52 lines (48 loc) · 1.55 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
const uinput = document.getElementById("fusuario");
const einput = document.getElementById("femail");
const sinput = document.getElementById("fsenha");
const rinput = document.getElementById("frepita");
const utext = document.getElementById("utext");
const etext = document.getElementById("etext");
const stext = document.getElementById("stext");
const rtext = document.getElementById("rtext");
$(fusuario).focus (function() {
utext.style.fontSize = "1.4em";
utext.style.margin = "1px 0 0 10px";
});
$(fusuario).blur (function() {
if (uinput.value == '') {
utext.style.fontSize = "1.5em";
utext.style.margin = "18px 0 0 10px";
}
});
$(femail).focus (function() {
etext.style.fontSize = "1.4em";
etext.style.margin = "1px 0 0 10px";
});
$(femail).blur (function() {
if (einput.value == '') {
etext.style.fontSize = "1.5em";
etext.style.margin = "18px 0 0 10px";
}
});
$(fsenha).focus (function() {
stext.style.fontSize = "1.4em";
stext.style.margin = "1px 0 0 10px";
});
$(fsenha).blur (function() {
if (sinput.value == '') {
stext.style.fontSize = "1.5em";
stext.style.margin = "18px 0 0 10px";
}
});
$(frepita).focus (function() {
rtext.style.fontSize = "1.4em";
rtext.style.margin = "1px 0 0 10px";
});
$(frepita).blur (function() {
if (rinput.value == '') {
rtext.style.fontSize = "1.5em";
rtext.style.margin = "18px 0 0 10px";
}
});