SHARE
TWEET

Untitled

a guest Feb 8th, 2014 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if(is_home() || is_front_page()): wp_enqueue_script( 'jquery' ); ?>
  3. <style>
  4. #gate_out{
  5.         display: block; position: fixed; top: 0%; left: 0%;     width: 100%; height: 100%; background-color: #000;
  6.         z-index:1001; -moz-opacity: 0.95; opacity:.95; filter: alpha(opacity=95);
  7. }
  8.  
  9. #gate_in {
  10.         display: block; position: absolute;     text-align:center; top: 25%; left: 25%; width: 50%;     height: 30%;
  11.         padding: 16px; border: 10px solid red;  background-color: #fff; z-index:1002; overflow: auto;
  12. }
  13.  
  14. #gate_buttons { width: 400px; height: 100px; margin: 50px auto; }
  15. #gate_buttons a { float:left; display: block; width: 100px; height: 40px; margin: 0 50px; color: #fff; font-size: 24px; font-weight: bold; }
  16. #gate_buttons .red { background-color:red; }
  17. #gate_buttons .green { background-color:green; }
  18. </style>
  19. <script>
  20. jQuery(document).ready(function($){
  21.  jQuery('#gate_buttons .green').click( function() { jQuery('#gate_out').hide(); return false; });
  22.  jQuery('#gate_buttons .red').click( function() { document.location.href='http://google.com/'; return false; });
  23. });
  24. </script>
  25. <div id="gate_out">
  26. <div id="gate_in">
  27. Czy masz 18 lat?
  28. <div id="gate_buttons">
  29. <a href="#" class="red">NIE</a><a href="#" class="green">TAK</a>
  30. </div>
  31. </div>
  32. </div>
  33. <?php endif; ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top