michaelsoriano / age-check Goto Github PK
View Code? Open in Web Editor NEWjQuery plugin to verify if user is old enough to enter site. Published March 8, 2015
License: GNU General Public License v3.0
jQuery plugin to verify if user is old enough to enter site. Published March 8, 2015
License: GNU General Public License v3.0
We love this library and it's super useful. However, it has two downsides for our implementation.
If we use sessionStorage
the user is prompted for an age check every time they revisit our page after closing their browser. If we use localStorage
, they're potentially only ever prompted once, and never again until their browser decides to remove that localStorage value.
We'd love a way to have a limited time of remembering before they're prompted again; not every time but not never.
I can work on submitting a PR that adds cookie storage with configurable expiration if that is something deemed a worthwhile effort. Let me know if this feature would be useful.
The generic class name used to get the values of the input before validation could cause a conflict on a page where the classes are already in use.
In my site, for example, the day class was already in use so the validation will intermittently fail.
Michael,
How can a 'bailout' or 'Exit' button be added to your script so it does not get hung-up on the missing invalid month/day/year entry? I've added a new button (next to the submit button) so users can Exit the age verification (they will be directed to http://www.disney.com/) all together. However, the screen is getting stuck on the wrong Month/Day/Year screen and not going to the redirect. Thanks in advance for any assistance you can provide.
Mike,
This has been brought up on the Q/A's of your site with no resolution. I've tested your demo on every installed browser and IE11 is the only one not showing the Age Checker popup. I checked IE11's settings and found all were set to the 'default' settings. I understand you have tested IE11 and Age Checker with no issues... so, what settings beyond this browser 'default' settings are you using. I've checked that Popup Blocker is not active and Script options are set to allow Javascript. Thanks in advance for your assistance.
The current version of gulp-minify has a dependency issue: https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.