Skip to content
Snippets Groups Projects
Forked from spnati / spnati
31933 commits behind the upstream repository.
ReformCopyright's avatar
ReformCopyright authored
1. localStorage is used instead of a cookie. Multiple entries are used, and keys have a prefix to avoid any collisions when hosted on other sites.

2. The existing cookie is converted so as not to lose unlocked endings in particular. This code can be dropped some time in the future.

3. Option values are handled and stored as-is intead of as opaque indices from 1 and up. For time values, this has the disadvantage that if we modify what e.g. "Slow" means, the old value will still be used until the user chooses a new option, but the advantages that we can later add more options or change the input elements to sliders without problems, plus the disadvantage can also be an advantage. Above all, there's no conversion back and forth and default values aren't specified in three or four places.

4. Option change event handles are attached with jQuery and the option values stored in attributes.

5. Backgrounds are renamed and moved to a subdirectory (that could have been done anyway; it's not a direct result of 3).

6. Clothes selections are stored as arrays of article names instead of 18 true/false values.

7. No separate askedUsageTracking flag. If no usageTracking value is in localStorage, then we haven't asked. Similarily, null is used for FORFEIT_DELAY and ENDING_DELAY to represent Disabled.
9878e883
History
Name Last commit Last update
..
backgrounds
all.png LFS
any.png LFS
bisexual.jpg LFS
blankcard.jpg LFS
clubs.jpg LFS
clubs1.jpg LFS
clubs10.jpg LFS
clubs11.jpg LFS
clubs12.jpg LFS
clubs13.jpg LFS
clubs2.jpg LFS
clubs3.jpg LFS
clubs4.jpg LFS
clubs5.jpg LFS
clubs6.jpg LFS
clubs7.jpg LFS
clubs8.jpg LFS
clubs9.jpg LFS
diamo.jpg LFS
diamo1.jpg LFS
diamo10.jpg LFS
diamo11.jpg LFS
diamo12.jpg LFS
diamo13.jpg LFS
diamo2.jpg LFS
diamo3.jpg LFS
diamo4.jpg LFS
diamo5.jpg LFS
diamo6.jpg LFS
diamo7.jpg LFS
diamo8.jpg LFS
diamo9.jpg LFS
enter-ntr.png LFS
enter.png LFS
epilogue_icon.png LFS
female.png LFS
female_large.png LFS
female_medium.png LFS
female_small.png LFS
gallery.svg
heart.jpg LFS
heart1.jpg LFS
heart10.jpg LFS
heart11.jpg LFS
heart12.jpg LFS
heart13.jpg LFS
heart2.jpg LFS
heart3.jpg LFS
heart4.jpg LFS
heart5.jpg LFS
heart6.jpg LFS
heart7.jpg LFS
heart8.jpg LFS
heart9.jpg LFS
icon.ico
icon.jpg LFS
incomplete-badge.png LFS
layers1.png LFS
layers2.png LFS
layers3.png LFS
layers4.png LFS
layers5.png LFS
layers6.png LFS
layers7.png LFS
layers8.png LFS
layers9.png LFS
male.png LFS
male_large.png LFS
male_medium.png LFS
male_small.png LFS
offline-badge.png LFS
online-badge.png LFS
poker-hands-help.jpg LFS
reddit.png LFS
spade.jpg LFS
spade1.jpg LFS
spade10.jpg LFS
spade11.jpg LFS
spade12.jpg LFS
spade13.jpg LFS
spade2.jpg LFS
spade3.jpg LFS
spade4.jpg LFS
spade5.jpg LFS
spade6.jpg LFS
spade7.jpg LFS
spade8.jpg LFS
spade9.jpg LFS
testing-badge.png LFS
title.png LFS
unknown.jpg LFS
unknown.svg
unknown_s.jpg LFS