From b2b24146eff9e6cec2abf85a2fb0716c0cc2058f Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 13 May 2014 01:10:40 +0530 Subject: [PATCH] Remove unused JS files --- LICENSES | 3 --- templates/base.html | 4 ---- themes/default/js/functions.js | 23 ----------------------- themes/default/js/plinth.js | 16 ---------------- themes/default/js/plugins.js | 34 ---------------------------------- 5 files changed, 80 deletions(-) delete mode 100644 themes/default/js/functions.js delete mode 100644 themes/default/js/plinth.js delete mode 100644 themes/default/js/plugins.js diff --git a/LICENSES b/LICENSES index f967fb292..ab1641ef1 100644 --- a/LICENSES +++ b/LICENSES @@ -107,8 +107,5 @@ specified and linked otherwise. - themes/default/img/freedombox-logotype.png :: - - themes/default/img/glyphicons-halflings.png :: - - themes/default/img/glyphicons-halflings-white.png :: - -- themes/default/js/functions.js :: - -- themes/default/js/plinth.js :: - -- themes/default/js/plugins.js :: [[file:themes/default/js/plugins.js::/%20paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/][CC0]] - themes/default/js/libs/jquery.min.js :: Symlink to external target: [[file:themes/default/js/libs/jquery.min.js::*%20Dual%20licensed%20under%20the%20MIT%20or%20GPL%20Version%202%20licenses.][MIT/GPL2]] - themes/default/js/libs/modernizr.min.js :: Symlink to external target: MIT diff --git a/templates/base.html b/templates/base.html index 9f381dd8b..ebaea525c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -46,8 +46,6 @@ {{ css|safe }} - - @@ -131,8 +129,6 @@ - - {% block js_block %} {{ js|safe }} {% endblock %} diff --git a/themes/default/js/functions.js b/themes/default/js/functions.js deleted file mode 100644 index 950e4b287..000000000 --- a/themes/default/js/functions.js +++ /dev/null @@ -1,23 +0,0 @@ -// remap jQuery to $ -(function($){})(window.jQuery); - - -/* trigger when page is ready */ -$(document).ready(function (){ - - // your functions go here - -}); - - -/* optional triggers - -$(window).load(function() { - -}); - -$(window).resize(function() { - -}); - -*/ diff --git a/themes/default/js/plinth.js b/themes/default/js/plinth.js deleted file mode 100644 index dfe144397..000000000 --- a/themes/default/js/plinth.js +++ /dev/null @@ -1,16 +0,0 @@ -function toggle_visibility(id) { - var d = document.getElementById(id); - if(d.style.display == 'block') - d.style.display = 'none'; - else - d.style.display = 'block'; -} - -function show(id) { - var d = document.getElementById(id); - d.style.display = 'block'; -} - -function hide(id) { - document.getElementById(id).style.display = 'none'; -} diff --git a/themes/default/js/plugins.js b/themes/default/js/plugins.js deleted file mode 100644 index 07c4f2d62..000000000 --- a/themes/default/js/plugins.js +++ /dev/null @@ -1,34 +0,0 @@ -// usage: log('inside coolFunc', this, arguments); -// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ -window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; args.callee = args.callee.caller; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}}; - -// make it safe to use console.log always -(function(a){function b(){}for(var c="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),d;!!(d=c.pop());){a[d]=a[d]||b;}}) -(function(){try{console.log();return window.console;}catch(a){return (window.console={});}}()); - - -// place any jQuery/helper plugins in here, instead of separate, slower script files. - -// remap jQuery to $ -(function($){})(window.jQuery); - - -/* trigger when page is ready */ -$(document).ready(function (){ - - // your functions go here - -}); - - -/* optional triggers - -$(window).load(function() { - -}); - -$(window).resize(function() { - -}); - -*/