disinclined.org
/
git
/
dylansserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added .htaccess and 404.phpfor a custom ErrorDocument.
[dylansserver.git]
/
includes
/
tabs.js
diff --git
a/includes/tabs.js
b/includes/tabs.js
index
4cec99c
..
79d76bb
100644
(file)
--- a/
includes/tabs.js
+++ b/
includes/tabs.js
@@
-1,19
+1,24
@@
$(document).ready(function() {
$(document).ready(function() {
- $(".tabs").hide();
+ $(".exhibit").hide();
+ var divs = document.getElementsByTagName('div');
+ if(document.location.hash){
+ $(document.location.hash + '_').show();
+ }
var i = 0;
var i = 0;
- $("ul
.portfolio li.project a.exhibit
").click(function() {
+ $("ul
#portfolio li a.tab
").click(function() {
i++;
i++;
- $(".tabs").hide();
- $("ul.portfolio li").removeClass("active");
- $(this).addClass("active_project");
-
- var activeTab = $(this).attr("href");
+ $(".exhibit").hide();
+ var activeTab = $(this).attr("href") + '_';
if (i==1)
if (i==1)
- $(activeTab).show("slide",
4
00);
+ $(activeTab).show("slide",
6
00);
else
$(activeTab).show("puff", 600);
else
$(activeTab).show("puff", 600);
- $(activeTab).addClass("active_tab");
- return false;
+ $(activeTab).addClass("active_exhibit");
+ });
+ $('#showdivs').click(function() {
+ for(i=0;i<divs.length;i++){
+ divs[i].className += (" shownDiv");
+ }
});
});
});
});