From 7a2f9dcf8b56b6923a5bde028ea1838d32572588 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 1 Jun 2012 22:23:31 +0100 Subject: [PATCH] Formatting and consistency improvements - Consistent use of quotes in HTML. - Consistent use of hex for color values in CSS. - Multi-line CSS and JS. - 4 spaces for indentation. - Always use closing tags. - Use common DOCTYPE capitalization. These are steps toward reducing the number of repeat issues we get around inconsistencies or uncommon patterns; making diffs more readable; and using common conventions. --- 404.html | 191 ++++++++++++++---- crossdomain.xml | 11 +- css/style.css | 504 +++++++++++++++++++++++++++++++++++++++--------- index.html | 72 +++---- js/main.js | 5 - js/plugins.js | 45 ++++- 6 files changed, 651 insertions(+), 177 deletions(-) diff --git a/404.html b/404.html index 9b5c0f7e6..e8cce3245 100644 --- a/404.html +++ b/404.html @@ -1,42 +1,157 @@ - + - - Page Not Found :( - + + Page Not Found :( + -
-

Not found :(

-

Sorry, but the page you were trying to view does not exist.

-

It looks like this was the result of either:

- - - -
\ No newline at end of file +
+

Not found :(

+

Sorry, but the page you were trying to view does not exist.

+

It looks like this was the result of either:

+ + + +
+ + diff --git a/crossdomain.xml b/crossdomain.xml index 04aa72191..549ab9a18 100644 --- a/crossdomain.xml +++ b/crossdomain.xml @@ -2,19 +2,16 @@ - - - - + - + - - + + - - + + - - + + - + - + - + - - + + - - + + - + - + - - - + + + - - - - + + + + - - + + diff --git a/js/main.js b/js/main.js index 206efd4d3..c8ebaef50 100644 --- a/js/main.js +++ b/js/main.js @@ -1,8 +1,3 @@ /* Author: */ - - - - - diff --git a/js/plugins.js b/js/plugins.js index c307c245e..01705becc 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -1,11 +1,48 @@ // 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; try { args.callee = f.caller } catch(e) {}; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}}; + +window.log = function f() { + log.history = log.history || []; + log.history.push(arguments); + if (this.console) { + var args = arguments; + var newarr; + + try { + args.callee = f.caller; + } catch(e) { + + } + + 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={});}}()); +(function(a) { + function b() {} + var c = "assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn"; + var d; + for (c.split(","); !!(d = c.pop());) { + a[d] = a[d] || b; + } +}); -// place any jQuery/helper plugins in here, instead of separate, slower script files. +(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.