Skip to content

Commit 0363eb5

Browse files
committed
open modal on hash url
1 parent 1c8bf21 commit 0363eb5

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/website/ccpa-modal.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
export function CCPAModal() {
22
document.addEventListener("DOMContentLoaded", function () {
3+
if(window.location.hash.substring(1) === 'your-privacy-choices') {
4+
document.querySelector("#ccpa-modal").style.display = "block";
5+
}
36
document.querySelector("#open-ccpa").addEventListener("click", () => {
47
document.querySelector("#ccpa-modal").style.display = "block";
58
});

stylus/website/index.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,8 @@ footer
12451245
background: none
12461246
padding: 0
12471247
border: none
1248+
.ccpa-toggle
1249+
max-width: 39px
12481250

12491251
.logo
12501252
height 18px
@@ -1286,6 +1288,7 @@ footer
12861288
text-align: left
12871289
+breakpoint("tablet")
12881290
width: 50%
1291+
max-width: 670px
12891292
#close-ccpa
12901293
background: none
12911294
border: none

views/website/layout.pug

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ html(lang='en')
5757
span •
5858
a(href='https://auth0.com/web-terms', target="_blank")
5959
| Terms of Service
60+
span •
61+
button.as-anchor#open-ccpa
62+
| Your Privacy Choices
63+
img.ccpa-toggle(src='https://cdn.auth0.com/website/footer/ccpa.svg' alt='Privacy choices')
6064
a(href='https://auth0.com/developers/', target="_blank")
6165
| Supported by
6266
img(src='/img/ico_logo.svg' alt='Supported by Auth0 - JWT.io Token Based Authentication').logo

0 commit comments

Comments
 (0)