From fe2acd8e538413a43ae1bc59b21be15a0d092853 Mon Sep 17 00:00:00 2001 From: m-r-r Date: Mon, 28 May 2012 13:15:44 +0200 Subject: Code cleanup --- dev-random/static/js/hex2ascii.js | 20 -------------------- dev-random/templates/base.html | 30 ++++++++++-------------------- 2 files changed, 10 insertions(+), 40 deletions(-) delete mode 100644 dev-random/static/js/hex2ascii.js (limited to 'dev-random') diff --git a/dev-random/static/js/hex2ascii.js b/dev-random/static/js/hex2ascii.js deleted file mode 100644 index 3dde36f..0000000 --- a/dev-random/static/js/hex2ascii.js +++ /dev/null @@ -1,20 +0,0 @@ - -window.hex2ascii = {}; -window.hex2ascii.init = function() { - var els = document.getElementsByClassName('hex'), - hex, text, - i, j, e; - - for(i=0; i < els.length; i++) { - e = els[i]; - hex = e.innerHTML.split(' '); - text = ""; - - for(j=0; j < hex.length; j++) { - text += String.fromCharCode(parseInt(hex[j], 16)); - } - - e.innerHTML = text; - e.className = e.className.replace('hex',''); - } -}; diff --git a/dev-random/templates/base.html b/dev-random/templates/base.html index d9dd46a..0df9663 100644 --- a/dev-random/templates/base.html +++ b/dev-random/templates/base.html @@ -15,29 +15,19 @@ title="{{ SITENAME }} — Flux RSS" href="{{ SITEURL }}/{{ FEED_RSS }}" /> {% endif %} - + {% if GOOGLE_ANALYTICS %} {% endif %} {% endblock headers %} -- cgit v1.1