Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (48 sloc) 2.541 kb
e2a0f56 @remy First version of console - need to add directions (though it's fairly…
remy authored
1 <!DOCTYPE html>
7d8d637 @remy code complete for iOS 5 - without contenteditable
remy authored
2 <html lang="en" manifest="jsconsole.appcache">
e2a0f56 @remy First version of console - need to add directions (though it's fairly…
remy authored
3 <head>
3150b50 @remy viewport
remy authored
4 <meta charset="utf-8" />
d750797 @remy Added instructions on how to use :listen command
remy authored
5 <title>JavaScript console - for debugging JavaScript and remote debugging mobile web apps</title>
0dcbd1f @mathiasbynens Use `,` (instead of the incorrect `;`) to separate multiple key-value…
mathiasbynens authored
6 <meta id="meta" name="viewport" content="width=device-width, user-scalable=no, initial-scale=1" />
044003e @remy Little message - should probably include a link to who wrote this som…
remy authored
7 <!--
8
9 Hey there fellow JavaScript lover - I assume you've got a soft spot
10 for the JavaScript, otherwise what use would a console be to you?
11
12 This was primarily built out of a demo I wrote for my upcoming book
13 introducinghtml5.com as a way to introspect what was going on inside
14 a web worker, since the environment is sandboxed. Then I realised,
15 I need a sandbox environment/console that I could increase the font
16 size - and having seen something similar-ish by @thomasfuchs, I went
17 about tweaking my worker demo to this. About 3 hours work one late
18 Sunday afternoon.
19
20 The way this works, is I generate an iframe on the fly, an run the
21 commands through an eval *inside* the iframe, so it's a fairly good
22 enviroment to run tests. Then I've got a custom stringify function
23 because JSON.stringify doesn't decode native DOM objects, like the
24 DOMWindow object.
25
26 There's more I want to do with this, so watch the github account
d750797 @remy Added instructions on how to use :listen command
remy authored
27 or even contribute: http://github.com/remy/jsconsole
044003e @remy Little message - should probably include a link to who wrote this som…
remy authored
28
29 Otherwise, hope you enjoy this app. Any questions or issues, drop
d750797 @remy Added instructions on how to use :listen command
remy authored
30 me a message on github or Twitter: http://twitter.com/rem
044003e @remy Little message - should probably include a link to who wrote this som…
remy authored
31
32 - Cheers, @rem
33
34 -->
2dcbd2a @remy Tweaks to UI and added :help shortcut
remy authored
35 <link rel="icon" href="/favicon.png" type="image/png">
36 <link rel='apple-touch-icon' href='/favicon.png' />
63709ed @remy making it installable
remy authored
37 <meta name="apple-mobile-web-app-capable" content="yes" />
203bbba @remy app bar style=black
remy authored
38 <meta name="apple-mobile-web-app-status-bar-style" content="black" />
bc72fe5 @mathiasbynens Omit `type="text/css"` as it’s not needed.
mathiasbynens authored
39 <link href="/startup.png" rel="apple-touch-startup-image" />
40 <link rel="stylesheet" href="console.css" />
e2a0f56 @remy First version of console - need to add directions (though it's fairly…
remy authored
41 </head>
42 <body>
43 <form>
5cf22e6 @remy iOS - stop correcting me, fooool
remy authored
44 <textarea autofocus id="exec" spellcheck="false" autocapitalize="off" rows="1" autocorrect="off"></textarea>
e2a0f56 @remy First version of console - need to add directions (though it's fairly…
remy authored
45 </form>
46 <div id="console">
47 <ul id="output"></ul>
48 </div>
533fd7f @remy Added link to native iOS app version
remy authored
49 <div id="footer"><a href="/app/">Get the native iOS app</a> &bull; <a href="http://github.com/remy/jsconsole">Fork on Github</a> &bull; <a href="http://twitter.com/rem">Built by @rem</a></div>
e2a0f56 @remy First version of console - need to add directions (though it's fairly…
remy authored
50 <script src="prettify.packed.js"></script>
2a88425 @remy Support for browsers without EventSource baked in.
remy authored
51 <script src="EventSource.js"></script>
5c76d2b @remy Removed random var, and support query string/permalinks
remy authored
52 <script src="console.js"></script>
0dcbd1f @mathiasbynens Use `,` (instead of the incorrect `;`) to separate multiple key-value…
mathiasbynens authored
53 <script>var _gaq=[['_setAccount','UA-1656750-21'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)})(document,'script')</script>
e2a0f56 @remy First version of console - need to add directions (though it's fairly…
remy authored
54 </body>
5cf22e6 @remy iOS - stop correcting me, fooool
remy authored
55 </html>
Something went wrong with that request. Please try again.