-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunciones.js
71 lines (49 loc) · 2.26 KB
/
funciones.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
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
var ancho= window.innerWidth;
var alto = window.innerHeight;
console.log("el ancho00 es " + ancho);
console.log("el alt00o es " + alto);
function abrirMenu() {
var divmenu = document.getElementById("menu-abierto");
var divmultimedia = document.getElementById("menu-multimedia");
if (getComputedStyle(divmenu).visibility != "visible") {
divmenu.style.animation = "aparecer 1s linear forwards";
if (getComputedStyle(divmultimedia).visibility == "visible") {
divmultimedia.style.animation = "desaparecer .5s linear forwards";
}
}else {
divmenu.style.animation = "desaparecer .5s linear forwards";
}
}
function multimedia() {
var divmenu = document.getElementById("menu-abierto");
var divmultimedia = document.getElementById("menu-multimedia");
if (getComputedStyle(divmultimedia).visibility != "visible") {
divmultimedia.style.animation = "aparecer 1s linear forwards";
if (getComputedStyle(divmenu).visibility == "visible") {
divmenu.style.animation = "desaparecer .5s linear forwards";
}
}else {
divmultimedia.style.animation = "desaparecer .5s linear forwards";
}
}
function clickexp(){
var divs = ["exp-geo", "exp-vel", "exp-motor", "exp-notifi", "exp-espejo", "exp-golpe", "exp-gas", "exp-moni"];
var quienllamo = event.target.id.split("-");
var comparar = "exp-" + quienllamo[1];
console.log("quien llamo fue " + comparar);
var div = document.getElementById(comparar);
div.style.animation = "aparecer 1s linear forwards";
for (var i=0; i < divs.length; i++) {
var css = document.getElementById(divs[i]);
console.log("el elemento " + divs[i] + "esta " + getComputedStyle(css).visibility);
if (getComputedStyle(css).visibility == "visible") {
css.style.animation = "desaparecer .5s linear forwards";
}
}
}
function linkWhats() {
window.open("https://wa.me/+525514522182", "_blank");
}
function linkPlataforma(){
window.open("http://gechdell.duckdns.org:8082", "_blank");
}