Advertisement
octomoosey

peace - updates

Sep 13th, 2016
723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
  2. <script>
  3. $(document).ready(function(){
  4.  
  5. $('div.dropdown').each(function() {
  6. var $dropdown = $(this);
  7.  
  8. $("div.drl", $dropdown).click(function(e) {
  9. e.preventDefault();
  10. $div = $("div.drc", $dropdown);
  11. $div.slideToggle(1000);
  12. $("div.drc").not($div).slideUp(500);
  13. return false;
  14. });
  15. });
  16.  
  17. $('html').click(function(){
  18. $("div.drc").slideUp(500);
  19. });
  20. });
  21. </script>
  22.  
  23. #uptxt {
  24. font-size: 10px;
  25. font-family:'Gibson', sans-serif;
  26. position:fixed;
  27. font-size:10px;
  28. left:2px; /*change 'left' to 'right' to align to right side */
  29. top:55px;
  30. color:#20b2aa; /*change the color of the 'updates' word */
  31. -webkit-transform: rotate(-90deg);
  32. -moz-transform: rotate(-90deg);
  33. -ms-transform: rotate(-90deg);
  34. -o-transform: rotate(-90deg);
  35. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);}
  36.  
  37. .drlpos {
  38. position:fixed;
  39. left:15px; /*change 'left' to 'right' to align to right side */
  40. top:85px;} /*change the links position from the top of the screen*/
  41.  
  42. .drl {
  43. font-size: 10px;
  44. font-family:'Gibson', sans-serif;
  45. display:block;
  46. text-align:left;
  47. margin-top:8px;}
  48.  
  49. .drl a {
  50. text-decoration: none;
  51. margin-top:8px;
  52. display:block;
  53. color:#000;} /*change the numbered links color */
  54.  
  55. .drl a:hover {
  56. color:#20b2aa; /*change the numbered links hover color */
  57. -webkit-transition: all 0.7s ease;
  58. transition: all 0.7s ease;
  59. -moz-transition: all 0.7s ease;
  60. -o-transition: all 0.7s ease;}
  61.  
  62. .drc {
  63. font-size: 10px;
  64. font-family:'Gibson', sans-serif;
  65. padding:15px;
  66. background:#ddd; /*change the update tabs background color */
  67. line-height:150%;
  68. text-align:justify;
  69. width:200px; /*change the width of your tabs here */
  70. color:#000; /*change the update tabs text color */
  71. position:fixed;
  72. top:40px; /*change the position of the update tabs box from the top of the screen */
  73. left:40px;} /*change the position of the update tabs box from the left of the screen - change 'left' to 'right' if you want right aligned tabs*/
  74.  
  75. .drctitle {
  76. font-size: 10px;
  77. font-family:'Gibson', sans-serif;
  78. text-transform:uppercase;
  79. padding:2px;
  80. text-align:center;
  81. background:#fff; /*change the color of the title background */
  82. margin-bottom:5px;}
  83.  
  84. <!-- updates tab by octomoosey.tumblr.com -- please don't delete this line - thanks!!! -->
  85.  
  86. <div id="uptxt">UPDATES</div>
  87.  
  88. <div class="drlpos">
  89.  
  90. <!-- start of tab 1 -->
  91.  
  92. <div id="dropdown-1" class="dropdown">
  93. <div class="drl"><a href="#">.01</a></div>
  94. <div class="drc" style="display: none;">
  95. <div class="drctitle">here's title one</div> <!-- change the box title text here -->
  96.  
  97. <!-- this is where your tab content goes - the tab will automatically resize to fit your content! use any html you like here -->
  98.  
  99. You must understand the whole of life, not just one little part of it. That is why you must read, that is why you must look at the skies, that is why you must sing, and dance, and write poems, and suffer, and understand, for all that is life.
  100.  
  101. </div>
  102. </div>
  103.  
  104. <!-- end of tab 1 -->
  105.  
  106. <div id="dropdown-2" class="dropdown">
  107. <div class="drl"><a href="#">.02</a></div>
  108. <div class="drc" style="display: none;">
  109. <div class="drctitle">here's title two</div>
  110. Mama told me that there
  111. was someone up above watching
  112. over us; a guardian angel
  113. for everyone who’ll show us
  114. the way through during the
  115. dark times and give us gifts
  116. during the good ones.
  117. </div>
  118. </div>
  119.  
  120. <div id="dropdown-3" class="dropdown">
  121. <div class="drl"><a href="#">.03</a></div>
  122. <div class="drc" style="display: none;">
  123. <div class="drctitle">here's title three</div>
  124. As I got older I became
  125. less sure that we had
  126. guardian angels of a divine
  127. origin looking out for us
  128. but maybe our guardian angel
  129. was just an ordinary
  130. human being like you and I,
  131. and that maybe the change
  132. to this world will,
  133. by necessity, start with us.
  134.  
  135. </div>
  136. </div>
  137.  
  138. <div id="dropdown-4" class="dropdown">
  139. <div class="drl"><a href="#">.04</a></div>
  140. <div class="drc" style="display: none;">
  141. <div class="drctitle">here's title four</div>
  142. And maybe this isn’t a
  143. bad thing; maybe there’s
  144. a special kind of divinity
  145. in this that the supernatural
  146. simply can’t provide;
  147. another form of divine
  148. written just for humans,
  149. which manifests itself in the
  150. small acts of kindness we
  151. bestow upon each other.
  152. </div>
  153. </div>
  154.  
  155. <div id="dropdown-5" class="dropdown">
  156. <div class="drl"><a href="#">.05</a></div>
  157. <div class="drc" style="display: none;">
  158. <div class="drctitle">here's title five</div>
  159. After all, why would
  160. an angel be a human’s guardian?
  161. Oh yes, they love us,
  162. because they must,
  163. but oh do they hate us—
  164. God created them first and
  165. gave them powers beyond
  166. our wildest imagination,
  167. but it was us that
  168. were given the power of choice,
  169. the humble power of free will,
  170. and for that the angels
  171. must surely despise us.
  172. </div>
  173. </div>
  174.  
  175. </div>
  176. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement