2 Commits
1.1 ... 1.2

Author SHA1 Message Date
9660dfda3f Stop calling the cards 'slides' in some places. 2019-08-04 22:46:46 -05:00
7d7a6ea24d Added README. 2019-08-04 22:43:51 -05:00
3 changed files with 15 additions and 5 deletions

10
README.md Normal file
View File

@ -0,0 +1,10 @@
Simple Flashcards takes a set of text values, one value per line, and shows
them to the user one at a time. It has the following features:
* Configurable timing between cards.
* Configurable size of the text (small, medium, and large).
* In-order, reverse-order, and random-order traversal of the cards.
* Support for saving/loading settings and inputs (locally to the browser).
* Support for importing/exporting saved card sets as a file.
Simple Flashcards is available at http://flashcards.jdbernard.com

View File

@ -20,8 +20,8 @@
</label>
<div id=adv-settings>
<label>
<span>Seconds per slide:</span>
<input type=number name=slidePeriod value=3>
<span>Seconds per card:</span>
<input type=number name=cardPeriod value=3>
</label>
<label>
<span>Show cards </span>

View File

@ -51,7 +51,7 @@
FC.$('input[name=saveSetName]').value ||
'new set',
cards: FC.itemsEl.value,
slidePeriod: parseInt(FC.$('input[name=slidePeriod]').value) || 3,
cardPeriod: parseInt(FC.$('input[name=cardPeriod]').value) || 3,
textSize: FC.$('select[name=textSize]').value || 'small',
sortOrder: FC.$('select[name=cardOrder]').value || 'in-order'
};
@ -62,7 +62,7 @@
FC.populateSettingsFromSet = function(set) {
FC.$('input[name=saveSetName]').value = set.name;
FC.itemsEl.value = set.cards;
FC.$('input[name=slidePeriod]').value = set.slidePeriod;
FC.$('input[name=cardPeriod]').value = set.cardPeriod;
FC.$('select[name=cardOrder]').value = set.sortOrder;
FC.$('select[name=textSize]').value = set.textSize;
};
@ -96,7 +96,7 @@
FC.$('html').requestFullscreen();
FC.showNextCard();
FC.runningInterval = setInterval(FC.showNextCard, FC.currentSet.slidePeriod * 1000);
FC.runningInterval = setInterval(FC.showNextCard, FC.currentSet.cardPeriod * 1000);
FC.bodyEl.classList.remove('settings-visible');
};