Advertisement
thewisepotato

Automatic Redirect 2.0

Feb 25th, 2014
1,750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5. <title>{Title}</title>
  6. <meta name="description" content="{MetaDescription}" />
  7. <link rel="shortcut icon" href="{Favicon}" />
  8.  
  9. <meta name="text:New URL" content="http://"/>
  10. <meta name="color:Accent" content="#ff0000"/>
  11. <meta name="color:Text" content="#000000"/>
  12. <meta name="color:Text Background" content="#ffffff"/>
  13. <meta name="color:Background" content="#f0f0f0"/>
  14. <meta name="image:Background" content=""/>
  15. <meta name="if:Automatic Redirect" content="0"/>
  16. <meta name="if:Shadow" content="1"/>
  17. <meta name="if:Redirect Gif" content="1"/>
  18.  
  19. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  20.  
  21. {block:ifAutomaticRedirect}
  22. <script type="text/javascript">
  23. $(document).ready(function(){
  24. window.setTimeout(function (){window.location.replace('{text:New URL}' + window.location.pathname);}, 2000);
  25. });
  26. </script>
  27. {/block:ifAutomaticRedirect}
  28.  
  29. <link href='http://fonts.googleapis.com/css?family=Alegreya+Sans:100' rel='stylesheet' type='text/css'>
  30.  
  31. <style type="text/css">
  32. * {-webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -ms-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out;}
  33.  
  34. body {background:{color:Background} url({image:Background});}
  35.  
  36. #box {font-family:Alegreya Sans; text-align:center; height:106px; width:100%; color:{color:Text}; position:fixed; top:50%; margin-top:-53px; background-color:{color:Text Background};{block:ifShadow}
  37. -webkit-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.75); -moz-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.75); box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.75);{/block:ifShadow}}
  38.  
  39. #box a {text-decoration:none; color:{color:Text};}
  40.  
  41. #box a:hover {color:{color:Accent};}
  42.  
  43. #box h2 {text-transform:uppercase; letter-spacing:1px; border-bottom:solid 1px {color:Accent};}
  44.  
  45. #box h2:hover {letter-spacing:2px; color:{color:Accent}; border-bottom-color:{color:Text};}
  46.  
  47. .g {position:fixed; top:50%; left:50%; margin-top:-124px; margin-left:-125px;}
  48.  
  49. {CustomCSS}
  50. </style>
  51.  
  52. </head>
  53. <body>
  54.  
  55. {block:ifNotRedirectGif}
  56. <div id="box">
  57. <h2>{Name}&nbsp;has&nbsp;moved!</h2>
  58. <p>If you are not automatically redirected, please click <a href="http://{text:New URL}.tumblr.com">here</a></p>
  59. </div>
  60. {/block:ifNotRedirectGif}
  61.  
  62. {block:ifRedirectGif}
  63. <img class="g" src="http://static.tumblr.com/puls2hm/NBUmugbay/redirecting-you.gif"/>
  64. {/block:ifRedirectGif}
  65.  
  66. <!------DO NOT REMOVE THE CREDIT. DOING SO WOULD MAKE YOU A THIEF.------->
  67. <a href="http://syntaxthemes.tumblr.com">
  68. <img style="position:fixed; bottom:0; right:0; display:block; opacity:0.7; margin:0; z-index:999999999999!important;" onmouseover="this.style.opacity=0.9" onmouseout="this.style.opacity=0.7" src="http://static.tumblr.com/puls2hm/QOHn1brjx/st.png"/></a>
  69. <!----------------------------------THANK-------------------------------->
  70.  
  71. </body>
  72. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement