Advertisement
Guest User

Untitled

a guest
May 27th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. 1. When editing your tumblr page, go to "Edit HTML"
  2.  
  3. 2. Paste this immediately AFTER the "<head>" tag near the top of the page:
  4. <link rel="stylesheet" href="//owlet57.github.io/CurtainBlock/CurtainBlock.css">
  5.  
  6. 3. Paste this immediately AFTER the "<body>" tag:
  7. <div class="CurtainBlock">
  8. <div class="CurtainBlockAlert">
  9. <!-- The Alert -->
  10. <noscript>This website requires Javascript.</noscript>
  11. <h1>Whoa there partner!</h1>
  12. <p>This page contains art and material not suitable for people under the age of 18+. If you would like to avoid that stuff, you can exit this page and view my other artworks on my other tumblr by clicking the "Get me outta here!" button below! If you dare continue on, click enter!</p>
  13. <button class="CurtainBlockConfirm">Enter</button>
  14. <button class="CurtainBlockDeny">Get me outta here!</button>
  15. </div>
  16. </div>
  17.  
  18. 4. Paste this immediately BEFORE the "</body>" at the very end of the page:
  19. <script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
  20. <script src="//owlet57.github.io/CurtainBlock/CurtainBlock.min.js"></script>
  21. <script>
  22. CurtainBlock(true,false,"//safesite.com/");
  23. </script>
  24.  
  25. In step three, you can replace the warning message content, as well as what each of the two buttons say.
  26. In step four, you can replace the "safesite.com" with the redirect URL of your choice.
  27. Hopefully this still works!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement