disinclined.org
/
git
/
dylansserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no more peepshow_html, keep it simple, stupid
[dylansserver.git]
/
includes
/
tabs.js
diff --git
a/includes/tabs.js
b/includes/tabs.js
index
4cec99c
..
a3c4ded
100644
(file)
--- a/
includes/tabs.js
+++ b/
includes/tabs.js
@@
-1,5
+1,9
@@
$(document).ready(function() {
$(".tabs").hide();
$(document).ready(function() {
$(".tabs").hide();
+ var divs = document.getElementsByTagName('div');
+ if(document.location.hash){
+ $(document.location.hash + '_').show();
+ }
var i = 0;
$("ul.portfolio li.project a.exhibit").click(function() {
i++;
var i = 0;
$("ul.portfolio li.project a.exhibit").click(function() {
i++;
@@
-7,13
+11,17
@@
$(document).ready(function() {
$("ul.portfolio li").removeClass("active");
$(this).addClass("active_project");
$("ul.portfolio li").removeClass("active");
$(this).addClass("active_project");
- var activeTab = $(this).attr("href");
+ var activeTab = $(this).attr("href")
+ '_'
;
if (i==1)
$(activeTab).show("slide", 400);
else
$(activeTab).show("puff", 600);
$(activeTab).addClass("active_tab");
if (i==1)
$(activeTab).show("slide", 400);
else
$(activeTab).show("puff", 600);
$(activeTab).addClass("active_tab");
- return false;
+ });
+ $('#showdivs').click(function() {
+ for(i=0;i<divs.length;i++){
+ divs[i].className += (" shownDiv");
+ }
});
});
});
});