{"size": 9187, "ext": "js", "max_stars_repo_path": "js/main21.js", "max_stars_repo_name": "Mantecorso/LuisJuradoQ.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/main21.js", "max_issues_repo_name": "Mantecorso/LuisJuradoQ.github.io", "max_issues_repo_issues_event_min_datetime": "2021-07-18T18:13:00.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-18T18:13:02.000Z", "max_forks_repo_path": "js/main21.js", "max_forks_repo_name": "Mantecorso/LuisJuradoQ", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 36.3122529644, "max_line_length": 113, "alphanum_fraction": 0.517579188}
//alert('Tu pantalla mide'+this.screen.width);

window.addEventListener('load', function () {
    
    // menu navegador movil
    // ojo movil 360 pixel

    var poner1;
    poner1 = false;
    document.getElementById('menu1').addEventListener('click', function () {

        if (poner1 == false) {
            document.getElementById('menu2').style.left = "-400%";
            document.getElementById('menu222').style.display = "none";
            document.getElementById('menu111').style.display = "block";
            poner1 = true;
        } else {
            document.getElementById('menu2').style.left ="155%";
            document.getElementById('menu222').style.display = "block";
            document.getElementById('menu111').style.display = "none";
            poner1 = false;
        }    
    })

    document.getElementById('bot5').addEventListener('click', function () {
        if (poner1 == false) {
            document.getElementById('menu2').style.left = "-400%";
            poner1 = true;
        } else {
            document.getElementById('menu2').style.left ="155%";
            document.getElementById('menu222').style.display = "block";
            document.getElementById('menu111').style.display = "none";
            poner1 = false;
        }
    })

    // menu webs amigas

    var mostrar1;
    mostrar1 = false;
    document.getElementById('volver').addEventListener('click', function () {

        if (mostrar1 == false) {
            document.getElementById('web1').style.left = "5%";
            document.getElementById('web2').style.left = "5%";
            document.getElementById('web3').style.left = "5%";
            // document.getElementById('web4').style.left = "20%";
            mostrar1 = true;
        } else {
            document.getElementById('web1').style.left = "120%";
            document.getElementById('web2').style.left = "120%";
            document.getElementById('web3').style.left = "120%";
            // document.getElementById('web4').style.left = "120%";
            mostrar1 = false;
        }    
    })

    // document.getElementById('enviarf').addEventListener('click', function () {
    //     alert('Lo siento el formulario está en obras, mejor enviame un correo a luisjuradoquesada@gmail.com');
    // })
    document.getElementById('web1').addEventListener('mouseover', function () {
        document.getElementById('anadeImagen').style.backgroundImage = "url('./images/grel1.png')";
       
    })
    document.getElementById('web2').addEventListener('mouseover', function () {
        document.getElementById('anadeImagen').style.backgroundImage = "url('./images/horizontesinfinitos.png')";

    })
    document.getElementById('web3').addEventListener('mouseover', function () {
        document.getElementById('anadeImagen').style.backgroundImage = "url('./images/titiritubers1.png')";

    })

    document.getElementById('subeya').addEventListener('click', function () {
        window.scroll({
            top: 0,
            left: 0,
            behavior: "smooth"
        });
    })

    document.getElementById('iruno').addEventListener('click', function () {
        window.scroll({
            top: 4700,
            left: 0,
            behavior: "smooth"
        });
    })

    document.getElementById('irdos').addEventListener('click', function () {
        window.scroll({
            top: 1770,
            left: 0,
            behavior: "smooth"
        });
    })


    document.getElementById('irtres').addEventListener('click', function () {
        window.scroll({
            top: 3000,
            left: 0,
            behavior: "smooth"
        });
    })

    
    document.getElementById('ir1uno').addEventListener('click', function () {
        window.scroll({
            top: 3900,
            left: 0,
            behavior: "smooth"
        });
        document.getElementById('menu2').style.left ="155%";
        document.getElementById('menu222').style.display = "block";
        document.getElementById('menu111').style.display = "none";
        poner1 = false;
    })

    document.getElementById('ir2dos').addEventListener('click', function () {
        window.scroll({
            top: 1010,
            left: 0,
            behavior: "smooth"
        });
        document.getElementById('menu2').style.left ="155%";
        document.getElementById('menu222').style.display = "block";
        document.getElementById('menu111').style.display = "none";
        poner1 = false;
    })


    document.getElementById('ir3tres').addEventListener('click', function () {
        window.scroll({
            top: 2500,
            left: 0,
            behavior: "smooth"
        });
        document.getElementById('menu2').style.left ="155%";
        document.getElementById('menu222').style.display = "block";
        document.getElementById('menu111').style.display = "none";
        poner1 = false;
    })

    var nuevaWeb;
    nuevaWeb = document.getElementById('ima1');

    nuevaWeb.addEventListener('click', function() {
        //location.href = "https://www.google.es";
        location.href = "index2022.html";
    })

    if (window.screen.width < 935) {

            //para tamaño tablet y movil 

            window.addEventListener('scroll', function () {

                if (scrollY >= 200 && scrollY <= 550) {
                    //titulo diseño web
                    document.getElementById('tit2').style.left = "1%";
                } else {
                    document.getElementById('tit2').style.left = "-100%";
                }
                7
                if (scrollY >= 970 && scrollY <= 1900) {
                    //alert('hola caracola');
                    //trabajos
                    document.getElementById('trab2').style.opacity = "1";
                } else {
                    document.getElementById('trab2').style.opacity = "0";
                }
        
                if (scrollY >= 3700 && scrollY <= 4200) {
                    //quiensoy
                    document.getElementById('ima1').style.left = "5%";
                } else {
                    document.getElementById('ima1').style.left = "-100%";
                }
        
                if (scrollY >= 2400 && scrollY <= 2833) {
                    //contacto
                    document.getElementById('nuevo2').style.left = "15%";
                } else {
                    document.getElementById('nuevo2').style.left = "-100%";
                }
            })

        } else {

                // movimiento de divs e imagenes segun el scroll tamaño grande

            window.addEventListener('scroll', function () {

                    if (scrollY >= 400 && scrollY <= 1100) {
                    document.getElementById('tit2').style.left = "10%";
                } else {
                    document.getElementById('tit2').style.left = "-100%";
                }
                
                if (scrollY >= 1370 && scrollY <= 2000) {
                    document.getElementById('trab2').style.opacity = "1";
                } else {
                    document.getElementById('trab2').style.opacity = "0";
                }
            
                if (scrollY >= 4300 && scrollY <= 4900) {
                    document.getElementById('ima1').style.left = "1%";
                    document.getElementById('ima2').style.left = "26%";
                    document.getElementById('ima3').style.left = "51%";
                    document.getElementById('ima4').style.left = "76%";
            
                } else {
                    document.getElementById('ima1').style.left = "-100%";
                    document.getElementById('ima2').style.left = "-100%";
                    document.getElementById('ima3').style.left = "-100%";
                    document.getElementById('ima4').style.left = "-100%";
                }
            
                if (scrollY >= 2800 && scrollY <= 3333) {
                    document.getElementById('nuevo2').style.left = "15%";
                } else {
                    document.getElementById('nuevo2').style.left = "-100%";
                }
            })
    }

//cambio colores de fondo, claro oscuro

    var cambioya;
    cambioya = false;
    document.getElementById('cambifondi').addEventListener('click', function () {
        var corto;
        corto = document.documentElement;
            if (cambioya == false) {
                corto.style.setProperty('--color1', '#dfd9e2');
                corto.style.setProperty('--color2', '#2a7f62');
                corto.style.setProperty('--color5', '#c3acce');
                corto.style.setProperty('--color4', '#89909f');
                corto.style.setProperty('--color3', '#538083');
                cambioya = true;
            } else {
                corto.style.setProperty('--color1', '#2f3047');
                corto.style.setProperty('--color4', '#98b9ab');
                corto.style.setProperty('--color5', '#9bc995');
                corto.style.setProperty('--color3', '#5171a5');
                corto.style.setProperty('--color2', '#eef36a');
                cambioya = false;
            }
    })

})
