diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 99 | ||||
-rw-r--r-- | templates/cave.html | 2 | ||||
-rw-r--r-- | templates/caveindex.html | 9 | ||||
-rw-r--r-- | templates/survey.html | 5 |
4 files changed, 90 insertions, 25 deletions
diff --git a/templates/base.html b/templates/base.html index c7fa462..eb478c5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,56 +5,117 @@ <link rel="stylesheet" type="text/css" href="{{ settings.MEDIA_URL }}css/main3.css" />
<title>{% block title %}THE TITLE{% endblock %}</title>
<script src="{{ settings.MEDIA_URL }}js/base.js" type="text/javascript"></script>
-<script src="{{ settings.MEDIA_URL }}js/jquery.js" type="text/javascript"></script>
+<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
+<script src="http://ejohn.org/apps/livesearch/jquery.livesearch.js" type="text/javascript"></script>
+
<script type="text/javascript">
-
-$("#killEyeCandy").click(function () {
- $("#leftMargin").fadeIn("slow");
+$(document).ready(function() {
+
+
+$(".toggleEyeCandy").click(function () {
+ $(".leftMargin,.rightMargin").toggle("fade");
+ $(".toggleEyeCandy").toggle();
});
+$(".nav").css('opacity','7')
+$(".eyeCandy").hide();
+setTimeout("$('.leftMargin').fadeIn(3000);",2000);
+setTimeout("$('.rightMargin').fadeIn(3000);",4000);
+
+
+/*$("#footerLinks").hover(
+ function() {$(".footer").fadeIn("slow")},
+ function() {$(".footer").fadeOut("slow")}
+);*/
+$("#expoWebsiteLink").hover(
+ function() {$("#richardBanner").fadeIn("slow")},
+ function() {$("#richardBanner").fadeOut("slow")}
+);
+
+$("#cuccLink").hover(
+ function() {
+
+ $("#timeMachine").fadeIn("slow");
+ $(".rightMargin,.leftMargin").fadeTo("30","fast");
+ },
+ function() {$("#timeMachine").fadeOut("slow")}
+);
+
+
+});
+
+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);
+}
+$('#q').liveUpdate('posts').focus();
</script>
{% block head %}{% endblock %}
</head>
-<body>
+<body onLoad="contentHeight();">
<div id="header">
<h1>CUCC Expeditions to Austria: 1976 - 2009</h1>
<div id="editLinks"> {% block loginInfo %}
{% if user.username %}
- You are logged in as {{ user.username }} {% if user.person %}<a href="{{ user.person.get_absolute_url }}">{{ user.person }}</a>{% endif %}.
+ You are logged in as {{ user.username }} {% if user.person %}(<a href="{{ user.person.get_absolute_url }}">{{ user.person }}</a>){% endif %}.
| <a href="{{ settings.URL_ROOT }}/accounts/logout/">Log out</a> {% else %} <a href="{{ settings.URL_ROOT }}/accounts/register">Sign up</a> | <a href="{{ settings.URL_ROOT }}/accounts/login/">Log in</a> {% endif %}
{% endblock%}
- | <a href="{{ settings.URL_ROOT }}">Home </a> | <a href="#" id="killEyeCandy">Kill Eyecandy</a> |
+ | <a href="{{ settings.URL_ROOT }}">Home</a> | <a class="toggleEyeCandy">Kill Eyecandy</a><a class="toggleEyeCandy" style="display: none;">Show Eyecandy</a>
{% block editLink %}
{% endblock %}
</div>
</div>
+<div id="nav">
{% block nav %}
<!-- Use id="nav" for the left side menu -->
{% endblock %}
- <div id="content" > {% block contentheader %}
+</div>
+
+
+ <div id="content" >
+
+ {% block contentheader %}
{% endblock %}
+
{% block content %}
REPLACE : The content
- {% endblock %} <br class="clearfloat" />
- <!--This is to ensure that the content div expands around floated objects*/-->
+ {% endblock %}
+
</div>
-</div>
-<div class="push"></div>
-<div class="footer">
-<img id="banner" src="{{ settings.MEDIA_URL }}expoBanner.gif"/>
-</div>
-<img id="leftMargin" src="{{ settings.MEDIA_URL }}eieshole.jpg">
-<img id="rightMargin" src="{{ settings.MEDIA_URL }}goesser.jpg">
+<img id="richardBanner" class="footer eyeCandy" src="{{ settings.MEDIA_URL }}expoBanner.gif"/>
+<img id="timeMachine" class="footer eyeCandy" src="{{ settings.MEDIA_URL }}timemachine.gif"/>
+<img class="caversLink eyeCandy" src="{{ settings.MEDIA_URL }}expoBanner.gif"/>
+
+
+
-<div class="footer" id="footerLinks">
-<a href="http://cucc.survex.com"> CUCC website</a>| <a href="http://cucc.survex.com/expo"> Expedition website </a>| <a href="{% url frontpage %}"> Troggle front page </a>| <a href="{% url caveindex %}"> All caves </a>| <a href="{% url personindex %}"> All cavers </a>| <a href="{% url caveindex %}"> Virtual survey binder </a>| <a href="{% url survey %}"> Expedition statistics </a>| <a href="{% url calendar 2007 %}"> Expedition calendar </a>
+<div id="footerLinks">
+ <a id="cuccLink" href="http://cucc.survex.com">CUCC website</a> |
+ <a id="expoWebsiteLink" href="http://cucc.survex.com/expo">Expedition website</a> |
+ External links |
+ <a href="{% url frontpage %}">Troggle front page</a> |
+ <a href="{% url caveindex %}">Caves</a> |
+ <a id="caversLink" href="{% url personindex %}">Cavers</a> |
+ <a href="{% url survey %}"> Survey binder</a> |
+ <a href="{% url stats %}"> Statistics</a> |
+ <a href="{% url calendar 2007 %}">Expedition calendar</a>
</div>
</body>
diff --git a/templates/cave.html b/templates/cave.html index 9b7c482..0f72b11 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -1,6 +1,6 @@ {% extends "cavebase.html" %}
{% load wiki_markup %}
-{% block editLink %}<a href={{cave.get_admin_url}}>Edit cave {{cave|wiki_to_html_short}}</a>{% endblock %}
+{% block editLink %}| <a href={{cave.get_admin_url}}>Edit cave {{cave|wiki_to_html_short}}</a>{% endblock %}
{% block content %}
<div id="col2">
diff --git a/templates/caveindex.html b/templates/caveindex.html index 3132701..b743d6c 100644 --- a/templates/caveindex.html +++ b/templates/caveindex.html @@ -13,7 +13,14 @@ </ul>
<h3>All caves</h3>
-<ul>
+
+ <form method="get">
+ <div>
+ <input type="text" value="" name="q" id="q" />
+ </div>
+ </form>
+
+<ul id="posts">
{% for cave in caves %}
<li> <a href="{{ cave.get_absolute_url }}">{{cave.official_name|wiki_to_html_short}} ({{cave}})</a> </li>
{% endfor %}
diff --git a/templates/survey.html b/templates/survey.html index e2e8c80..6fce15f 100644 --- a/templates/survey.html +++ b/templates/survey.html @@ -6,10 +6,7 @@ {% block head %}
<link rel="stylesheet" type="text/css" href="{{ settings.MEDIA_URL }}css/nav.css" />
-<!--<style type="text/css">
-h4 { text-align:right; text-decoration:underline }
-select { margin:0.5em }
-</style>-->
+
<script language="javascript">
blankColor = "rgb(153, 153, 153)"
highlightedColor = "rgb(125, 125, 125)"
|