cloverfield

e#2 filter links

Jan 2nd, 2015
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.61 KB | None | 0 0
  1. <!DOCTYPE html><!--
  2.  
  3.  
  4.  
  5.  
  6. > CSS by hayasaka
  7. > FILTER SCRIPT FROM THEMESBYZSU
  8. (/post/95934292090/ for more customization explanation)
  9. > PICK COLORS AT http://www.w3schools.com/tags/ref_colorpicker.asp
  10.  
  11.  
  12.  
  13.  
  14. -->
  15. <html>
  16.  
  17. <head>
  18.  
  19. <title>{Title}</title>
  20. <link rel="shortcut icon" href="{Favicon}"/>
  21.  
  22. <style>
  23.  
  24. body {
  25. margin:0;
  26. padding:0;
  27. font-family:arial;
  28. font-size:9px;
  29. letter-spacing:2px;
  30. word-wrap:break-word;
  31. background-color:#fce;
  32. background-image:url(http://i.imgur.com/iVU461Q.png); /*upload image or if you want none remove this line*/
  33. -webkit-background-size:auto;
  34. -moz-background-size:auto;
  35. background-size:auto; /* 'auto' for tiled, '100% 100%' for stretched and 'cover' for maximized, change all 3 lines*/
  36. }
  37.  
  38. a, #link {
  39. text-decoration:none; /*removes default underline on links*/
  40. -webkit-transition:all 155ms linear;
  41. -moz-transition:all 155ms linear;
  42. -o-transition:all 155ms linear;
  43. transition:all 155ms linear;
  44. }
  45.  
  46. /**these are important not recommended to edit**/
  47.  
  48. img, iframe, embed, object {
  49. max-width:100%;
  50. }
  51.  
  52. #everything {
  53. display:table;
  54. position:fixed;
  55. top:0px;
  56. left:0px;
  57. width:100%;
  58. height:100%;
  59. }
  60.  
  61. #content {
  62. display:table-cell;
  63. vertical-align:middle;
  64. }
  65.  
  66. /**------------------------------------------**/
  67.  
  68. /*****HEADER LINK BAR*****/
  69.  
  70. #sort {
  71. border-top:1px solid #0ef;
  72. border-bottom:1px solid #fce;
  73. }
  74.  
  75. #filters {
  76. text-align:center;
  77. display:table;
  78. width:100%;
  79. }
  80.  
  81. #filters a {
  82. display:table-cell;
  83. padding:4px 6px;
  84. }
  85.  
  86. /******HEADER LINKS******/
  87.  
  88. #title0 {
  89. background:#fff;
  90. color:#777;
  91. }
  92.  
  93. #title0:hover {
  94. background:#000;
  95. color:#fcf;
  96. }
  97.  
  98. #title1 {
  99. background:#c2ebff;
  100. color:#6699ff;
  101. }
  102.  
  103. #title1:hover {
  104. background:#9cf;
  105. color:#fff
  106. }
  107.  
  108. #title2 {
  109. background:#fce;
  110. color:#f6c;
  111. }
  112.  
  113. #title2:hover {
  114. background:#f9f;
  115. color:#fff;
  116. }
  117.  
  118. #title3 {
  119. background:#ccf;
  120. color:#96f;
  121. }
  122.  
  123. #title3:hover {
  124. background:#99f;
  125. color:#fff;
  126. }
  127.  
  128. #title4 {
  129. background:#eee;
  130. color:#999;
  131. }
  132.  
  133. #title4:hover {
  134. background:#ddd;
  135. color:#fff;
  136. }
  137.  
  138. /**********CONTAINER**********/
  139.  
  140. #box, #cont {
  141. width:500px; /*width of container. you can change this*/
  142. }
  143.  
  144. #box {
  145. margin:auto;
  146. display:block;
  147. overflow:hidden;
  148. border:1px solid #aaa; /*container border*/
  149. background:#fff;
  150. /*delete this for no round corners*/
  151. -webkit-border-radius:4px;
  152. -moz-border-radius:4px;
  153. border-radius:4px;
  154. /*--------------------------------*/
  155. }
  156.  
  157. #header img {
  158. display:block;
  159. width:100%;
  160. }
  161.  
  162. /******BOX THAT SCROLLS******/
  163.  
  164. #cont_outer {
  165. max-height:250px; /*any number is ok*/
  166. overflow-y:scroll;
  167. overflow-x:hidden;
  168. }
  169.  
  170. /*******SCROLLBAR*******/
  171.  
  172. #cont_outer::-webkit-scrollbar {
  173. height:2px;
  174. width:2px;
  175. }
  176.  
  177. #cont_outer::-webkit-scrollbar-thumb {
  178. background:#000;
  179. }
  180.  
  181. #cont_outer {
  182. -ms-overflow-style:none;
  183. }
  184.  
  185. /**************************/
  186.  
  187. #container, .all {
  188. -webkit-transition:all.4s ease;
  189. -moz-transition:all.4s ease;
  190. -o-transition:all.4s ease;
  191. transition:all.4s ease;
  192. }
  193.  
  194. #container {
  195. margin:5px;
  196. }
  197.  
  198. /*******LINKS + INFO*******/
  199.  
  200. #float {
  201. width:50%; /* change to 100% if you want it in one column, or 33.3% (estimate) if you want 3 */
  202. text-align:center;
  203. }
  204.  
  205. /*link box*/
  206. #block {
  207. margin:5px;
  208. background:#ffc;
  209. border:1px solid #9cf;
  210. }
  211.  
  212. /*actual link*/
  213. #link {
  214. display:block;
  215. padding:5px 7px;
  216. text-transform:uppercase;
  217. border-bottom:1px solid #c9f;
  218. background:#fcf;
  219. color:#fff;
  220. }
  221.  
  222. #link:hover {
  223. border-bottom:1px solid #0cf;
  224. background:#cff;
  225. color:#c9f;
  226. }
  227.  
  228. /*link info*/
  229. #info {
  230. padding:5px 7px;
  231. color:#09c;
  232. }
  233.  
  234. /********MISC********/
  235.  
  236. #imglink {
  237. display:block;
  238. margin:auto;
  239. margin-bottom:5px;
  240. padding:3px;
  241. background:#fff;
  242. border:1px solid #eee;
  243. }
  244.  
  245. /*****credit*****/
  246.  
  247. #co {
  248. position:fixed;
  249. z-index:999;
  250. bottom:5px;
  251. right:5px;
  252. overflow:hidden;
  253. color:#777;
  254. }
  255.  
  256. #c {
  257. padding:2px;
  258. width:10px;
  259. height:10px;
  260. -webkit-transition:all.3s;
  261. -moz-transition:all.3s;
  262. -o-transition:all.3s;
  263. transition:all.3s;
  264. white-space:nowrap;
  265. }
  266.  
  267. #c:hover {
  268. width:50px;
  269. }
  270.  
  271. #c img {
  272. display:block;
  273. float:left;
  274. margin-right:5px;
  275. }
  276.  
  277. #ct {
  278. line-height:10px;
  279. font-size:10px;
  280. text-transform:uppercase;
  281. font-family:consolas;
  282. letter-spacing:1px;
  283. }
  284.  
  285.  
  286. </style>
  287.  
  288. <script src="http://static.tumblr.com/fuu6t9w/kh8ml0pl9/jquery-1.7.1.min.js"></script>
  289.  
  290. <script src="http://static.tumblr.com/fuu6t9w/eubml0pm0/jquery.isotope.min.js"></script>
  291.  
  292. <script>
  293.  
  294. $(document).ready(function(){
  295.  
  296. var $container = $('#container');
  297.  
  298. $container.isotope({
  299. itemSelector : '.all'
  300. });
  301.  
  302. var $optionSets = $('#sort .option-set'),
  303. $optionLinks = $optionSets.find('a');
  304.  
  305. $optionLinks.click(function(){
  306. var $this = $(this);
  307. // don't proceed if already selected
  308. if ( $this.hasClass('selected') ) {
  309. return false;
  310. }
  311. var $optionSet = $this.parents('.option-set');
  312. $optionSet.find('.selected').removeClass('selected');
  313. $this.addClass('selected');
  314.  
  315. // make option object dynamically, i.e. { filter: '.my-filter-class' }
  316. var options = {},
  317. key = $optionSet.attr('data-option-key'),
  318. value = $this.attr('data-option-filter');
  319. // parse 'false' as false boolean
  320. value = value === 'false' ? false : value;
  321. options[ key ] = value;
  322. if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) {
  323. // changes in layout modes need extra logic
  324. changeLayoutMode( $this, options )
  325. } else {
  326. // otherwise, apply new options
  327. $container.isotope( options );
  328. }
  329.  
  330. return false;
  331. });
  332.  
  333. });
  334.  
  335. </script>
  336.  
  337. </head>
  338.  
  339. <body>
  340.  
  341. <!-- credit, you can move it to your pages or something -->
  342.  
  343. <a id="co" href="http://hayasaka.tumblr.com">
  344. <div id="c">
  345. <img src="http://i.imgur.com/8h0nbvk.gif">
  346. <div id="ct">Theme</div>
  347. </div>
  348. </a>
  349.  
  350. <div id="everything">
  351. <div id="content">
  352. <div id="box">
  353.  
  354.  
  355. <div id="header">
  356. <img src="http://i.imgur.com/8ROXXfu.png"> <!-- header image -->
  357. </div>
  358.  
  359.  
  360. <!--- //////FILTER TABS////// --->
  361.  
  362. <div id="sort">
  363. <div id="filters" class="option-set clearfix" data-option-key="filter">
  364.  
  365. <a id="title0" href="#filter" data-option-filter=".all">REFRESH</a>
  366. <a id="title1" href="#filter" data-option-filter=".filter1">FILTER1</a>
  367. <a id="title2" href="#filter" data-option-filter=".filter2">FILTER2</a>
  368. <a id="title3" href="#filter" data-option-filter=".filter3">FILTER3</a>
  369. <a id="title4" href="#filter" data-option-filter=".filter4">FILTER4</a>
  370.  
  371. <!--
  372.  
  373. to add filters:
  374.  
  375. 1) copy one of the above lines and change the names (leave "#filter" as is)
  376.  
  377. (ex.)
  378.  
  379. <a id="title5" href="#filter" data-option-filter=".filter5">FILTER5</a>
  380.  
  381. 2) you can edit the colors by creating a new div in css (before </style>)
  382.  
  383. (ex.)
  384.  
  385. #title5 {
  386. background:#fff;
  387. color:#aaa;
  388. }
  389.  
  390. -->
  391.  
  392. </div><!--filters-->
  393. </div>
  394.  
  395.  
  396. <!---////////////////////////////////--->
  397.  
  398. <div id="cont_outer">
  399. <div id="cont">
  400. <div id="container" class="clearfix">
  401.  
  402.  
  403. <!--
  404.  
  405. here are your actual links ... you can put whatever, pictures, text, videos etc.
  406.  
  407. to prevent things from overlapping add 'display:block;' to the style
  408.  
  409. you can order the links in anyway you like, the 'filter1' links do not have to be together
  410.  
  411. first page (REFRESH) shows all tags
  412.  
  413. -->
  414.  
  415.  
  416.  
  417. <!-- /////BLOCK BREAKDOWN///// -->
  418.  
  419. <!--
  420.  
  421. "all" is the name i chose for a general tag.
  422.  
  423. NOTE: you MUST have the "all" in the ' class="" '
  424.  
  425. -->
  426.  
  427. <div id="float" class="all"> <!-- float is the box that holds the block in place, class="all" tells you which filter it will appear in -->
  428. <div id="block"> <!-- container that holds the link and text -->
  429. <a id="link" href="/tagged/gsnk"> <!--link, if you dont want links change the "a id" to "div id", take out the ' href="URL" ' and change the "</a>" tag below to "</div>"-->
  430. Gekkan Shoujo Nozaki-kun
  431. </a> <!-- end link -->
  432. <div id="info"> <!-- this is the info container, you can choose to write something here like a description, or if you'd rather not you can delete this div -->
  433. this link belongs to general tags only, click to direct to posts tagged "gsnk"
  434. </div><!-- end info -->
  435. </div><!-- end block -->
  436. </div><!-- end float -->
  437.  
  438. <!-- //////////////////////////// -->
  439.  
  440.  
  441.  
  442. <!--/////////EXAMPLE LINK BLOCK//////////-->
  443.  
  444. <div id="float" class="all">
  445. <div id="block">
  446. <a id="link" href="/tagged/f(x)">
  447. f(x)
  448. </a>
  449. <div id="info">
  450. f(x) (/ˌɛf ˈɛks/; Korean: 에프엑스) is a five-member multi-national K-pop girl group formed by S.M. Entertainment in 2009. The group consists of Victoria, Amber, Luna, Sulli, and Krystal.
  451. </div>
  452. </div>
  453. </div>
  454.  
  455. <!-- /////////////////////////////////// -->
  456.  
  457.  
  458.  
  459. <!-- ///EXAMPLE LINK BLOCK WITH IMAGE/// -->
  460.  
  461. <div id="float" class="all">
  462. <div id="block">
  463. <a id="link" href="http://gekkan-shoujo-nozakikun.wikia.com/wiki/Yuzuki_Seo">
  464. YUZUKI SEO
  465. </a>
  466. <div id="info">
  467. <img src="http://i.imgur.com/K2jGbXL.gif" id="imglink">
  468. <!-- i named it 'imglink', so to edit the style find '#imglink' in css -->
  469. this link belongs to general tags only. + seo included
  470. </div>
  471. </div>
  472. </div>
  473.  
  474. <!-- /////////////////////////////////// -->
  475.  
  476.  
  477.  
  478. <!--/////MULTIPLE FILTERS///// -->
  479.  
  480. <!--
  481.  
  482. if you want your link/block to have another filter category, add the class name after.
  483.  
  484. the class name (thats what i call it but idk what it really is) is the text that is in ' data-option-filter="" '
  485.  
  486. -->
  487.  
  488. <div id="float" class="all filter1">
  489. <!-- here i put 'all' and 'filter1'. that means this tag will appear in both the 'all' filter and 'filter1' filter -->
  490. <div id="block">
  491. <a id="link" href="/">
  492. Link 1
  493. </a>
  494. <div id="info">
  495. this link belongs to general tags and filter 1
  496. </div>
  497. </div>
  498. </div>
  499.  
  500.  
  501. <div id="float" class="all filter1 filter2">
  502. <!-- here i put 'all', 'filter1'and 'filter2' so it will show up in all three -->
  503. <div id="block">
  504. <a id="link" href="/">
  505. Link 2
  506. </a>
  507. <div id="info">
  508. this link belongs to general tags, filter 1 & filter2
  509. </div>
  510. </div>
  511. </div>
  512.  
  513. <!-- ////////////////////////// -->
  514.  
  515.  
  516.  
  517. <!-- ///////MORE EXAMPLES/////// -->
  518.  
  519. <div id="float" class="all filter2">
  520. <div id="block">
  521. <a id="link" href="/">
  522. Link 3
  523. </a>
  524. <div id="info">
  525. this link belongs to general tags and filter2
  526. </div>
  527. </div>
  528. </div>
  529.  
  530. <div id="float" class="all filter2 filter3">
  531. <div id="block">
  532. <a id="link" href="/">
  533. Link 4
  534. </a>
  535. <div id="info">
  536. this link belongs to general tags, filter2 & filter3
  537. </div>
  538. </div>
  539. </div>
  540.  
  541. <div id="float" class="all filter1 filter4">
  542. <div id="block">
  543. <a id="link" href="/">
  544. Link 5
  545. </a>
  546. <div id="info">
  547. this link belongs to general tags, filter1 & filter4
  548. </div>
  549. </div>
  550. </div>
  551.  
  552. <div id="float" class="all filter1 filter2 filter3 filter4">
  553. <div id="block">
  554. <a id="link">
  555. Link 6
  556. </a>
  557. <div id="info">
  558. this link belongs to general tags, filter1, filter2, filter3, & filter4. all of them!
  559. </div>
  560. </div>
  561. </div>
  562.  
  563. <div id="float" class="all filter3 filter4">
  564. <div id="block">
  565. <a id="link" href="/">
  566. Link 7
  567. </a>
  568. <div id="info">
  569. this link belongs to general tags, filter3 & filter4
  570. </div>
  571. </div>
  572. </div>
  573.  
  574. <!-- ///////END LINK BLOCKS/////// -->
  575.  
  576. </div><!--container-->
  577. </div><!--cont-->
  578. </div><!--cont_outer-->
  579.  
  580. </div><!--box-->
  581. </div><!--content-->
  582. </div><!--everything-->
  583.  
  584. </body>
  585. </html>
Advertisement
Add Comment
Please, Sign In to add comment