summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-18 04:25:42 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-18 04:25:42 +0100
commitd99f44650cd3130e9a4ecc4c4bf66e79fbd4200a (patch)
tree8be54db46460b8792024bee97f4d908b745dd8f6 /media
parent4a42396774b5f3707053390e8f98a069d4837a02 (diff)
downloadtroggle-d99f44650cd3130e9a4ecc4c4bf66e79fbd4200a.tar.gz
troggle-d99f44650cd3130e9a4ecc4c4bf66e79fbd4200a.tar.bz2
troggle-d99f44650cd3130e9a4ecc4c4bf66e79fbd4200a.zip
[svn] Turn main menu into dropdown (well actually, drop up) menu.
Diffstat (limited to 'media')
-rw-r--r--media/css/main3.css31
-rw-r--r--media/js/base.js61
2 files changed, 45 insertions, 47 deletions
diff --git a/media/css/main3.css b/media/css/main3.css
index 384d9b3..77657a0 100644
--- a/media/css/main3.css
+++ b/media/css/main3.css
@@ -1,20 +1,3 @@
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, font, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td
- {
-
- font-weight: inherit;
- font-style: inherit;
- font-size: 100%;
- font-family: inherit;
- vertical-align: baseline;
- }
-
html, body {
height: 100%;
}
@@ -343,16 +326,10 @@ h1 {
#footerLinks{
position:fixed;
- text-align: center;
- bottom:0;
- left:0;
- width:100%;
- background-color:#000;
- color:#999
-}
-
-#footerLinks a{
- color:#FFF
+ bottom:0px;
+ padding: 0;
+ margin-left:130px;
+ margin-right:130px;
}
/*.fadeIn {
diff --git a/media/js/base.js b/media/js/base.js
index 0dc562b..7a7ed5e 100644
--- a/media/js/base.js
+++ b/media/js/base.js
@@ -1,4 +1,22 @@
+/* The following serves to stretch the content div to the bottom of the margin images, or vice versa*/
+function contentHeight(){
+setMaxHeight($(".rightMargin,#content,.leftMargin,#col2"),$("#content"));
+};
+
+function setMaxHeight(group, target) {
+ tallest = 0;
+ group.each(function() {
+ thisHeight = $(this).height();
+ if(thisHeight > tallest) {
+ tallest = thisHeight;
+ }
+ });
+ target.height(tallest);
+}
+
+
+/*This is the jquery comment stuff */
$(document).ready(function() {
$('.searchable li').quicksearch({
@@ -19,6 +37,11 @@ $(".toggleEyeCandy").click(function () {
$(".toggleEyeCandy").toggle();
});
+$(".toggleMenu").click(function () {
+ $("ul.dropdown li:not(.toggleMenu)").toggle();
+ $(".toggleMenu").toggle();
+ });
+
$(".nav").css('opacity','7')
$(".footer").hide();
$(".fadeIn").hide();
@@ -36,11 +59,11 @@ function linkHover(hoverLink,image){
$(hoverLink).hover(
function() {
$(image).fadeIn("slow");
- $(hoverLink).css("background","gray");
+/* $(hoverLink).css("background","gray");*/
},
function() {
$(image).fadeOut("slow");
- $(hoverLink).css("background","black");
+/* $(hoverLink).css("background","black");*/
}
);
@@ -48,27 +71,25 @@ $(hoverLink).hover(
};
-linkHover("#expoWebsiteLink","#richardBanner");
-linkHover("#cuccLink","#timeMachine");
+linkHover("#cavesLink","#richardBanner");
+linkHover("#caversLink","#timeMachine");
linkHover("#surveyBinderLink","#surveyHover");
linkHover("#troggle","#timeMachine");
-
-});
-
-function contentHeight(){
-setMaxHeight($(".rightMargin,#content,.leftMargin,#col2"),$("#content"));
-};
-
-function setMaxHeight(group, target) {
- tallest = 0;
- group.each(function() {
- thisHeight = $(this).height();
- if(thisHeight > tallest) {
- tallest = thisHeight;
- }
+/*dropdown (well, up actually) menu code from http://css-tricks.com/simple-jquery-dropdowns/*/
+$("ul.dropdown li").hover(
+ function(){
+ $(this).addClass("hover");
+ $('ul:first',this).css('visibility','visible')
+ },
+
+ function(){
+ $(this).removeClass("hover");
+ $('ul:first',this).css('visibility', 'hidden');
});
- target.height(tallest);
-}
+ $("ul.dropdown li ul li:has(ul)").find("a:first").append(" &raquo; ");
+/* end dropdown menu code */
+
+});