X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=includes%2Ftabs.js;h=79d76bb47474e8dbaa65a40e92285095074a123c;hb=2199cd5ea71995f93a38c157f3e18da8e895fd87;hp=9107b0c15aba373dbe146b1f304d67429cb42c5b;hpb=56af548973e9bbce1bd052c4cc84f11a19e4fbf2;p=dylansserver.git diff --git a/includes/tabs.js b/includes/tabs.js index 9107b0c..79d76bb 100644 --- a/includes/tabs.js +++ b/includes/tabs.js @@ -1,14 +1,24 @@ $(document).ready(function() { - - $(".tabs").hide(); - $("ul.portfolio li").click(function() { - //$("ul.tabs li").removeClass("active"); - $(this).addClass("active"); + $(".exhibit").hide(); + var divs = document.getElementsByTagName('div'); + if(document.location.hash){ + $(document.location.hash + '_').show(); + } + var i = 0; + $("ul#portfolio li a.tab").click(function() { + i++; $(".exhibit").hide(); - - var activeTab = $(this).find("a").attr("href"); - $(activeTab).fadeIn(); - return false; + var activeTab = $(this).attr("href") + '_'; + if (i==1) + $(activeTab).show("slide", 600); + else + $(activeTab).show("puff", 600); + $(activeTab).addClass("active_exhibit"); + }); + $('#showdivs').click(function() { + for(i=0;i