<commit_before>/*
 * Este archivo contiene:
 * La inicialización a la presentacion de Reveal.js
 * Funciones de animacion de íconos SVG
 * Listeners de cada sección
 *
 *
 * MIT licensed
 */


var posicion = $('#posicion');
var numero = $('#numero');
var leyenda = $("#leyenda");

Reveal.initialize({
    controls: false,
    progress: false,
    history: false,
    center: true,
    width: 1400,
    height: 700,
    theme: 'microdancing', // available themes are in /css/theme
    transition: 'fade', // default/cube/page/concave/zoom/linear/fade/none
    dependencies: [
        { src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
        { src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
    ]
});

Reveal.addEventListener( 'ready', function( event ) {

}, false);

Reveal.addEventListener('inicio', function(event) {
    var creative = $('#creative-content');
    var tl1 = new TimelineMax();
    tl1.to(creative, 0.4, { opacity: 1 });
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0.4, { opacity: 0 });
}, false);

Reveal.addEventListener('gobierno', function(event) {

    var creative = $('#creative-content');
    var tl1 = new TimelineMax();
    tl1.to(creative, 0.4, { opacity: 0.5 });
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0.4, { opacity: 1.0 });

}, false);

Reveal.addEventListener('gobierno-final', function(event) {
    numero.html("01");
    leyenda.html("<NAME>");
}, false);

Reveal.addEventListener('internet', function(event) {
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0, { opacity: 0 });
    numero.html("02");
    leyenda.html("Internet de las cosas");
    tl2.to(posicion, 0.5, { opacity: 1.0 });
}, false);

Reveal.addEventListener('internet-final', function(event) {
    numero.html("02");
    leyenda.html("Internet de las cosas");
}, false);

Reveal.addEventListener('datos', function(event) {
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0, { opacity: 0 });
    numero.html("03");
    leyenda.html("Datos en Tiempo Real");
    tl2.to(posicion, 0.5, { opacity: 1 });
}, false);

Reveal.addEventListener('datos-final', function(event) {
    numero.html("03");
    leyenda.html("Datos en Tiempo Real");
}, false);

Reveal.addEventListener('prototipo', function(event) {
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0, { opacity: 0 });
    numero.html("04");
    leyenda.html("Prototipo Dashboard");
    tl2.to(posicion, 0.5, { opacity: 1 });
}, false);

Reveal.addEventListener('prototipo-final', function(event) {
    var creative = $('#creative-content');
    var tl2 = new TimelineMax();
    tl2.to(creative, 0.4, { opacity: 0.5 });

    var tl2 = new TimelineMax();
    tl2.to(posicion, 0.4, { opacity: 1 });

    numero.html("04");
    leyenda.html("Prototipo Dashboard");
}, false);

Reveal.addEventListener('gracias', function(event) {
    var creative = $('#creative-content');
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0, { opacity: 0 });
    var tl1 = new TimelineMax();
    tl1.to(creative, 0.4, { opacity: 1 });
}, false);

Reveal.addEventListener('slidechanged', function(event) {
    // todas las diapos
    console.log(event.currentSlide.children.length);
}, false);
<commit_msg>Agrego animaciones a todas las secciones<commit_after>/*
 * Este archivo contiene:
 * La inicialización a la presentacion de Reveal.js
 * Listeners de cada sección
 *
 *
 * MIT licensed
 */

var posicion = $('#posicion');
var numero = $('#numero');
var leyenda = $("#leyenda");

Reveal.initialize({
    controls: false,
    progress: false,
    history: false,
    center: true,
    width: 1400,
    height: 700,
    theme: 'microdancing', // available themes are in /css/theme
    transition: 'fade', // default/cube/page/concave/zoom/linear/fade/none
    dependencies: [
        { src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
        { src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
    ]
});

Reveal.addEventListener( 'ready', function( event ) {

}, false);

Reveal.addEventListener('inicio', function(event) {
    var creative = $('#creative-content');
    var tl1 = new TimelineMax();
    tl1.to(creative, 0.4, { opacity: 1 });
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0.4, { opacity: 0 });
}, false);

Reveal.addEventListener('gobierno', function(event) {

    var creative = $('#creative-content');
    var tl1 = new TimelineMax();
    tl1.to(creative, 0.4, { opacity: 0.5 });
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0.4, { opacity: 1.0 });

}, false);

Reveal.addEventListener('gobierno-final', function(event) {
    numero.html("01");
    leyenda.html("<NAME>");
}, false);

Reveal.addEventListener('internet', function(event) {
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0, { opacity: 0 });
    numero.html("02");
    leyenda.html("Internet de las cosas");
    tl2.to(posicion, 0.5, { opacity: 1.0 });
}, false);

Reveal.addEventListener('internet-final', function(event) {
    numero.html("02");
    leyenda.html("Internet de las cosas");
}, false);

Reveal.addEventListener('datos', function(event) {
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0, { opacity: 0 });
    numero.html("03");
    leyenda.html("Datos en Tiempo Real");
    tl2.to(posicion, 0.5, { opacity: 1 });
}, false);

Reveal.addEventListener('datos-final', function(event) {
    numero.html("03");
    leyenda.html("Datos en Tiempo Real");
}, false);

Reveal.addEventListener('prototipo', function(event) {
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0, { opacity: 0 });
    numero.html("04");
    leyenda.html("Prototipo Dashboard");
    tl2.to(posicion, 0.5, { opacity: 1 });
}, false);

Reveal.addEventListener('prototipo-final', function(event) {
    var creative = $('#creative-content');
    var tl2 = new TimelineMax();
    tl2.to(creative, 0.4, { opacity: 0.5 });

    var tl2 = new TimelineMax();
    tl2.to(posicion, 0.4, { opacity: 1 });

    numero.html("04");
    leyenda.html("Prototipo Dashboard");
}, false);

Reveal.addEventListener('gracias', function(event) {
    var creative = $('#creative-content');
    var tl2 = new TimelineMax();
    tl2.to(posicion, 0, { opacity: 0 });
    var tl1 = new TimelineMax();
    tl1.to(creative, 0.4, { opacity: 1 });
}, false);

Reveal.addEventListener('slidechanged', function(event) {
    // todas las diapos

    var tl = new TimelineMax();
    var contentOpenData;



    for (var i = 0; i < event.currentSlide.children.length ; i++){
        var tag = event.currentSlide.children[i].localName;
        if (tag == "h1"){
            var contentOpenData = $(event.currentSlide.children[i]);
            TweenLite.set(contentOpenData, {
                perspective: 700
            });
            tl.staggerFrom(contentOpenData, 0.75, {
                autoAlpha: 0,
                rotationX: -100,
                transformOrigin: "50% top -250",
                ease: Power1.easeInOut
            }, 0.05);
        }
        if (tag == "ul"){
            for (var p = 0; p < event.currentSlide.children[i].children.length ; p++){

                var contentOpenData = $(event.currentSlide.children[i].children[p]);

                tl.staggerFrom(contentOpenData, 0.75, {
                    autoAlpha: 0,
                    rotationX: -100,
                    ease: Power1.easeInOut
                }, 0.05);

            }
        }
    }
}, false);



/*
    tl.staggerFrom(contentOpenData, 0.75, {
        autoAlpha: 0,
        rotationX: -100,
        transformOrigin: "50% top -250",
        ease: Power1.easeInOut
    }, 0.05);

*/
{'fraction_non_alphanumeric': 0.17054865424430643, 'fraction_numerical': 0.029114906832298136, 'mean_word_length': 3.05083857442348, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '187690', 'n_tokens_mistral': 2787, 'n_tokens_neox': 2618, 'n_words': 575}