Is there any way to password protect my flip book? #563

Open
yuppicide opened this Issue Sep 27, 2016 · 3 comments

Projects

None yet

2 participants

@yuppicide

I fooled around with one of the examples, Magazine. Changed some stuff, got my flip book looking pretty nice.

Is there a way I can password protect this either with turn.js or another method?

@odahcam
odahcam commented Sep 29, 2016 edited

There are many ways. if you really wanna protect your flipingbook, don't use just JS.

@yuppicide

When I say "protect" I didn't care about real security. Just a simple way to keep normal people out. Anyway, I figured it out. Thanks.

@odahcam
odahcam commented Sep 29, 2016

So put a display: none on your flipingbook element and place a button on it's place. Call an auth prompt on button click (JS) and then auth the visualisation with the password inserted in prompt. If the user inserts the right password, you can show your flipingbook element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment