Advertisement
songbirdinatrench

deanlirium FAQ/ASK #1 - from the lighthouse pack

Jul 29th, 2014
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.08 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3.  
  4. <head><title>{Title}</title>
  5. <link rel="shortcut icon" href="{Favicon}">
  6. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  7.  
  8. <!---
  9.  
  10. ▣▣▣
  11. FAQ/ASK PAGE #1 BY DEANLIRIUM
  12. ▣▣▣
  13.  
  14. PLEASE like and/or reblog the theme post if you use! Edit as you want but YOU MUST leave the credit. Seriously though if you need a base code just google it!
  15. if you need anything please ask me OFF ANON so that I can reply privately! :)
  16.  
  17. --->
  18.  
  19. <script type="text/javascript" src="http://static.tumblr.com/t0g3sds/Xxmn9cdk0/shine.min.js"></script>
  20.  
  21. <link href='http://fonts.googleapis.com/css?family=Lustria|Poiret+One|Crete+Round|Oswald:700|Montserrat:700|Fjalla+One|Orienta|Noto+Sans:700' rel='stylesheet' type='text/css'>
  22. <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
  23. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  24.  
  25. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  26. <script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
  27. <script>
  28. (function($){
  29. $(document).ready(function(){
  30. $("a[title]").style_my_tooltips({
  31. tip_follows_cursor:true,
  32. tip_delay_time:90,
  33. tip_fade_speed:200,
  34. attribute:"title"
  35. });
  36. });
  37. })(jQuery);
  38. </script>
  39.  
  40. <script type="text/javascript"
  41. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  42. <script>
  43. $(document).ready(function() {
  44. //
  45. $('a.poplight[href^=#]').click(function() {
  46. var popID = $(this).attr('rel'); //Get Popup Name
  47. var popURL = $(this).attr('href'); //Get Popup href to define size
  48. var query= popURL.split('?');
  49. var dim= query[1].split('&');
  50. var popWidth = dim[0].split('=')[1]; //Gets the first query string value
  51. $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"></a>');
  52. var popMargTop = ($('#' + popID).height() + 80) / 2;
  53. var popMargLeft = ($('#' + popID).width() + 40) / 2;
  54. //Apply Margin to Popup
  55. $('#' + popID).css({
  56. 'margin-top' : -popMargTop,
  57. 'margin-left' : -popMargLeft
  58. });
  59. $('body').append('<div id="fade"></div>');
  60. $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'})
  61. return false;
  62. });
  63. $('a.close, #fade').live('click', function() {
  64. $('#fade , .popup_block').fadeOut(function() {
  65. $('#fade, a.close').remove(); //fade them both out
  66. });
  67. return false;
  68. });
  69. });
  70. </script>
  71.  
  72. <style type="text/css">
  73.  
  74. .popup_block{
  75. display:none;
  76. background:#fff;
  77. padding:20px;
  78. float:left;
  79. position:fixed;
  80. top:50%;left:50%;
  81. z-index: 99999;
  82. }
  83.  
  84. *html #fade {position: absolute;}
  85. *html .popup_block {position: absolute;}
  86. #fade {
  87. display:none;
  88. position:fixed;
  89. left:0px;
  90. top:0px;
  91. width:100%;
  92. height:100%;
  93. z-index:9999;
  94. background:#fff;
  95. opacity:0.5; /* change to opacity:1; */}
  96.  
  97.  
  98. @font-face {font-family:Bebas Neue;src:url('http://static.tumblr.com/cvlbtjz/cnsln9tpp/bebasneue.otf');}
  99.  
  100. /*--scrollbar--*/
  101.  
  102. ::-webkit-scrollbar-thumb:vertical {height:5px; background-color:#aaa;} /*change scrollbar color*/
  103. ::-webkit-scrollbar-thumb:horizontal {background-color:#aaa;} /*change scrollbar color*/
  104. ::-webkit-scrollbar {background-color:transparent;height:0px;width:4px;border:2px solid transparent;}
  105. ::-webkit-scrollbar-button:start:decrement, ::-webkit-scrollbar-button:end:increment{background-color:#ffffff;display:block;height:0px;border-right:0px solid transparent;border-left:0px solid transparent;
  106. }
  107.  
  108. ::selection {
  109. color:#444444;}
  110. ::-moz-selection {
  111. color:#444444;}
  112. ::-webkit-selection {
  113. color:#444444;}
  114.  
  115. body {
  116. background-color:#ffffff; /*change background color*/
  117. background-image:url(''); /*set a background image if needed*/
  118. background-attachment:fixed;
  119. font-family:calibri;
  120. color:#848182; /*change text color; for this and all the other colors you can use www.colorpicker.com*/
  121. font-size:10px;}
  122.  
  123. a {
  124. color:#ffffff; /*change link color*/
  125. text-decoration:none;
  126. -webkit-transition: all 0.5s ease-out;
  127. -moz-transition: all 0.5s ease-out;
  128. transition: all 0.5s ease-out;}
  129. a:hover {
  130. color:#ffffff; /*change link color on hover*/
  131. text-decoration:none;
  132. -webkit-transition: all 0.8s ease-out;
  133. -moz-transition: all 0.8s ease-out;
  134. transition: all 0.8s ease-out;}
  135.  
  136. img {
  137. border:none;
  138. padding-bottom:none;
  139. display: block;}
  140.  
  141. h1 {
  142. font-size:12px;
  143. font-family:'cambria';
  144. font-style:italic;
  145. font-weight:normal;
  146. line-height:10px;
  147. text-align:center;}
  148.  
  149.  
  150. /* sidebar */
  151. #sidebar {
  152. margin-left: -200px;
  153. left:50%;
  154. overflow:hidden;
  155. line-height:15px;
  156. width: 400px;
  157. height:400px;
  158. text-align: center;
  159. margin-top:-140px;}
  160.  
  161. #sidebarimg img{
  162. width:400px;
  163. height:400px;
  164. margin-top:0px;
  165. -webkit-transition: all 0.6s;
  166. -moz-transition: all 0.6s;
  167. transition: all 0.6s;}
  168.  
  169. #description {
  170. width:260px;
  171. height:190px;
  172. margin-left:60px;
  173. padding:10px;
  174. padding-bottom:0px;
  175. padding-top:3px;
  176. overflow-y:scroll;
  177. text-align:justify;
  178. margin-top:15px;
  179. position:fixed;
  180. background: rgba(255,255,255,0.5);}
  181.  
  182. #links {
  183. margin-top:-290px;
  184. -webkit-transition: all 0.6s;
  185. -moz-transition: all 0.6s;
  186. transition: all 0.6s;}
  187. #links a {
  188. padding:5px;
  189. margin-right:0px;
  190. font-family:'cambria';
  191. font-style:italic;
  192. font-size:13px;
  193. -webkit-transition: all 0.6s ease;
  194. -moz-transition: all 0.6s ease;
  195. transition: all 0.6s ease;}
  196. #links a:hover{
  197. text-shadow: 0 1px 1px #444444;}
  198.  
  199. #cred {
  200. left:-60px;
  201. bottom:6px;
  202. font-size:9px;
  203. padding:5px;
  204. color:#848182;
  205. z-index:2147483647;
  206. text-transform:uppercase;
  207. border:1px solid transparent;
  208. position:fixed;
  209. -webkit-transition: all 0.5s ease-out;
  210. -moz-transition: all 0.5s ease-out;
  211. transition: all 0.5s ease-out;}
  212.  
  213. #cred:hover {
  214. left:6px;
  215. background:white;
  216. border-bottom:1px solid #eeeeee;
  217. -webkit-transition: all 0.5s ease-out;
  218. -moz-transition: all 0.5s ease-out;
  219. transition: all 0.5s ease-out;
  220. }
  221. #cred:hover a{
  222. color:#768297;}
  223. #cred a{
  224. color:#848182;}
  225.  
  226. #s-m-t-tooltip {
  227. max-width:300px;
  228. padding:5px;
  229. padding-top:2px;
  230. padding-bottom:2px;
  231. margin:5px 0px 0px 10px;
  232. background-color:#ffffff;
  233. font-family:calibri;
  234. font-size:8px;
  235. line-height:8px;
  236. text-transform:uppercase;
  237. color:#848182;
  238. z-index:2147483647;}
  239.  
  240. #title {
  241. margin-left:-200px;
  242. width:400px;
  243. font-size:30px; /*change title size*/
  244. top:0px;
  245. padding-top:20px;
  246. font-weight:bold; }
  247.  
  248. header {
  249. position: fixed;
  250. width: 100%;
  251. top:110px;
  252. height: 190px;
  253. left:50%;
  254. margin-left:0px;
  255. -webkit-transition: all 0.6s;
  256. -moz-transition: all 0.6s;
  257. transition: all 0.6s;}
  258.  
  259. .demo-text {
  260. color: #fcfcfc; /*change title color*/
  261. font-style:normal;
  262. text-align:center;
  263. text-transform:uppercase;
  264. font-family: 'Montserrat'; /*change title font; choose between Montserrat, Lustria, Poiret One, Crete Round, Oswald, Fjalla One, Orienta, Noto Sans, Helvetica, Cambria, Bebas Neue, Times New Roman*/
  265. font-weight: 700;
  266. line-height:70px;}
  267.  
  268. #askb {
  269. width:60px;
  270. position: fixed;
  271. margin-top:220px;
  272. left:50%;
  273. margin-left:-30px;}
  274.  
  275. #askb a{
  276. display:block;
  277. font-size:8px;
  278. text-transform:uppercase;
  279. background: rgba(255,255,255,0.5);
  280. padding:3px;
  281. color:#848182;
  282. border:solid 1px #fff;}
  283. #askb a:hover{
  284. background: rgba(255,255,255,1);}
  285.  
  286. /*--Cursor code--*/
  287.  
  288. *, body, img, a, a:hover {cursor: url("http://www.totallylayouts.com/cursors/random/tiny_cursor.png"), auto }
  289.  
  290. </style></head>
  291.  
  292. <body>
  293.  
  294. <header><h1 id="title" class="demo-text">faq</h1>
  295.  
  296. <div id="sidebar">
  297. <div id="sidebarimg">
  298.  
  299. <!--- change the image; upload it somewhere (like the tumblr static uploader, just google it!), get the direct url and paste it below instead of the one I put! --->
  300.  
  301. <img src="http://static.tumblr.com/4a5284c34714e1f7b3a6aaf78dccffe5/t0g3sds/B9nn9fmvw/tumblr_static_bh3f6z0mako4c8cok0kwwscgo.jpg"></div>
  302.  
  303. <div id="links">
  304. <a href="/" title="home">i.</a>
  305. <a href="/ask" title="letters">ii.</a>
  306.  
  307. <!--- add custom links --->
  308.  
  309. <a href="link url" title="link title">iii.</a>
  310. <a href="link url" title="link title">iv.</a>
  311. <a href="link url" title="link title">v.</a>
  312. <a href="link url" title="link title">vi</a>
  313.  
  314. </div>
  315.  
  316. <div id="description">
  317.  
  318. <!--- Write whatever you want here below --->
  319.  
  320. <h1>Question?</h1>
  321.  
  322. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  323.  
  324. <h1>Question?</h1>
  325.  
  326. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  327.  
  328. <h1>Question?</h1>
  329.  
  330. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  331.  
  332. <!--- stop --->
  333.  
  334. </div>
  335.  
  336. <div id="askb">
  337. <a href="#?w=400" rel="box1" class="poplight">ask</a>
  338. </div>
  339.  
  340. </div>
  341. </header>
  342.  
  343. </div></div></div></div></div>
  344.  
  345.  
  346. <!--- IMPORTANT!!!!!!!!!!! In order for you askbox to work you need to replace the '[YOUR URL HERE]' in the code below!!!!!!!!!!! --->
  347.  
  348.  
  349. <div id="box1" class="popup_block">
  350. <iframe frameborder="0" height="200" id="ask_form" scrolling="yes" src="http://www.tumblr.com/ask_form/[YOUR URL HERE].tumblr.com" width="100%"></iframe>
  351. </div>
  352.  
  353.  
  354. </div></div></div></div></div>
  355.  
  356.  
  357. <div id="cred">
  358. <a href="http://deanlirium.tumblr.com/">deanlirium <span style="font-size:12px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;╳</span></a>
  359. </div></div></div></div></div></div></div>
  360.  
  361. </body>
  362.  
  363.  
  364. <script type="text/javascript">
  365. var shine = new Shine(document.getElementById('title'));
  366.  
  367. function handleMouseMove(event) {
  368. shine.light.position.x = event.clientX;
  369. shine.light.position.y = event.clientY;
  370. shine.draw();
  371. }
  372.  
  373. window.addEventListener('mousemove', handleMouseMove, false);
  374.  
  375.  
  376. var config = new shinejs.Config({
  377. numSteps: 5,
  378. opacity: 0.5,
  379. opacityPow: 1.8,
  380. offset: 0.15,
  381. blur: 40,
  382. blurPow: 1,
  383. shadowRGB: new shinejs.Color(68,68,68) /*change the shadow color using RGB colors; websites like www.colorpicker.com or www.rgbtool.com will help, just select your color and write here the numerical values next to R, G and B next to the color slidebar - remember to use a comma between the values!*/
  384.  
  385. });
  386.  
  387. shine.config = config;
  388. shine.draw();
  389.  
  390. /*If you want to disable the shadow auto pilot, delete from here*/
  391.  
  392. function update() {
  393. window.requestAnimationFrame(update);
  394. var time = new Date().getTime();
  395. var speed = 0.00018; // 1 = 1000 rotations/s
  396. var phase = time * speed * 2.0 * Math.PI;
  397. var radiusX = window.innerWidth * 0.5;
  398. var radiusY = window.innerHeight * 0.5;
  399. shine.light.position.x = radiusX + radiusX * Math.cos(phase);
  400. shine.light.position.y = radiusY + radiusY * Math.sin(phase * 0.7);
  401. shine.draw();
  402. }
  403.  
  404. update();
  405.  
  406. /*to here!*/
  407.  
  408. </script>
  409.  
  410. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement