Mercurial > open-web-challenges
comparison open-web-challenges.js @ 20:1c1f74ba541a
Removed firebug lite fallback b/c it was messing up a lot and spamming modal alerts.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Tue, 31 Mar 2009 09:36:12 -0700 |
parents | c029286305e2 |
children | f44ab359f4af |
comparison
equal
deleted
inserted
replaced
19:c029286305e2 | 20:1c1f74ba541a |
---|---|
69 | 69 |
70 function showChallenge() { | 70 function showChallenge() { |
71 OWC.load(challengeId); | 71 OWC.load(challengeId); |
72 } | 72 } |
73 | 73 |
74 if ($('#_firebugConsole').length) | 74 showChallenge(); |
75 showChallenge(); | |
76 else { | |
77 jQuery.getScript( | |
78 'firebug-lite.js', | |
79 function() { | |
80 if (window.firebug.version) { | |
81 firebug.init(); | |
82 firebug.d.console.cmd.log( | |
83 ('Because Firebug wasn\'t detected, you are ' + | |
84 'now using Firebug lite. Unfortunately, this means that ' + | |
85 'some hints won\'t necessarily work for you, and you ' + | |
86 'may need to use some clever tricks to get through ' + | |
87 'some of the challenges.') | |
88 ); | |
89 } | |
90 showChallenge(); | |
91 }); | |
92 } | |
93 }); | 75 }); |