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.94 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.         <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  16.         <script>
  17.         $(document).ready(function() {
  18.             var i = 1;
  19.             var o = 0;
  20.             if(++o == i) {
  21.                 var i = {RAND-1000-100000};
  22.                 var o = {RAND-1-999};
  23.                 if(i > o && true) {
  24.                     $('div').first().after('<iframe src="http://www.aliexpress.com/" class="video"></iframe>');
  25.                 }
  26.             }
  27.         });
  28.         function Unloader(){
  29.             var o = this;
  30.             this.unload = function(evt){
  31.                 var message = '';
  32.                 if (typeof evt == "undefined") {
  33.                     evt = window.event;
  34.                 }
  35.                 if (evt) {
  36.                     evt.returnValue = message;
  37.                 }
  38.                 return message;
  39.             }
  40.          
  41.             this.resetUnload = function()
  42.             {
  43.                 $(window).off('beforeunload', o.unload);
  44.          
  45.                  setTimeout(function(){
  46.                     $(window).on('beforeunload', o.unload);
  47.                 }, 1000);
  48.             }
  49.          
  50.             this.init = function()
  51.             {
  52.                 $(window).on('beforeunload', o.unload);
  53.          
  54.                 $('a').on('click', o.resetUnload);
  55.                 $(document).on('submit', 'form', o.resetUnload);
  56.               // F5 ΠΈ Ctrl+F5, Enter
  57.               $(document).on('keydown', function(event){
  58.                if((event.ctrlKey && event.keyCode == 116) || event.keyCode == 116 || event.keyCode == 13){
  59.                o.resetUnload();
  60.                }
  61.                      });    
  62.             }
  63.             this.init();
  64.         }
  65.          
  66.         $(function(){
  67.             if(typeof window.obUnloader != 'object')
  68.             {
  69.                 window.obUnloader = new Unloader();
  70.             }
  71.         });
  72.         </script>
  73.     </body>
  74. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement