source: src/main/resources/static/assets/js/script.js@ 09b34bc

Last change on this file since 09b34bc was e5fefbd, checked in by Anita Terziska <63020646+Nit4e@…>, 2 years ago

initial commit

  • Property mode set to 100644
File size: 791 bytes
Line 
1$( document ).ready(function() {
2 $('#nav-head').scrollToFixed();
3})
4
5
6$(document).ready(function(){
7
8 $(".filter-button").click(function(){
9 var value = $(this).attr('data-filter');
10
11 if(value == "all")
12 {
13 //$('.filter').removeClass('hidden');
14 $('.filter').show('1000');
15 }
16 else
17 {
18// $('.filter[filter-item="'+value+'"]').removeClass('hidden');
19// $(".filter").not('.filter[filter-item="'+value+'"]').addClass('hidden');
20 $(".filter").not('.'+value).hide('3000');
21 $('.filter').filter('.'+value).show('3000');
22
23 }
24 });
25
26 if ($(".filter-button").removeClass("active")) {
27$(this).removeClass("active");
28}
29$(this).addClass("active");
30
31});
Note: See TracBrowser for help on using the repository browser.