added statcounter code to base template; the javascript was messing up the supporter page hidden settings, so I omitted the js there

also added a css block so we can have all css load before js
pull/1/head
eric 2011-11-29 18:14:25 -05:00
parent 5f7fa87a92
commit 8768a55571
2 changed files with 28 additions and 4 deletions

View File

@ -12,6 +12,7 @@
<link type="text/css" rel="stylesheet" href="/static/css/sitewide.css" />
<link href="/static/css/book-panel.css" rel="stylesheet" type="text/css" />
<link REL="SHORTCUT ICON" HREF="/static/images/favicon.ico">
{% block extra_css %}{% endblock %}
{% block base_js %}
<script type="text/javascript" src="/static/js/jquery-1.6.3.min.js"></script>
<script type="text/javascript" src="/static/js/book-panel.js"></script>
@ -106,7 +107,23 @@
</div>
</div>
</div>
{% block counter %}
<script type="text/javascript">
var sc_project=7447776;
var sc_invisible=1;
var sc_security="9ae2ba93";
var sc_https=1;
var scJsHost = (("https:" == document.location.protocol) ?
"https://secure." : "http://www.");
document.write("<sc"+"ript type='text/javascript' src='" +
scJsHost +
"statcounter.com/counter/counter_xhtml.js'></"+"script>");</script>
<noscript><div class="statcounter"><a title="web
statistics" href="http://statcounter.com/free-web-stats/"
class="statcounter"><img class="statcounter"
src="https://c.statcounter.com/7447776/0/9ae2ba93/1/"
alt="web statistics" /></a></div></noscript>
{% endblock %}
</body>
</html>

View File

@ -2,12 +2,12 @@
{% load endless %}
{% block title %} &#8212; {{ supporter.username }}{% endblock %}
{% block extra_head %}
{% block extra_css %}
<link type="text/css" rel="stylesheet" href="/static/css/supporter_layout.css" />
<link type="text/css" rel="stylesheet" href="/static/css/book_list.css" />
<link type="text/css" rel="stylesheet" href="/static/css/book_panel.css" />
{% endblock %}
{% block extra_head %}
<script type="text/javascript" src="/static/js/wishlist.js"></script>
<script type="text/javascript" src="/static/js/jquery-1.6.3.min.js"></script>
<script type="text/javascript" src="/static/js/jquery-ui-1.8.16.custom.min.js"></script>
@ -256,3 +256,10 @@ how do I integrate the your wishlist thing with the tabs thing?
{% endblock %}
{% block counter %}
<div class="statcounter"><a title="web
statistics" href="http://statcounter.com/free-web-stats/"
class="statcounter"><img class="statcounter"
src="https://c.statcounter.com/7447776/0/9ae2ba93/1/"
alt="web statistics" /></a></div>
{% endblock %}