debugging console for IE;

This commit is contained in:
Tobias Klika
2011-06-13 14:12:44 +02:00
parent 5c4e3a53c1
commit cd61099c09
10 changed files with 36 additions and 27 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
%title Nineminutes
= include_stylesheets :common, :media=>'all'
= javascript_include_tag "http://www.google.com/jsapi"
= include_javascripts :jquery, :plugins, :common
= include_javascripts :jquery, :helper, :plugins, :common
= csrf_meta_tag
%body
+2
View File
@@ -5,6 +5,8 @@ javascript_compressor: closure
javascripts:
jquery:
- public/javascripts/jquery.js
helper:
- public/javascripts/helper/*.js
plugins:
- public/javascripts/plugins/*.js
common:
+10 -10
View File
@@ -1,16 +1,16 @@
// Default paths for application
// DON'T CHANGE!!!
const hashbang = "#!";
const artist_path = "/artists/";
const home_path = "/home";
const charts_path = "/charts";
const search_path = "/search/";
const search_autocomplete_path = "/autocomplete/";
const user_path = "/users/";
const register_path = "/register";
const login_path = "/login";
const logout_path = "/logout";
var hashbang = "#!";
var artist_path = "/artists/";
var home_path = "/home";
var charts_path = "/charts";
var search_path = "/search/";
var search_autocomplete_path = "/autocomplete/";
var user_path = "/users/";
var register_path = "/register";
var login_path = "/login";
var logout_path = "/logout";
$(document).ready(function(){
Path.root(hashbang+home_path);
+1
View File
@@ -0,0 +1 @@
/* Faux Console by Chris Heilmann http://wait-till-i.com */ if(!window.console){var console={init:function(){console.d=document.createElement('div');document.body.appendChild(console.d);var a=document.createElement('a');a.href='javascript:console.hide()';a.innerHTML='close';console.d.appendChild(a);var a=document.createElement('a');a.href='javascript:console.clear();';a.innerHTML='clear';console.d.appendChild(a);var id='fauxconsole';if(!document.getElementById(id)){console.d.id=id;}console.hide();},hide:function(){console.d.style.display='none';},show:function(){console.d.style.display='block';},log:function(o){console.d.innerHTML+='<br/>'+o;console.show();},clear:function(){console.d.parentNode.removeChild(console.d);console.init();console.show();},/*Simon Willison rules*/addLoadEvent:function(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){if(oldonload){oldonload();}func();}};}};console.addLoadEvent(console.init);}
-15
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -1,4 +1,5 @@
@import "reset";
@import "fauxconsole";
@import "layout";
@import "artist";
+20
View File
@@ -0,0 +1,20 @@
#fauxconsole{
position:absolute;
top:0;
right:0;
width:300px;
border:1px solid #999;
font-family:courier,monospace;
background:#eee;
font-size:10px;
padding:10px;
}
html>body #fauxconsole{
position:fixed;
}
#fauxconsole a{
float:right;
padding-left:1em;
padding-bottom:.5em;
text-align:right;
}