Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="emailAddress"><span merge-tag="{{user.email}}">email@email.com</span></div>
- var emailAddress = $('#emailAddress span').text();
- console.log(emailAddress);
- $(document).ready(function() {
- if (emailAddress == 'email@email.com') {
- $('#wpcSection_2778753').show();
- }
- else if (emailAddress == 'email2@email.com') {
- $('#section2').show();
- }
- else if (emailAddress == 'email3@email.com') {
- $('#section3').show();
- }
- else {
- $('#default-content').show();
- }
- });
- .wpcPage_post_participation .wpcSection:nth-child(n+2) {display: none;}
Add Comment
Please, Sign In to add comment