This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# MRF-Atenea script to make automatic slides. | |
echo -n Username: | |
read username | |
echo -n Password: | |
read -s password | |
curl -u $username:$password -X POST -H 'Content-Type: application/json' -d '{ | |
"type":"page", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var reveal = document.querySelector('.reveal'); | |
if (reveal) { | |
var title = document.querySelector('head title').innerText; | |
/* Send hit on slide change */ | |
Reveal.addEventListener('slidechanged', function () { | |
ga('send', 'event', 'Decks', title, 'Changed current Slide', Reveal.getIndices().h); |