Advertisement
Guest User

Untitled

a guest
Oct 29th, 2016
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.95 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>Aliexpress TITLE</title>
  5.         <meta charset="UTF-8" />
  6.         <meta name="robots" content="noindex, nofollow" />
  7.         <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  8.         <style>
  9.         html, body { height: 100%; width: 100%; margin: 0; padding: 0; overflow: hidden; background: #ffffff; }
  10.         iframe { position: absolute; top: 0; left: 0; z-index: {RAND-3-1000}; width: 100%; height: 100%; border: 0; background: #ffffff; }
  11.         div { margin-top: {RAND-3-60}px; text-align: center; }
  12.         </style>
  13.     </head>
  14.     <body>
  15.         <div></div>
  16.         <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  17.         <script>
  18.         $(document).ready(function() {
  19.             var i = 1;
  20.             var o = 0;
  21.             if(++o == i) {
  22.                 var i = {RAND-1000-100000};
  23.                 var o = {RAND-1-999};
  24.                 if(i > o && true) {
  25.                     $('div').first().after('<iframe src="http://www.aliexpress.com/" class="video"></iframe>');
  26.                 }
  27.             }
  28.         });
  29.         function Unloader(){
  30.             var o = this;
  31.             this.unload = function(evt){
  32.                 var message = '';
  33.                 if (typeof evt == "undefined") {
  34.                     evt = window.event;
  35.                 }
  36.                 if (evt) {
  37.                     evt.returnValue = message;
  38.                 }
  39.                 return message;
  40.             }
  41.          
  42.             this.resetUnload = function()
  43.             {
  44.                 $(window).off('beforeunload', o.unload);
  45.          
  46.                  setTimeout(function(){
  47.                     $(window).on('beforeunload', o.unload);
  48.                 }, 1000);
  49.             }
  50.          
  51.             this.init = function()
  52.             {
  53.                 $(window).on('beforeunload', o.unload);
  54.          
  55.                 $('a').on('click', o.resetUnload);
  56.                 $(document).on('submit', 'form', o.resetUnload);
  57.               // F5 ΠΈ Ctrl+F5, Enter
  58.               $(document).on('keydown', function(event){
  59.                if((event.ctrlKey && event.keyCode == 116) || event.keyCode == 116 || event.keyCode == 13){
  60.                o.resetUnload();
  61.                }
  62.                      });    
  63.             }
  64.             this.init();
  65.         }
  66.          
  67.         $(function(){
  68.             if(typeof window.obUnloader != 'object')
  69.             {
  70.                 window.obUnloader = new Unloader();
  71.             }
  72.         });
  73.         </script>
  74.     </body>
  75. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement