Frontend Development

Age restriction popup

Submitted by CannabaPanda, , Thread ID: 29287

Thread Closed
08-02-2017, 08:23 PM
#1
Hey guys!

So long story short I work in the Marijuana industry here in CO and am designing my companies new website in Bootstrap. For legal compliance, I have to have a 18+ popup or page, but have no idea how to do it. The old website had one, but it would pop up on every page or any time you'd refresh it...which was really fucking annoying.

Any ideas?
[Image: bF846X.jpg]

RE: Age restriction popup

#2
http://stackoverflow.com/questions/24494...-via-cache
[Image: InZ3hGx.png]

RE: Age restriction popup

#3
08-02-2017, 08:27 PM
Faded Wrote:
http://stackoverflow.com/questions/24494...-via-cache

This should work.
However, you could also do this with cookies.

RE: Age restriction popup

OP
#4
I can just drop that script anywhere and it'll do a 1 time pop up?
[Image: bF846X.jpg]

RE: Age restriction popup

#5
08-02-2017, 08:34 PM
CannabaPanda Wrote:
I can just drop that script anywhere and it'll do a 1 time pop up?

Stop being lazy and read what's actually written there. Do some research.
Why are you even working on a website with no apparent knowledge on scripting?
[Image: InZ3hGx.png]

RE: Age restriction popup

OP
#6
08-02-2017, 08:41 PM
Faded Wrote:
Stop being lazy and read what's actually written there. Do some research.
Why are you even working on a website with no apparent knowledge on scripting?

I did read through it, but nowhere on there does it say where to put the script in my current document.

I familiar with scripting, but it's been years since I've done it...no need to be a dick.
[Image: bF846X.jpg]

Users browsing this thread: 1 Guest(s)