Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(is_home() || is_front_page()): wp_enqueue_script( 'jquery' ); ?>
- <style>
- #gate_out{
- display: block; position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: #000;
- z-index:1001; -moz-opacity: 0.95; opacity:.95; filter: alpha(opacity=95);
- }
- #gate_in {
- display: block; position: absolute; text-align:center; top: 25%; left: 25%; width: 50%; height: 30%;
- padding: 16px; border: 10px solid red; background-color: #fff; z-index:1002; overflow: auto;
- }
- #gate_buttons { width: 400px; height: 100px; margin: 50px auto; }
- #gate_buttons a { float:left; display: block; width: 100px; height: 40px; margin: 0 50px; color: #fff; font-size: 24px; font-weight: bold; }
- #gate_buttons .red { background-color:red; }
- #gate_buttons .green { background-color:green; }
- </style>
- <script>
- jQuery(document).ready(function($){
- jQuery('#gate_buttons .green').click( function() { jQuery('#gate_out').hide(); return false; });
- jQuery('#gate_buttons .red').click( function() { document.location.href='http://google.com/'; return false; });
- });
- </script>
- <div id="gate_out">
- <div id="gate_in">
- Czy masz 18 lat?
- <div id="gate_buttons">
- <a href="#" class="red">NIE</a><a href="#" class="green">TAK</a>
- </div>
- </div>
- </div>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement