[svn] Fixed accidental removal of fading in margin pictures from main page of eye candy site.

Reduced non eye candy margins.
Moved set contents style height function into main.js from being embeded js, and ran when eye candy is turned on.  Remove style attribute when eye candy is turned back off.
This commit is contained in:
martin speleo 2009-06-28 23:11:45 +01:00
parent 2ad3d7e332
commit 3e377eb32e
3 changed files with 17 additions and 17 deletions

View File

@ -261,9 +261,9 @@ div#content {
margin-left: 20px;
margin-right: 20px;
padding-top: 10px;
padding-left: 5em;
padding-right: 5em;
padding-bottom:5em;
padding-left: 1em;
padding-right: 1em;
padding-bottom:1em;
background:#fff;
}
@ -277,7 +277,7 @@ div#content {
body {
background-color:#fff;
padding-bottom:100px;
padding-bottom:10px;
}

View File

@ -48,11 +48,7 @@ $(".toggleMenu").click(function () {
$(".toggleMenu").toggle();
});
$(".footer").hide();
$(".fadeIn").hide();
setTimeout("$('.leftMargin.fadeIn').fadeIn(3000);",1000);
setTimeout("$('.rightMargin.fadeIn').fadeIn(3000);",2000);
$("a.closeDiv").click(function () {
$("a.closeDiv").click(function () {
$(this).parent().hide();
});
@ -88,9 +84,11 @@ $(".killEyeCandy").show();
linkHover("#cavesLink","#richardBanner");
linkHover("#caversLink","#timeMachine");
linkHover("#surveyBinderLink","#surveyHover");
linkHover("#troggle","#timeMachine");};
linkHover("#troggle","#timeMachine");
contentHeight();};
function killEyeCandy(){
$("#content").removeAttr("style")
switchStylestyle("plain");
$(".leftMargin,.rightMargin").hide();
$(".showEyeCandy").show();
@ -104,7 +102,12 @@ $("#troggle").unbind('mouseover').unbind('mouseout');
if (getCookie("eyeCandy") == "False")
{killEyeCandy();}
else
{showEyeCandy();}
{showEyeCandy();
$(".footer").hide();
$(".fadeIn").hide();
setTimeout("$('.leftMargin.fadeIn').fadeIn(3000);",1000);
setTimeout("$('.rightMargin.fadeIn').fadeIn(3000);",2000);
}
/*dropdown (well, up actually) menu code from http://css-tricks.com/simple-jquery-dropdowns/*/
$("ul.dropdown li").hover(

View File

@ -10,9 +10,6 @@
<script src="{{ settings.MEDIA_URL }}js/jquery.quicksearch.js" type="text/javascript"></script>
<script src="{{ settings.MEDIA_URL }}js/base.js" type="text/javascript"></script>
<script src="{{ settings.MEDIA_URL }}js/jquery.dropdownPlain.js" type="text/javascript"></script>
<script language="javascript">
window.onload = contentHeight;
</script>
{% block head %}{% endblock %}
</head>