{"size": 1686, "ext": "js", "max_stars_repo_path": "js/sitio.js", "max_stars_repo_name": "4cream/mevesdigital-beta", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/sitio.js", "max_issues_repo_name": "4cream/mevesdigital-beta", "max_issues_repo_issues_event_min_datetime": "2019-03-04T02:16:54.000Z", "max_issues_repo_issues_event_max_datetime": "2019-03-15T03:17:10.000Z", "max_forks_repo_path": "js/sitio.js", "max_forks_repo_name": "4cream/mevesdigital-beta", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 26.34375, "max_line_length": 100, "alphanum_fraction": 0.5023724792}
/*-----------------------------
INICIALIZANDO EL SMOOTH scroll
------------------------------*/

// smoothScroll.init({  Metodo antiguo, visto en Master en bootstrap
//     speed: 1000, // Integer. How fast to complete the scroll in milliseconds
//     offset: 60, // Integer. How far to offset the scrolling anchor location in pixels
//
// });

var scroll = new SmoothScroll('a[href="#servicios"]', {
	speed: 800,
  offset: -5
});

var scroll = new SmoothScroll('a[href="#encabezado"]', {
                          // ('a[href*="#"]') para seleccionar todos los a href
	speed: 300
});

var scroll = new SmoothScroll('a[href="#eligenos"]', {
	speed: 1000,
  offset: -10
});

var scroll = new SmoothScroll('a[href="#paginas-web"]', {
	speed: 500,
  offset: -100
});
var scroll = new SmoothScroll('a[href="#tiendas"]', {
	speed: 400,
  offset: -100
});
var scroll = new SmoothScroll('a[href="#marketing"]', {
	speed: 300,
  offset: -100
});

// offset: 50 esto es para generar el scroll solo hasta el numero en px que corresponde a la ventana

/*-----------------------------
------------------------------*/

/*---------------------------------
    OCULTAR Y MOSTRAR BOTON IR ARRIBA
 ----------------------------------*/
$(function () {
    $(window).scroll(function () {
        var scrolltop = $(this).scrollTop();
        if (scrolltop >= 50) {
            $(".ir-arriba").fadeIn(500); // cambie el fadeIn() por ese .hide()
        } else {
            $(".ir-arriba").fadeOut(); // cambie el fadeOut() por ese .show()
        }
    });

});

/*---------------------------------
    WOW.JS y ANIMATE.CSS.
 ----------------------------------*/

 new WOW().init();  // Iniciamos wow.js
