<commit_before>/**
 * Handles writting the notes to the browser console in synchronization with the reveal.js
 */
var ConsoleNotes = (function() {

    function log(event) {
	    // event.previousSlide, event.currentSlide, event.indexh, event.indexv
	    var notes = event.currentSlide.querySelector(".notes");
	    
		if (notes) {
	        console.info(notes.innerHTML.replace(/\n\s+/g, "\n"));
	    }
    }
	
    // Fires when slide is changed
    Reveal.addEventListener("slidechanged", log);
})();<commit_msg>Add load event handler for browser console speaker notes plugin<commit_after>/**
 * Handles writting the notes to the browser console in synchronization with the reveal.js
 */
var ConsoleNotes = (function() {

    function log(event) {
	    // event.previousSlide, event.currentSlide, event.indexh, event.indexv
	    var notes = event.currentSlide.querySelector(".notes");
	    
		if (notes) {
	        console.info(notes.innerHTML.replace(/\n\s+/g, "\n"));
	    }
    }
	
    // Fires when reveal.js has loaded all (synchronous) dependencies and is ready to start navigating
    Reveal.addEventListener("ready", log);

    // Fires when slide is changed
    Reveal.addEventListener("slidechanged", log);
})();
{'fraction_non_alphanumeric': 0.12755519215044972, 'fraction_numerical': 0.0, 'mean_word_length': 3.25, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1159229', 'n_tokens_mistral': 368, 'n_tokens_neox': 343, 'n_words': 99}