Advertisement
crimical

code 7 | redirect

Jan 13th, 2016
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <head>
  3.  
  4. <!----------------------------------------------------------------------
  5. "overnight" |7| by crimical
  6.  
  7. TOGGLE THE "ACTIVATE" OPTION IN THE CUSTOMIZATION BAR TO ACTIVATE THE REDIRECT OPTION!
  8.  
  9. you may
  10. - customize the code as much as you want
  11.  
  12. as long as you do not
  13. - claim the base as your own
  14. - take parts of the code for other themes
  15. - delete the credit
  16.  
  17. thank you!
  18. ----------------------------------------------------------------------->
  19.  
  20. <title>
  21. new url{block:ifactivate} &ndash; redirecting...{/block:ifactivate}
  22. </title>
  23.  
  24. {block:Description}
  25. <meta name="description" content="{MetaDescription}" />
  26. {/block:Description}
  27.  
  28. <link rel="shortcut icon" href="{Favicon}">
  29. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  30.  
  31. <!-- fonts -->
  32. <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700|Roboto+Slab:400,700|Lora:400,400italic,700italic,700|Karla' rel='stylesheet' type='text/css'>
  33.  
  34. <!-- custom -->
  35.  
  36. <meta name="color:border" content="#bad8eb"/>
  37. <meta name="image:icon" content=""/>
  38. <meta name="if:icon" content=""/>
  39.  
  40. <meta name="if:activate" content=""/>
  41. <meta name="if:border" content=""/>
  42.  
  43. <meta name="text:oldurl" content=""/>
  44. <meta name="text:newurl" content=""/>
  45.  
  46. <meta name="text:seconds" content="10"/>
  47.  
  48. <meta name="text:link1" content=""/>
  49. <meta name="text:link1url" content=""/>
  50. <meta name="text:link2" content=""/>
  51. <meta name="text:link2url" content=""/>
  52. <meta name="text:link3" content=""/>
  53. <meta name="text:link3url" content=""/>
  54.  
  55. <style type="text/css">
  56.  
  57. /* * basic * */
  58.  
  59. body{
  60. margin:0px;
  61. padding:0px;
  62. background-color:#f9f9f9;
  63. color:#111;
  64. font-family:'roboto slab';
  65. text-transform:uppercase;
  66. letter-spacing:1px;
  67. font-size:7px;
  68. line-height:240%;
  69. text-align:center;
  70. }
  71.  
  72. a{
  73. text-decoration:none;
  74. color:#333;
  75. font-family:'montserrat';
  76. font-size:10px;
  77. text-transform:uppercase;
  78. font-weight:bold;
  79. letter-spacing:0px;
  80. border-bottom:1px solid transparent;
  81. }
  82.  
  83. a.h:hover{ letter-spacing:2px; }
  84.  
  85. a.s{
  86. font-size:9px;
  87. }
  88.  
  89. u{
  90. border-bottom:1px solid;
  91. text-decoration:none;
  92. }
  93.  
  94. hr{
  95. width:100px;
  96. height:1px;
  97. background:{color:border};
  98. margin:15px auto 15px;
  99. border:0;
  100. }
  101.  
  102. *, *:hover{
  103. -webkit-transition:0.8s ease-in-out;
  104. -moz-transition:0.8s ease-in-out;
  105. -o-transition:0.8s ease-in-out;
  106. }
  107.  
  108. /* * main * */
  109.  
  110. #main{
  111. width:351px;
  112. padding:40px;
  113. background:white;
  114. }
  115.  
  116. .border{
  117. width:431px;
  118. {block:ifborder} border:1px dashed {color:border}; {/block:ifborder}
  119. margin:200px auto 100px;
  120. padding:2px;
  121. }
  122.  
  123. img{
  124. width:50px; height:50px;
  125. -webkit-border-radius:100px;
  126. padding:2px;
  127. float:left;
  128. margin:0 15px 0 0;
  129. }
  130.  
  131. .u{
  132. width:145px;
  133. height:60px;
  134. /*text-align:left;*/
  135. margin:0 auto 5px;
  136. }
  137.  
  138. /* * misc * */
  139.  
  140. .credit a{
  141. opacity:0.7;
  142. font-family:'karla';
  143. font-size:9px;
  144. border:1px solid transparent;
  145. padding:0px 5px 1px 5px;
  146. -webkit-border-radius:100px;
  147. margin:0 5px 0;
  148. position:fixed;
  149. bottom:15px; right:5px;
  150. color:#333;
  151. }
  152.  
  153. .credit a:hover{
  154. border:1px solid #333;
  155. }
  156.  
  157. </style>
  158. </head>
  159.  
  160. <body>
  161.  
  162. <div class="credit">
  163. <a href="http://crimical.tumblr.com">c</a>
  164. </div>
  165.  
  166. <div class="border"> <div id="main">
  167.  
  168. {block:ificon}
  169. <div class="u">
  170. <img src="{image:icon}" />
  171. <div style="height:3px"> </div>
  172. <a class="h" style="cursor:default">{text:oldurl}</a><br>
  173. has moved to<br>
  174. <a class="h" href="http://{text:newurl}.tumblr.com/">{text:newurl}</a>
  175. </div>
  176. {/block:ificon}
  177. {block:ifnoticon}
  178. <a class="h" style="cursor:default">{text:oldurl}</a><br>
  179. has moved to<br>
  180. <a class="h" href="http://{text:newurl}.tumblr.com/">{text:newurl}</a>
  181. {/block:ifnoticon}
  182.  
  183. {block:iflink1}
  184. <hr>
  185.  
  186. <a class="s h" href="{text:link1url}">{text:link1}</a>{/block:iflink1}
  187. {block:iflink2}<br><a class="s h" href="{text:link2url}">{text:link2}</a>{/block:iflink2}
  188. {block:iflink3}<br><a class="s h" href="{text:link3url}">{text:link3}</a>{/block:iflink3}
  189.  
  190. {block:ifactivate}
  191. <hr>
  192.  
  193. <a style="cursor:default" class="s">in {text:seconds} seconds you will be redirected</a><br>
  194. to the page you were looking for
  195. {/block:ifactivate}
  196.  
  197. </div> </div>
  198. </body>
  199.  
  200. {block:ifactivate}
  201. <script>
  202. setTimeout( redirect, {text:seconds}000 );
  203. function redirect() {
  204. location.replace('http://{text:newurl}.tumblr.com' + location.pathname);
  205. }
  206. </script>
  207. {/block:ifactivate}
  208.  
  209. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement