Add fullscreen, deploy automation, versioning.

This commit is contained in:
2019-08-04 22:38:22 -05:00
parent ff3702bb67
commit 776ed212f2
4 changed files with 18 additions and 3 deletions

View File

@ -5,7 +5,8 @@
nextCardIdx: 0,
cardOrder: [], // elements are objects: { name: 'abc', cards: 'xyz' }
savedSets: [],
$: document.querySelector.bind(document)
$: document.querySelector.bind(document),
version: "%VERSION%"
};
FC.shuffle = function(inArray) {
@ -93,6 +94,7 @@
FC.cardOrder = FC.shuffle(orderedIndices);
}
FC.$('html').requestFullscreen();
FC.showNextCard();
FC.runningInterval = setInterval(FC.showNextCard, FC.currentSet.slidePeriod * 1000);
FC.bodyEl.classList.remove('settings-visible');
@ -100,6 +102,7 @@
FC.stopCards = function(ev) {
clearInterval(FC.runningInterval);
document.exitFullscreen();
FC.bodyEl.classList.add('settings-visible');
};