kthms

redirect

Feb 28th, 2015
12,349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <!--
  5.  
  6.  
  7.  
  8.  
  9. redirect page by eoxk
  10. http://eoxk.tumblr.com
  11.  
  12.  
  13.  
  14.  
  15. -->
  16.  
  17. <title>{Title}</title>
  18. <link rel="alternate" type="application/rss+xml" href="{RSS}"/>
  19. <link rel="shortcut icon" href="{Favicon}"/>
  20. <meta name="color:background" content="#aadacb"/>
  21. <meta name="color:accent" content="#e7fff7"/>
  22. <meta name="color:title" content="#ffffff"/>
  23. <meta name="if:text shadow" content="1"/>
  24. <meta name="if:automatic redirect" content="0"/>
  25. <meta name="text:new url" content="newurl"/>
  26. {block:Description}
  27. <meta name="description" content="{MetaDescription}" />
  28. {/block:Description}
  29. <link href='//fonts.googleapis.com/css?family=PT+Sans:400' rel='stylesheet' type='text/css'>
  30. <style type="text/css">
  31. body {
  32. margin:0px;
  33. font-size:8px;
  34. font-family:calibri, 'pt sans', 'trebuchet ms', sans-serif;
  35. text-transform:uppercase;
  36. letter-spacing:1px;
  37. line-height:1.7em;
  38. word-wrap:break-word;
  39. text-align:center;
  40. -moz-font-smoothing:subpixel-antialiased;
  41. -webkit-font-smoothing:subpixel-antialiased;
  42. font-smoothing:subpixel-antialiased;
  43. color:{color:accent};
  44. background-color:{color:background};
  45. {block:ifTextShadow}
  46. text-shadow:1px 1px 0px rgba(0,0,0,.1);
  47. {/block:ifTextShadow}
  48. }
  49. a {
  50. color:inherit;
  51. text-decoration:none;
  52. }
  53. article {
  54. position:absolute;
  55. top:50%;
  56. left:50%;
  57. -webkit-transform:translate(-50%,-50%);
  58. transform:translate(-50%,-50%);
  59. display:inline-block;
  60. padding:15px;
  61. border-radius:3px;
  62. }
  63. b {
  64. font-weight:inherit;
  65. text-transform:uppercase;
  66. font-size:1.2em;
  67. letter-spacing:2px;
  68. display:block;
  69. }
  70. span {
  71. display:block;
  72. margin-top:5px;
  73. opacity:0;
  74. -webkit-transition:opacity .5s linear;
  75. transition:opacity .5s linear;
  76. }
  77. #c {
  78. -webkit-transition-delay:1s;
  79. transition-delay:1s;
  80. }
  81. h1 {
  82. margin:0;
  83. padding:10px 0 0 5px;
  84. font-size:3em;
  85. font-weight:inherit;
  86. font-family:'courier new', monospace;
  87. text-transform:uppercase;
  88. letter-spacing:5px;
  89. line-height:1em;
  90. overflow:hidden;
  91. opacity:0;
  92. display:inline-block;
  93. -webkit-transition:opacity 1s linear .5s;
  94. transition:opacity 1s linear .5s;
  95. color:{color:title};
  96. }
  97. h1::before {
  98. content:"[";
  99. }
  100. h1::after {
  101. content:"]";
  102. }
  103. h1::before, h1::after {
  104. opacity:0;
  105. -webkit-transition:opacity .25s linear;
  106. transition:opacity .25s linear;
  107. }
  108. #redirect:hover h1::before, #redirect:hover h1::after {
  109. opacity:.7;
  110. }
  111. #redirect {
  112. display:block;
  113. padding:30px;
  114. }
  115. #tumblr_controls {
  116. display:none!important;
  117. }
  118. #theme {
  119. position:fixed;
  120. bottom:10px;
  121. right:10px;
  122. }
  123. </style>
  124. </head>
  125. <body>
  126. <article>
  127. <a href="#" id="redirect">
  128. <b>{name}</b>
  129. <span>has moved to</span>
  130. <h1>{text:new url}</h1>
  131. {block:ifNotAutomaticRedirect}
  132. <span id="c">click here to be redirected</span>
  133. {/block:ifNotAutomaticRedirect}
  134. {block:ifAutomaticRedirect}
  135. <span id="c">click here if you are not redirected</span>
  136. {/block:ifAutomaticRedirect}
  137. </a>
  138. </article>
  139. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  140. <script>$(document).ready(function(){ $('h1, span').css({ opacity: 1 }); $('#redirect').bind('click', function(){location.replace('http://{text:new url}.tumblr.com' + location.pathname); return false }); {block:ifAutomaticRedirect}setTimeout(redirectTumblr, 5000); function redirectTumblr(){ location.replace('http://{text:new url}.tumblr.com' + location.pathname); }{/block:ifAutomaticRedirect} });</script>
  141. <a href="http://eoxk.tumblr.com" id="theme">thm</a>
  142. </body>
  143. </html>
Advertisement
Add Comment
Please, Sign In to add comment