Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <html>
- <!--
- Hey friends! I'm HendrixRPH and this is my first character page theme. Don't claim this as your own, don't remove the credit, and don't use as a base, please!
- On the other hand, if you want to steal the code that lets you filter by multiple criteria, go ahead. I stole it from the Isotope documentation anyway. I would recommend you look at it yourself before using so that you get the HTML structure right. Here is where I got it from: http://isotope.metafizzy.co/filtering.html#combination-filters
- That said, special thanks to Metafizzy for this awesome library!
- -->
- <head>
- <title>Character Page Test</title>
- <link href='http://fonts.googleapis.com/css?family=Khula:400,300,700' rel='stylesheet' type='text/css'>
- <style>
- ::-webkit-scrollbar {background-color:#888; height:4px; width:6px}
- ::-webkit-scrollbar-thumb:vertical {background-color:#333; height:50px}
- ::-webkit-scrollbar-thumb:horizontal {background-color:#333; height:8px!important}
- body, html {
- height:100%;
- margin:0;
- padding:0;
- font-family:"Khula", Helvetica, Arial, sans-serif;
- background-color:#eee;
- overflow:hidden;
- }
- .sidebar {
- float:left;
- width:280px;
- background:#333;
- height:100%;
- padding:0;
- font-family:"Khula", Helvetica, Arial, sans-serif;
- overflow:hidden;
- }
- .sidebar::after {
- clear:both;
- }
- h1 {
- text-transform:uppercase;
- text-align:center;
- padding: 10px 20px;
- padding-bottom:0px;
- margin:10px 0px;
- z-index:0;
- position:relative;
- letter-spacing:1px;
- font-weight:300;
- color:#eee;
- }
- .nav {
- font-size:11px;
- letter-spacing:2px;
- text-transform:lowercase;
- text-align:center;
- margin-bottom:10px;
- }
- .nav a, a {
- color:#ccc;
- text-decoration:none;
- border-bottom:1px solid #555;
- transition:0.5s all;
- }
- .nav a:hover, a:hover {
- color:#ff66cc;
- }
- .nav a {
- padding:0 5px;
- border-bottom:0px;
- }
- .desc {
- padding: 0px 15px;
- text-align:center;
- font-size:11px;
- margin:0 10px;
- text-transform:lowercase;
- letter-spacing:1px;
- font-weight:300;
- color:#ddd;
- }
- h2 {
- text-align:center;
- font-weight:300;
- text-transform:lowercase;
- letter-spacing:2px;
- margin-top:20px;
- margin-bottom:5px;
- color:#eee;
- }
- /* condensed buttons */
- .sidebar .button {
- display:inline;
- background:none;
- border:1px solid #555;
- margin:4px 2px;
- color:#ccc;
- width:120px;
- padding: 4px 0px 4px 0px;
- transition:0.5s all;
- }
- .button-group {
- width:260px;
- margin:0 auto;
- text-align:center;
- }
- .sidebar .button:hover {
- background-color:#cc0088;
- border:#777 1px solid;
- color:#eee;
- }
- .button.ischecked {
- background-color:#555!important;
- border:#777 1px solid!important;
- color:#eee!important;
- }
- .wrapper {
- background-color:#eee;
- max-height:100%;
- padding:0 15%;
- overflow-y:scroll;
- }
- .wrapper:after {
- content: '';
- display: block;
- clear: both;
- }
- .header {
- background-color:#333;
- margin:0;
- padding:0;
- height:100px;
- }
- .header h1 {
- margin:0;
- padding-top:25px;
- padding-left:200px;
- font-size:40px;
- }
- .chara {
- width:150px;
- height:200px;
- background-color:#333;
- float:center;
- margin:10px 15px;
- padding:0;
- z-index:0;
- position:relative;
- overflow:hidden;
- }
- .charaimg {
- width:100px;
- z-index:1;
- position:relative;
- left:25px;
- top:25px;
- }
- .charatitle {
- height:75px;
- position:absolute;
- bottom:0;
- background-color:#333;
- width:150px;
- color:#fff;
- opacity:0.8;
- text-align:center;
- z-index:1;
- }
- .charatitle span {
- margin:0;
- padding-top:10px;
- display:inline-block;
- vertical-align:middle;
- line-height:1.5em;
- font-size:11px;
- letter-spacing:1px;
- font-weight:300;
- }
- .charatitle span p {
- margin:0;
- padding:0;
- }
- .charahover {
- position:absolute;
- z-index:5;
- background-color:#333;
- width:190px;
- height:240px;
- opacity:0;
- transition:1s opacity;
- padding:5px 0;
- padding-right:10px;
- overflow:hidden;
- }
- .charahover:hover {
- opacity:0.9;
- overflow-y:scroll;
- }
- .charahover p {
- line-height:1.35em;
- font-size:10px;
- letter-spacing:1px;
- font-weight:300;
- padding:2px 8px;
- color:#fff;
- margin:0 3px;
- }
- .charahover ul, .charahover ol {
- line-height:1.35em;
- font-size:10px;
- letter-spacing:1px;
- font-weight:300;
- color:#fff;
- padding-left:30px;
- }
- .credit {
- position:absolute;
- margin:7px 13px;
- padding:3px 5px;
- font-size:8px;
- bottom:0;
- right:0;
- background-color:#888;
- color:#fff;
- opacity:0.5;
- transition:0.75s all;
- }
- .credit:hover {
- opacity:0.8;
- letter-spacing:normal;
- }
- </style>
- </head>
- <body>
- <div class='sidebar'>
- <h1><b>CHARACTERS</b></h1> <!-- Page title goes here. -->
- <div class="nav">
- <!-- Navigation links, change them to whatever you want. -->
- <a href="https://www.plurk.com/exclamationmarks">plurk</a>
- <a href="http://emirin.tumblr.com">tumblr</a>
- <a href="http://pencilcase.dreamwidth.org">musebox</a>
- <a href="http://hendrixrph.tumblr.com">credit</a>
- </div>
- <!--
- Okay, changing the filters is potentially the most difficult part. I'll try to explain how you do it.
- *** ADD A NEW OPTION TO AN EXISTING GROUP:
- Let's say you want to stick to my defaults, but want to add a "ghost" option for species. Go down to the button group you want to add an option to, in this case species. It looks like this:
- --
- <h2>Species</h2>
- <div class="button-group" data-filter-group="species">
- <button data-filter="" class="button ischecked">any</button>
- <button data-filter=".human" class="button">human</button>
- <button data-filter=".werewolf" class="button">werewolf</button>
- <button data-filter=".vampire" class="button">vampire</button>
- </div>
- --
- To add an option, start by coping one of the buttons and pasting it on the line below. We'll copy the vampire one. Here's what it looks like now.
- --
- <h2>Species</h2>
- <div class="button-group" data-filter-group="species">
- <button data-filter="" class="button ischecked">any</button>
- <button data-filter=".human" class="button">human</button>
- <button data-filter=".werewolf" class="button">werewolf</button>
- <button data-filter=".vampire" class="button">vampire</button>
- <button data-filter=".vampire" class="button">vampire</button>
- </div>
- --
- But we don't want two vampire ones, so we'll change the values. Here's what it will look like after the values are changed, compared to the original:
- --
- Original: <button data-filter=".vampire" class="button">vampire</button>
- New version: <button data-filter=".ghost" class="button">ghost</button>
- --
- And that's it! Everything should work.
- *** REMOVE AN OPTION FROM AN EXISTING GROUP
- This one's simple. Just find the code for the button that you want to remove and delete that one line. You're done!
- *** ADD A NEW FILTER GROUP
- For this example, we'll pretend you want to add a filter group for the character's grade (freshman, sophomore, junior, or senior). First, copy and paste any of the filter groups, starting at the <h2> tag and ending at the </div>. Here's what we'll start with:
- --
- <h2>Species</h2>
- <div class="button-group" data-filter-group="species">
- <button data-filter="" class="button ischecked">any</button>
- <button data-filter=".human" class="button">human</button>
- <button data-filter=".werewolf" class="button">werewolf</button>
- <button data-filter=".vampire" class="button">vampire</button>
- </div>
- --
- Change the text between the <h2> tags to the title of your filter, in this case "Grade."
- Next, we need to give the filter group a new official name. In the div tag, the one that looks like this:
- <div class="button-group" data-filter-group="species">
- Replace the content of data-filter-group="___" with whatever you want to call your group. In this case, grade works.
- Don't mess with the first button! Having an "any" button is important, we don't want to remove it. If you really want to call it something else youc an change the "any" text to something else like "all", but leave all the attributes within the tag the same.
- Now modify the other buttons to create your new options. You'll need to change the data-filter attribute (keep the period at the beginning, that's crucial!) and the label that's between the <button></button> tags.
- For the data-filter, do not have any spaces. If you have multiple words, seperate them by dashes. Add and remove options as necessary.
- In the end, it should look like this:
- --
- <h2>Grade</h2>
- <div class="button-group" data-filter-group="grade">
- <button data-filter="" class="button ischecked">any</button>
- <button data-filter=".freshman" class="button">freshman</button>
- <button data-filter=".sophomore" class="button">sophomore</button>
- <button data-filter=".junior" class="button">junior</button>
- <button data-filter=".senior" class="button">senior</button>
- </div>
- --
- And you're done! Make sure you add the new data filters to the class section of your character entries so the sorting will work. How to do that is covered further down.
- *** REMOVE A FILTER GROUP
- To remove a filter group, locate the one you want to remove in the code. Delete everything starting from the <h2> tag and ending at the </div> tag.
- -->
- <div class="filters">
- <h2>filter by activity</h2>
- <div class="button-group" data-filter-group="activity">
- <button data-filter="" class="button ischecked">any</button>
- <button data-filter=".active" class="button">active</button>
- <button data-filter=".semiactive" class="button">semi-active</button>
- <button data-filter=".semiactive" class="button">semi-inactive</button>
- <button data-filter=".occasionally" class="button">retired</button>
- <button data-filter=".occasionally" class="button">never played</button>
- </div>
- <h2>filter by status</h2>
- <div class="button-group" data-filter-group="status">
- <button data-filter="" class="button ischecked">any</button>
- <button data-filter=".ingame" class="button">currently in game</button>
- <button data-filter=".nopg" class="button">never been<br>in a game</button>
- <button data-filter=".pg" class="button">previously been<br>in a game</button>
- </div>
- <h2>filter by media</h2>
- <div class="button-group" data-filter-group="media">
- <button data-filter="" class="button ischecked">any</button>
- <button data-filter=".liveaction" class="button">live action</button>
- <button data-filter=".animated" class="button">animated</button>
- <button data-filter=".books" class="button">books</button>
- <button data-filter=".game" class="button">game</button>
- <button data-filter=".webcomic" class="button">webcomic</button>
- </div>
- <h2>filter by game</h2>
- <div class="button-group" data-filter-group="game">
- <button data-filter="" class="button ischecked">any</button>
- <button data-filter=".driftfleet" class="button">drift fleet</button>
- <button data-filter=".mom" class="button">mask or menace</button>
- <button data-filter=".court" class="button">court</button>
- <button data-filter=".ataraxion" class="button">ataraxion</button>
- <button data-filter=".decollage" class="button">decollage</button>
- <button data-filter=".enrichment center" class="button">enrichment center</button>
- <button data-filter=".scorched" class="button">scorched</button>
- <button data-filter=".thusia" class="button">thusia</button>
- <button data-filter=".aather" class="button">aather</button>
- <button data-filter=".sabra" class="button">sabra la tau</button>
- <button data-filter=".cfud" class="button">cfud</button>
- </div>
- </div>
- <div class="desc"><br><br>
- <p>Last updated 09-2016</p>
- </div>
- </div>
- <div class="wrapper"> <!-- All of your character boxes should go in here. -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- <!-- BEGIN COPY PASTE -->
- <div class="chara active activeingame">
- <div class="charatitle"><span>
- <p><B>AHSOKA TANO</B></p>
- <p>the clone wars</p>
- <p>➤ <a href="http://resnipstance.dreamwidth.org/">resnipstance</a></p>
- </span></div>
- <img src="http://v.dreamwidth.org/9556289/2444732" class="charaimg">
- </div>
- <!-- END COPY PASTE -->
- </div> <!-- Don't put any character boxes after this tag! -->
- <a href="http://hendrixrph.tumblr.com"><div class="credit">hendrixrph</div></a>
- <!-- All the filtering scripts. No need to mess with these unless you know what you're doing. -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
- <script src="//cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.2.0/isotope.pkgd.js"></script>
- <script>
- // external js: isotope.pkgd.js
- $(document).ready( function() {
- // init Isotope
- var $grid = $('.wrapper').isotope({
- itemSelector: '.chara'
- });
- // store filter for each group
- var filters = {};
- $('.filters').on( 'click', '.button', function() {
- var $this = $(this);
- // get group key
- var $buttonGroup = $this.parents('.button-group');
- var filterGroup = $buttonGroup.attr('data-filter-group');
- // set filter for group
- filters[ filterGroup ] = $this.attr('data-filter');
- // combine filters
- var filterValue = concatValues( filters );
- // set filter for Isotope
- $grid.isotope({ filter: filterValue });
- });
- // change is-checked class on buttons
- $('.button-group').each( function( i, buttonGroup ) {
- var $buttonGroup = $( buttonGroup );
- $buttonGroup.on( 'click', 'button', function() {
- $buttonGroup.find('.ischecked').removeClass('ischecked');
- $( this ).addClass('ischecked');
- });
- });
- });
- // flatten object by concatting values
- function concatValues( obj ) {
- var value = '';
- for ( var prop in obj ) {
- value += obj[ prop ];
- }
- return value;
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement