Skip to content

Commit

Permalink
Netpromoterscore
Browse files Browse the repository at this point in the history
  • Loading branch information
JSat3st committed Jun 23, 2022
1 parent 3c332aa commit 24ca96c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/themes/custom/relaunch2018/css/global.css

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion web/themes/custom/relaunch2018/js/netpromoterscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ function checkCookie() {
setCookie("netpromoterscore", 3, 90);
document.getElementById('netpromoterscore').classList.add('show')
}
else {
if (user == 3) {
// setCookie("netpromoterscore", 3, 90);
// document.getElementById('netpromoterscore').classList.add('show')
}
}

4 changes: 4 additions & 0 deletions web/themes/custom/relaunch2018/relaunch2018.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,7 @@ view-faq:
dependencies:
- core/jquery
- relaunch2018/jquery-easing
netpromoterscore:
version: 1.0
js:
js/netpromoterscore.js: {}
10 changes: 8 additions & 2 deletions web/themes/custom/relaunch2018/scss/custom/netpromoterscore.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#netpromoterscore {
#netpromoterscore .active{
width: 100vw;
height: 100vh;
position: fixed;
background-color: #fff;
z-index: 999;
z-index: 99;
top: 0;
overflow: hidden;
}

#netpromoterscore form#webform-submission-netpromoterscore-add-form {
max-width: 800px;
margin: auto;
z-index: 999;
}

0 comments on commit 24ca96c

Please sign in to comment.