IIF you are bored and have nothing else to do... I'd like to make a suggestion for an update.
Please have a look at this comment. While the letters D, C, B, A and S are relatively well separated on a keyboard, dropdown lists with all options listed under one another seem to be prone to user errors—a wrong click happens easier than a mistyped letter.
So it would be really cool to have a function that checks for double entries and displays a big alert if there are two entries for the same card. Could be triggered each time an item is chosen from a dropdown list.
This would be really useful as I couldn't use several of the last user contributions due to double entries. What do you think?
The counter is a good idea! I have a column in my Excel sheet that displays the sum of cards for each box so I can see if I made a mistake.
I was more worrying about the double entries, for example "2 Exhaust - D, ..., 4 Exhaust D". This apparently was a click error while choosing from the dropdown list, but unfortunately it made the data unusable.
The latest version is always linked on Adding data (currently last point in section General).
Display a counter of the number of cards already entered. Should be the sum of all nums from parts inside the entries array, shouldn't it? But this is already part of the converter function; we'd need it already while typing in the data.
Display a warning if there is a double entry for a card.
Hi guys, good ideas. It will require a little bit more playing with JS / DOM, but I will try to look at it. :) I will possibly use the blank area to the right of the current textarea, or add an area just above it, to display some "on-the-fly" information and warnings for the currently edited line...
OK, so here we go: v1.2.0. Can you please test it out? Apart from the new GUI stuff, I reused and extended the existing CSV converter code for the actual check on duplicates and so on. If you will like it, one of us could maybe also prepare new illustrative screenshots, provided we are not too lazy to do so... ;)
Some trivia about the change made: It's 136 new source code lines, which is about 25% increase of total count, and it took me the whole afternoon to implement. Luckily, it was fun to do, refreshing and extending my JS skills. :)
Ups :) Yes, the wiki seems to replace all valid "&xyz;" escapes by the corresponding characters when showing the page. So the solution is to copy-paste the source code directly from the wiki source editor, or better: we need to always double-escape the HTML code before putting it into this wiki, i. e. replace all "&" by "&".
Ups, sure, sorry. :) The thing is you need to save the copy-pasted HTML in UTF-8 encoding to get the correct accents - I've just put that additional information to the wiki page here.
I think these technical problems show us, it would probably really be better to host the editor on github.io or somewhere else, so the users don't need to worry about managing the HTML file themselves... I will maybe look at this possibility, which shouldn't be too hard, provided there will be a real interest in the editor. :)
Encoding is fine now that I saved the file in UTF-8.
One little thing, but only because of my Monk-like perfectionism and not really affecting the overall functionality:
The sum and alert line does not update when the user chooses an item from the list; it does so only when the entry field gets the focus again. This leaves the item count at "n-1" after the last item if the text field does not get the focus again.
Does the imported Awesomecomplete script provide an event that could be used to trigger the updating instead?