Guest User

Untitled

a guest
Mar 15th, 2018
763
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <div id="emailAddress"><span merge-tag="{{user.email}}">email@email.com</span></div>
  2.  
  3. var emailAddress = $('#emailAddress span').text();
  4. console.log(emailAddress);
  5.  
  6. $(document).ready(function() {
  7. if (emailAddress == 'email@email.com') {
  8. $('#wpcSection_2778753').show();
  9. }
  10.  
  11. else if (emailAddress == 'email2@email.com') {
  12. $('#section2').show();
  13. }
  14.  
  15. else if (emailAddress == 'email3@email.com') {
  16. $('#section3').show();
  17. }
  18.  
  19. else {
  20. $('#default-content').show();
  21. }
  22. });
  23.  
  24. .wpcPage_post_participation .wpcSection:nth-child(n+2) {display: none;}
Add Comment
Please, Sign In to add comment