A very simple and lightweight redirect gateway.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>Redirecting..</title>
  7. <meta name="robots" content="noindex, nofollow">
  8. <meta name="referrer" content="never">
  9. <script>
  10. var i = 2;
  11. var interval = setInterval(function(){
  12. i--;
  13. if (i <= 0){
  14. document.getElementById('in').style.display = 'none';
  15. var iframe = document.createElement('iframe');
  16. var url = decodeURIComponent(window.top.location.toString().replace(/^.*\?to=(.*)$/, '$1'));
  17. iframe.style.display = 'none';
  18. iframe.src = 'javascript:window.top.location.replace("'+url.replace(/"/g, '&quot;')+'")';
  19. iframe.referrerpolicy = "no-referrer";
  20. document.getElementsByTagName('body')[0].appendChild(iframe);
  21. clearInterval(interval);
  22. } else
  23. document.getElementById('in').innerHTML = 'in <span>'+i+'s</span>';
  24. }, 1000);
  25. </script>
  26. <style>
  27. html, body { margin: 0; padding: 0; box-sizing: border-box; line-height: normal; text-align: center; font-family: monospace; font-size: 30px; }
  28. header {
  29. margin: 50px 0 0;
  30. padding: 10px 20px;
  31. }
  32. #in {
  33. font-size: 12px; margin-top: 8px;
  34. }
  35. </style>
  36. </head>
  37. <body>
  38. <header>
  39. Redirecting..
  40. <div id="in">in <span>2s</span></div>
  41. </header>
  42. </body>
  43. </html>