aboutsummaryrefslogtreecommitdiff
path: root/h-source/Public
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Public')
-rw-r--r--h-source/Public/Css/main.css20
-rw-r--r--h-source/Public/Js/functions.js43
2 files changed, 59 insertions, 4 deletions
diff --git a/h-source/Public/Css/main.css b/h-source/Public/Css/main.css
index 2c2512c..49ff8b8 100644
--- a/h-source/Public/Css/main.css
+++ b/h-source/Public/Css/main.css
@@ -1870,7 +1870,7 @@ span.entry_label_small
}
/*tabs*/
-#description_tabs
+.description_tabs
{
margin-top:10px;
}
@@ -1887,7 +1887,7 @@ div#description_tabs_content
{
margin:10px;
}
-#description_tabs ul.desc_menu
+.description_tabs ul.desc_menu
{
width:700px;
/* border-bottom:1px solid #DCDCDC; */
@@ -1901,7 +1901,7 @@ div#description_tabs_content
top:1px;
/* padding-left:10px; */
}
-#description_tabs li.desc_tabs
+.description_tabs li.desc_tabs
{
display:block;
float:left;
@@ -1912,14 +1912,26 @@ div#description_tabs_content
background-color:#E6E6FA;
position:relative;
margin-right:8px;
+ margin-left:0px;
z-index:5;
}
-#description_tabs li.desc_tabs a
+.description_tabs li.current_tab
+{
+ background-color:#FFF;
+ border-bottom:1px solid #FFF;
+}
+.description_tabs li.desc_tabs a
{
/* text-decoration:none; */
color:#000;
/* font-weight:bold; */
}
+.separation_line
+{
+ background-color:#DCDCDC;
+ padding:6px 8px;
+ margin:20px 0;
+}
/*
Start - temporarily added due to transformation of help pages
2011-05-29 joeko
diff --git a/h-source/Public/Js/functions.js b/h-source/Public/Js/functions.js
index c3661cd..9111ba4 100644
--- a/h-source/Public/Js/functions.js
+++ b/h-source/Public/Js/functions.js
@@ -137,4 +137,47 @@ function moderator_dialog(md_action,md_type)
});
}
+function animateTabs(defaultTag)
+{
+ $(".description_tabs").each(function(){
+
+ var that = $(this);
+ showTab(that,defaultTag);
+ $(this).find("li.desc_tabs a").click(function(){
+
+ var t_ref = $(this).attr("href").replace(/\#/, "");
+ showTab(that,t_ref);
+ return false;
+ });
+ });
+
+}
+
+//show a single tab
+function showTab(descObject,tagLabel)
+{
+ $(".separation_line").css("display","none");
+ descObject.find(".description_tabs_page").css("display","none");
+ descObject.find(".desc_tabs").removeClass("current_tab");
+ if (descObject.find("#description_tabs_content").find("#"+tagLabel).length > 0)
+ {
+ descObject.find("#description_tabs_content").find("#"+tagLabel).css("display","block");
+ descObject.find(".desc_menu").find("."+tagLabel).addClass("current_tab");
+ }
+ else
+ {
+ if (descObject.find("#description_tabs_content").find("#en").length > 0)
+ {
+ descObject.find("#description_tabs_content").find("#en").css("display","block");
+ descObject.find(".desc_menu").find(".en").addClass("current_tab");
+ }
+ else
+ {
+ descObject.find("#description_tabs_content").find(".description_tabs_page").first().css("display","block");
+ descObject.find(".desc_menu li").first().addClass("current_tab");
+ }
+ }
+// $("#description_tabs_content").find("#"+tagLabel).css("display","block");
+}
+
//--> \ No newline at end of file