SHOW:
|
|
- or go back to the newest paste.
| 1 | <!DOCTYPE html> | |
| 2 | <head> | |
| 3 | ||
| 4 | <!-- | |
| 5 | ||
| 6 | NETWORK III | |
| 7 | by alydae | |
| 8 | ||
| 9 | - | released: may 20, 2018 |
| 9 | + | |
| 10 | - | last updated: november 19, 2024 |
| 10 | + | |
| 11 | - direct questions to enchantedthemes.tumblr.com | |
| 12 | ||
| 13 | thank you for using!!! | |
| 14 | ||
| 15 | --> | |
| 16 | ||
| 17 | <title>members</title> | |
| 18 | <link rel="shortcut icon" href="{Favicon}">
| |
| 19 | ||
| 20 | <!-- scripts - DO NOT TOUCH --> | |
| 21 | ||
| 22 | <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
| 23 | ||
| 24 | <script src="https://static.tumblr.com/rzl30kg/eAxm7a751/jquery.style-my-tooltips.js"></script> | |
| 25 | <script> | |
| 26 | (function($){
| |
| 27 | $(document).ready(function(){
| |
| 28 | $("[title]").style_my_tooltips({
| |
| 29 | tip_follows_cursor:true, | |
| 30 | tip_delay_time:200, | |
| 31 | tip_fade_speed:300 | |
| 32 | } | |
| 33 | ); | |
| 34 | }); | |
| 35 | })(jQuery); | |
| 36 | </script> | |
| 37 | ||
| 38 | <!-- custom font --> | |
| 39 | ||
| 40 | <link href='https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'> | |
| 41 | ||
| 42 | <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous"> | |
| 43 | <link rel="stylesheet" href="https://cdn.linearicons.com/free/1.0.0/icon-font.min.css"> | |
| 44 | ||
| 45 | - | <link href=“//use.fontawesome.com/releases/v6.5.1/css/all.css” rel=“stylesheet”> |
| 45 | + | |
| 46 | ||
| 47 | ||
| 48 | @keyframes fadein {
| |
| 49 | from { opacity:0; }
| |
| 50 | to { opacity:1; }
| |
| 51 | } | |
| 52 | ||
| 53 | @-moz-keyframes fadein {
| |
| 54 | from { opacity:0; }
| |
| 55 | to { opacity:1; }
| |
| 56 | } | |
| 57 | ||
| 58 | @-webkit-keyframes fadein {
| |
| 59 | from { opacity:0; }
| |
| 60 | to { opacity:1; }
| |
| 61 | } | |
| 62 | ||
| 63 | @-ms-keyframes fadein {
| |
| 64 | from { opacity:0; }
| |
| 65 | to { opacity:1; }
| |
| 66 | } | |
| 67 | ||
| 68 | @-o-keyframes fadein {
| |
| 69 | from { opacity:0; }
| |
| 70 | to { opacity:1; }
| |
| 71 | } | |
| 72 | ||
| 73 | /*-- selection --*/ | |
| 74 | ||
| 75 | ::-moz-selection { background:#eee; color:#222; }
| |
| 76 | ::selection { background:#eee; color:#222; }
| |
| 77 | ||
| 78 | - | ::-moz-selection { background:var(--accent); color:var(--title); }
|
| 78 | + | |
| 79 | - | ::selection { background:var(--accent); color:var(--title); }
|
| 79 | + | |
| 80 | ::-webkit-scrollbar {
| |
| 81 | width:1px; | |
| 82 | height:2px; | |
| 83 | } | |
| 84 | ||
| 85 | ::-webkit-scrollbar-thumb { background-color:#aaa; } /* scrollbar colour */
| |
| 86 | ||
| 87 | /*-- tooltips --*/ | |
| 88 | - | ::-webkit-scrollbar-thumb { background-color:var(--text); }
|
| 88 | + | |
| 89 | #s-m-t-tooltip {
| |
| 90 | color:#666; | |
| 91 | background-color:#fafafa; | |
| 92 | font-size:8px; | |
| 93 | - | color:var(--text); |
| 93 | + | |
| 94 | - | background-color:var(--accent); |
| 94 | + | |
| 95 | - | font-size:calc(var(--font-size) - 2px); |
| 95 | + | |
| 96 | text-align:center; | |
| 97 | position:absolute; | |
| 98 | padding:0px 5px 0px 5px; | |
| 99 | margin-top:30px; | |
| 100 | border:1px solid #eee; | |
| 101 | z-index:9999; | |
| 102 | } | |
| 103 | - | border:1px solid var(--borders); |
| 103 | + | |
| 104 | /*-- tumblr controls --*/ | |
| 105 | ||
| 106 | .tmblr-iframe, .iframe-controls–desktop {
| |
| 107 | display:none !important; | |
| 108 | } | |
| 109 | ||
| 110 | - | display:none!important; |
| 110 | + | |
| 111 | ||
| 112 | body {
| |
| 113 | - | /*-- change all variables here --*/ |
| 113 | + | color:#666; /* text colour */ |
| 114 | background-color:#fff; /* background colour */ | |
| 115 | - | :root {
|
| 115 | + | |
| 116 | - | --background:#fff; |
| 116 | + | |
| 117 | - | --accent:#fafafa; |
| 117 | + | font-size:10px; |
| 118 | - | --text:#666; |
| 118 | + | |
| 119 | - | --links:#444; |
| 119 | + | |
| 120 | - | --links-hover:#bad1e7; |
| 120 | + | |
| 121 | - | --title:#222; |
| 121 | + | |
| 122 | - | --borders:#eee; |
| 122 | + | |
| 123 | - | --font-size:10px; |
| 123 | + | |
| 124 | -webkit-animation: fadein 1.5s; | |
| 125 | -moz-animation: fadein 1.5s; | |
| 126 | -o-animation: fadein 1.5s; | |
| 127 | animation: fadein 1.5s; | |
| 128 | } | |
| 129 | - | color:var(--text); |
| 129 | + | |
| 130 | - | background-color:var(--background); |
| 130 | + | |
| 131 | text-decoration:none; | |
| 132 | color:#444; /* links colour */ | |
| 133 | - | font-size:var(--font-size); |
| 133 | + | |
| 134 | -moz-transition-duration: 0.6s; | |
| 135 | -webkit-transition-duration: 0.6s; | |
| 136 | -o-transition-duration: 0.6s; | |
| 137 | } | |
| 138 | ||
| 139 | a:hover {
| |
| 140 | color:#bad0f1; /* links hover colour */ | |
| 141 | cursor:pointer; | |
| 142 | transition-duration: 0.6s; | |
| 143 | -moz-transition-duration: 0.6s; | |
| 144 | -webkit-transition-duration: 0.6s; | |
| 145 | -o-transition-duration: 0.6s; | |
| 146 | } | |
| 147 | ||
| 148 | - | color:var(--links); |
| 148 | + | b, strong { font-weight:700; color:#444; }
|
| 149 | i, em { font-style:italic; }
| |
| 150 | ||
| 151 | /*-- sidebar --*/ | |
| 152 | ||
| 153 | #sidebar {
| |
| 154 | position:fixed; | |
| 155 | top:0; | |
| 156 | - | color:var(--links-hover); |
| 156 | + | |
| 157 | height:100vh; | |
| 158 | width:64px; | |
| 159 | z-index:999!important; | |
| 160 | background:#fafafa; /* sidebar background colour */ | |
| 161 | border-right:1px solid #eee; | |
| 162 | } | |
| 163 | ||
| 164 | - | b, strong { font-weight:700; color:var(--title); }
|
| 164 | + | |
| 165 | ||
| 166 | #sidelinks a {
| |
| 167 | display:block; | |
| 168 | font-size:14px; | |
| 169 | line-height:100%; | |
| 170 | height:14px; | |
| 171 | width:14px; | |
| 172 | padding:10px; | |
| 173 | margin:15px; | |
| 174 | border-radius:100%; | |
| 175 | background:#fff; /*sidebar links background colour */ | |
| 176 | - | background:var(--accent); |
| 176 | + | border:1px solid #eee; |
| 177 | - | border-right:1px solid var(--borders); |
| 177 | + | |
| 178 | ||
| 179 | .hover .hovertext {
| |
| 180 | width:auto; | |
| 181 | background:#bad0f1; | |
| 182 | color:#fff; /* sidebar links text colour */ | |
| 183 | font-size:10px; /* sidebar links font size */ | |
| 184 | - | font-size:calc(var(--font-size) + 4px); |
| 184 | + | |
| 185 | font-weight:700; | |
| 186 | letter-spacing:0.5px; | |
| 187 | padding:3px 7px 3px 7px; | |
| 188 | position:absolute; | |
| 189 | margin-top:-3px; | |
| 190 | margin-left:40px; | |
| 191 | - | background:var(--background); |
| 191 | + | |
| 192 | - | border:1px solid var(--borders); |
| 192 | + | |
| 193 | transition:opacity 0.6s; | |
| 194 | } | |
| 195 | ||
| 196 | .hover:hover .hovertext { opacity:1; transition:opacity 0.6s; }
| |
| 197 | - | background:var(--links-hover); |
| 197 | + | |
| 198 | - | color:var(--background); |
| 198 | + | |
| 199 | - | font-size:var(--font-size); |
| 199 | + | |
| 200 | position:absolute; | |
| 201 | top:50%; | |
| 202 | right:100%; | |
| 203 | margin-top:-8px; | |
| 204 | border-width:8px; | |
| 205 | border-style:solid; | |
| 206 | border-color:transparent #bad0f1 transparent transparent; /*link hover colour */ | |
| 207 | } | |
| 208 | ||
| 209 | /*-- header --*/ | |
| 210 | ||
| 211 | header {
| |
| 212 | margin:100px auto 50px; | |
| 213 | width:300px; | |
| 214 | text-align:center; | |
| 215 | } | |
| 216 | ||
| 217 | #icon {
| |
| 218 | margin:0 auto; | |
| 219 | width:50px; | |
| 220 | height:50px; | |
| 221 | } | |
| 222 | - | border-color:transparent var(--links-hover) transparent transparent; |
| 222 | + | |
| 223 | #icon img { width:50px; height:50px; border-radius:100%; }
| |
| 224 | ||
| 225 | #title {
| |
| 226 | margin:20px 0px 5px 0px; | |
| 227 | font-size:16px; | |
| 228 | font-weight:700; | |
| 229 | text-transform:uppercase; | |
| 230 | letter-spacing:1px; | |
| 231 | color:#000; /*title colour*/ | |
| 232 | } | |
| 233 | ||
| 234 | /*--filters--*/ | |
| 235 | ||
| 236 | #sort { margin-top:20px; }
| |
| 237 | ||
| 238 | #sort ul {
| |
| 239 | display:block; | |
| 240 | list-style:none; | |
| 241 | padding-left:0px; | |
| 242 | margin-top:0; | |
| 243 | - | font-size:calc(var(--font-size) + 6px); |
| 243 | + | |
| 244 | } | |
| 245 | ||
| 246 | #sort li { display:inline; list-style:none; }
| |
| 247 | - | color:var(--title); |
| 247 | + | #sort li a.selected { font-weight:600; color:#222; } /* selected filter colour */
|
| 248 | ||
| 249 | #sort a {
| |
| 250 | display:inline; | |
| 251 | margin-right:10px; | |
| 252 | font-style:italic; | |
| 253 | text-transform:lowercase; | |
| 254 | } | |
| 255 | ||
| 256 | #sort b {
| |
| 257 | text-transform:uppercase; | |
| 258 | letter-spacing:0.5px; | |
| 259 | margin-right:10px; | |
| 260 | } | |
| 261 | ||
| 262 | /*-- content --*/ | |
| 263 | - | #sort li a.selected { font-weight:600; color:var(--title); }
|
| 263 | + | |
| 264 | #content {
| |
| 265 | margin:0 auto; | |
| 266 | margin-bottom:100px; | |
| 267 | width:calc((280px + 40px + 2px) * 3); | |
| 268 | /* ((box width + 2*margin + 2*border width) * number of columns) */ | |
| 269 | } | |
| 270 | ||
| 271 | .box {
| |
| 272 | width:280px; /* image width x 2 + 30px */ | |
| 273 | height:125px; /* image height */ | |
| 274 | margin:20px; | |
| 275 | float:left; | |
| 276 | background:#fafafa; /*box background colour */ | |
| 277 | border:1px solid #eee; | |
| 278 | } | |
| 279 | ||
| 280 | .name {
| |
| 281 | width:30px; | |
| 282 | height:125px; /* image height */ | |
| 283 | position:absolute; | |
| 284 | background:#fff; | |
| 285 | } | |
| 286 | ||
| 287 | .name h1 {
| |
| 288 | transform-origin:180% 260%; | |
| 289 | transform:rotate(-90deg); | |
| 290 | text-transform:uppercase; | |
| 291 | font-size:12px; | |
| 292 | - | background:var(--accent); |
| 292 | + | |
| 293 | - | border:1px solid var(--borders); |
| 293 | + | |
| 294 | } | |
| 295 | ||
| 296 | .box img {
| |
| 297 | position:absolute; | |
| 298 | width:125px; /* image width */ | |
| 299 | height:125px; /* image height */ | |
| 300 | - | line-height:30px; |
| 300 | + | |
| 301 | - | transform:rotate(90deg); |
| 301 | + | |
| 302 | - | transform-origin:top left; |
| 302 | + | |
| 303 | .url {
| |
| 304 | position:absolute; | |
| 305 | margin-left:155px; | |
| 306 | - | width:105px; /* image height - 20px */ |
| 306 | + | |
| 307 | - | float:right; |
| 307 | + | |
| 308 | - | margin-top:-30px; |
| 308 | + | |
| 309 | - | margin-right:-95px; |
| 309 | + | |
| 310 | - | padding-left:20px; |
| 310 | + | background:#fff; /*url background colour */ |
| 311 | - | transform:rotate(-180deg); |
| 311 | + | |
| 312 | - | transform-origin:center center; |
| 312 | + | |
| 313 | - | text-align:left; |
| 313 | + | border-bottom:1px solid #eee; |
| 314 | } | |
| 315 | - | font-size:calc(var(--font-size) + 2px); |
| 315 | + | |
| 316 | .desc {
| |
| 317 | position:absolute; | |
| 318 | - | background:var(--background); |
| 318 | + | |
| 319 | margin-top:25px; | |
| 320 | width:125px; | |
| 321 | height:100px; | |
| 322 | } | |
| 323 | ||
| 324 | .t {
| |
| 325 | text-align:center; | |
| 326 | line-height:160%; | |
| 327 | margin-top:10px; | |
| 328 | margin-left:10px; | |
| 329 | margin-bottom:10px; | |
| 330 | padding-right:10px; | |
| 331 | max-height:80px; | |
| 332 | overflow-Y:scroll; | |
| 333 | margin-top:calc(20% + 25px); | |
| 334 | transform:translateY(-50%); | |
| 335 | - | background:var(--background); |
| 335 | + | |
| 336 | ||
| 337 | /*-- credit - DO NOT TOUCH --*/ | |
| 338 | - | border-bottom:1px solid var(--borders); |
| 338 | + | |
| 339 | - | z-index:9; |
| 339 | + | |
| 340 | bottom:15px; | |
| 341 | right:20px; | |
| 342 | position:fixed; | |
| 343 | } | |
| 344 | ||
| 345 | ||
| 346 | </style> | |
| 347 | </head> | |
| 348 | ||
| 349 | ||
| 350 | <body> | |
| 351 | ||
| 352 | ||
| 353 | <div id="sidebar"> | |
| 354 | <div id="sidelinks"> | |
| 355 | <!-- this is where your sidebar links are. feel free to add more. icons can be found at https://linearicons.com/free --> | |
| 356 | <a class="hover" href="/"><span class="lnr lnr-home"></span><span class="hovertext">index</span></a> | |
| 357 | <a class="hover" href="/ask"><span class="lnr lnr-envelope"></span><span class="hovertext">message</span></a> | |
| 358 | <a class="hover" href=""><span class="lnr lnr-menu"></span><span class="hovertext">link</span></a> | |
| 359 | <!-- do not remove this one!!! --> | |
| 360 | <a class="hover" href="http://enchantedthemes.tumblr.com"><span class="lnr lnr-code"></span><span class="hovertext">credit</span></a> | |
| 361 | </div> | |
| 362 | </div> | |
| 363 | ||
| 364 | ||
| 365 | <header> | |
| 366 | - | font-size:10px; |
| 366 | + | <div id="icon"><img src="{PortraitURL-64}"/></div>
|
| 367 | <div id="title">members</div> | |
| 368 | <!-- delete this section if you don't want a description--> | |
| 369 | <div class="d">optional description.</div> | |
| 370 | - | text-transform:uppercase; |
| 370 | + | |
| 371 | ||
| 372 | <!-- HOW TO CUSTOMISE THE FILTERS | |
| 373 | template for new filter groups: | |
| 374 | <ul class="filter option-set" data-filter-group="group1"> | |
| 375 | <b>category:</b> | |
| 376 | <li><a href="#" data-filter-value="" class="selected">all</a></li> | |
| 377 | <li><a href="#" data-filter-value=".filter">filter name</a></li> | |
| 378 | <li><a href="#" data-filter-value=".filter">filter name</a></li> | |
| 379 | </ul> | |
| 380 | ||
| 381 | template for new filter: | |
| 382 | - | <!-- this is where your sidebar links are. feel free to add more. icons can be found at https://linearicons.com/free. --> |
| 382 | + | |
| 383 | ||
| 384 | in order to make your filters match your books/tv shows/fic/whatever, you only need to change the '.filter' and 'filter name' part. the 'category' line is optional. | |
| 385 | for example, if I wanted to make my media filter by favourites only, my code would look like this | |
| 386 | <li><a href="#" data-filter-value=".fave">favourites</a></li> | |
| 387 | - | <a class="hover" href="https://enchantedthemes.tumblr.com"><span class="lnr lnr-code"></span><span class="hovertext">credit</span></a> |
| 387 | + | |
| 388 | ||
| 389 | it is essential that you do not change any other part, including the 'exclusive' in the first filter group, as well as the first filter in every group. | |
| 390 | <li><a href="#" data-filter-value="" class="selected">all</a></li> | |
| 391 | --> | |
| 392 | ||
| 393 | - | <!-- the default is your icon. if you want to change it, remove {PortraitURL-128} and replace it with the image url of the one you want -->
|
| 393 | + | |
| 394 | - | <div id="icon"><img src="{PortraitURL-128}"/></div>
|
| 394 | + | |
| 395 | - | <div id="title">members</div> <!-- title --> |
| 395 | + | |
| 396 | <li><a href="#" data-filter-value="" class="selected">all</a></li> | |
| 397 | <li><a href="#" data-filter-value=".filter">filter name</a></li> | |
| 398 | <li><a href="#" data-filter-value=".filter">filter name</a></li> | |
| 399 | </ul> | |
| 400 | <ul class="filter option-set" data-filter-group="group2"> | |
| 401 | <b>category:</b> | |
| 402 | <li><a href="#" data-filter-value="" class="selected">all</a></li> | |
| 403 | <li><a href="#" data-filter-value=".filter">filter name</a></li> | |
| 404 | <li><a href="#" data-filter-value=".filter">filter name</a></li> | |
| 405 | </ul> | |
| 406 | ||
| 407 | <ul class="filter option-set" data-filter-group="group3"> | |
| 408 | <b>category:</b> | |
| 409 | <li><a href="#" data-filter-value="" class="selected">all</a></li> | |
| 410 | <li><a href="#" data-filter-value=".filter">filter name</a></li> | |
| 411 | <li><a href="#" data-filter-value=".filter">filter name</a></li> | |
| 412 | </ul> | |
| 413 | </div> | |
| 414 | ||
| 415 | </header> | |
| 416 | ||
| 417 | ||
| 418 | <div id="content"> | |
| 419 | ||
| 420 | <!-- HOW TO ADD MORE AND FILTERS TO EACH MEMBER BOX | |
| 421 | template: | |
| 422 | <div class="box"> | |
| 423 | <div class="name"><h1>name</h1></div> | |
| 424 | <img src=""/> | |
| 425 | <div class="url"><a href="">@username</a></div> | |
| 426 | <div class="desc"> | |
| 427 | <div class="t">description</div> | |
| 428 | </div> | |
| 429 | </div> | |
| 430 | ||
| 431 | to add the filters, add the same name that you used above in the '.filter' but without the dot in front. you can add as many as you want but the 'box' in the beginning MUST stay there. | |
| 432 | ||
| 433 | for example, if you wanted to have the filters 'admin' and 'blue' together for one box, the filters should look like this | |
| 434 | <div class="box admin blue"> | |
| 435 | note how media is still there in front. | |
| 436 | ||
| 437 | if you do not want the text on hover, just delete these lines from the book/tv show/fic/whatever in question. | |
| 438 | <div class="overlay"> | |
| 439 | <div class="desc">desc</div> | |
| 440 | </div> | |
| 441 | ||
| 442 | if you do not want an image and overlay, delete these lines from the book/tv/show/fic/whatever in question | |
| 443 | <img src=""/> | |
| 444 | <div class="overlay"> | |
| 445 | <div class="desc">desc</div> | |
| 446 | </div> | |
| 447 | --> | |
| 448 | ||
| 449 | <div class="box"> | |
| 450 | <div class="name"><h1>name</h1></div> | |
| 451 | <img src=""/> | |
| 452 | <div class="url"><a href="">@username</a></div> | |
| 453 | <div class="desc"> | |
| 454 | <div class="t">description</div> | |
| 455 | </div> | |
| 456 | </div> | |
| 457 | ||
| 458 | <div class="box"> | |
| 459 | <div class="name"><h1>name</h1></div> | |
| 460 | <img src=""/> | |
| 461 | <div class="url"><a href="">@username</a></div> | |
| 462 | <div class="desc"> | |
| 463 | <div class="t">description</div> | |
| 464 | </div> | |
| 465 | </div> | |
| 466 | ||
| 467 | <div class="box"> | |
| 468 | <div class="name"><h1>name</h1></div> | |
| 469 | <img src=""/> | |
| 470 | <div class="url"><a href="">@username</a></div> | |
| 471 | <div class="desc"> | |
| 472 | <div class="t">description</div> | |
| 473 | </div> | |
| 474 | </div> | |
| 475 | ||
| 476 | <div class="box"> | |
| 477 | <div class="name"><h1>name</h1></div> | |
| 478 | <img src=""/> | |
| 479 | <div class="url"><a href="">@username</a></div> | |
| 480 | <div class="desc"> | |
| 481 | <div class="t">description</div> | |
| 482 | </div> | |
| 483 | </div> | |
| 484 | ||
| 485 | <div class="box"> | |
| 486 | <div class="name"><h1>name</h1></div> | |
| 487 | <img src=""/> | |
| 488 | <div class="url"><a href="">@username</a></div> | |
| 489 | <div class="desc"> | |
| 490 | <div class="t">description</div> | |
| 491 | </div> | |
| 492 | </div> | |
| 493 | ||
| 494 | <div class="box"> | |
| 495 | <div class="name"><h1>name</h1></div> | |
| 496 | <img src=""/> | |
| 497 | <div class="url"><a href="">@username</a></div> | |
| 498 | <div class="desc"> | |
| 499 | <div class="t">description</div> | |
| 500 | </div> | |
| 501 | </div> | |
| 502 | ||
| 503 | </div> | |
| 504 | ||
| 505 | <!-- credit - DO NOT TOUCH --> | |
| 506 | ||
| 507 | <div class="credit"> | |
| 508 | <a href="http://enchantedthemes.tumblr.com" title="alydae">A.</a> | |
| 509 | </div> | |
| 510 | ||
| 511 | ||
| 512 | </body> | |
| 513 | ||
| 514 | ||
| 515 | <!-- combination filters by @magnusthemes --> | |
| 516 | <script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js"></script> | |
| 517 | <script src="https://static.tumblr.com/p0knose/FpAp5c11c/magnusthemes.combofilters.js"></script> | |
| 518 | ||
| 519 | <script> | |
| 520 | $(document).ready(function() {
| |
| 521 | var $container = $("#content");
| |
| 522 | var filters = {};
| |
| 523 | var $grid = $container.isotope({
| |
| 524 | itemSelector: ".box", | |
| 525 | percentPosition: false | |
| 526 | }); | |
| 527 | - | <a href="https://enchantedthemes.tumblr.com" title="alydae">A.</a> |
| 527 | + | |
| 528 | var $this = $(this); // cache the clicked link | |
| 529 | var filterAttr = "data-filter-value"; | |
| 530 | var filterValue = $this.attr(filterAttr); // cache the filter | |
| 531 | var $optionSet = $this.parents(".option-set"); // cache the parent element
| |
| 532 | var group = $optionSet.attr("data-filter-group"); // cache the parent filter group
| |
| 533 | var filterGroup = filters[group]; | |
| 534 | if (!filterGroup) {
| |
| 535 | filterGroup = filters[group] = []; | |
| 536 | } | |
| 537 | var $selectAll = $optionSet.find('a['+filterAttr+'=""]'); // the 'select all' button in the current group
| |
| 538 | var activeClass = "selected", // the class for active links | |
| 539 | exclClass = "exclusive"; // the class for exclusive groups | |
| 540 | comboFiltering($this,filters,filterAttr,filterValue,$optionSet,group,$selectAll,activeClass,exclClass); | |
| 541 | var comboFilter = getComboFilter(filters); | |
| 542 | $grid.isotope({
| |
| 543 | filter: comboFilter | |
| 544 | }); | |
| 545 | $this.toggleClass(activeClass); | |
| 546 | e.preventDefault(); | |
| 547 | }); | |
| 548 | }); | |
| 549 | </script> | |
| 550 | ||
| 551 | ||
| 552 | </html> |