Skip to content
Newer
Older
100755 309 lines (289 sloc) 11.2 KB
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
1 <html>
2 <head><title>JSLint, The JavaScript Code Quality Tool</title>
3 <link rel="icon" type="image/gif" href="http://www.JSLint.com/favicon.gif">
4 <style>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
5 #JSLINT_TABLE td span {
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
6 border: 2px solid black;
7 }
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
8 table {
9 cursor: pointer;
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
10 }
11 i {
12 font-family: serif;
13 font-style: italic;
14 }
15 p {
16 padding-left: 10pt;
17 }
18 input[type="button"] {
19 background-color: navajowhite;
20 border: 2px solid black;
21 color: black;
22 }
23 input[type="button"]:hover {
24 background-color: lightsteelblue;
25 text-decoration: underline;
26 }
27 input[type="button"]:active {
28 background-color: indianred;
29 text-decoration: none;
30 }
31
32 input[type="text"] {
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
33 border: 2px solid black;
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
34 text-align: center;
35 }
36
37 a:link {
38 color: darkblue;
39 }
40 a:visited {
41 color: purple;
42 }
43 a:hover {
44 color: blue;
45 }
46 a:active {
47 color: red;
48 }
49 body {
50 background-color: gainsboro;
51 padding-left: 5%;
52 padding-right: 5%;
53 text-align: center;
54 }
55
56
57 .leftcolumn {
58 float: left;
59 margin: 1em;
60 }
61
62 #errors {
63 margin: 1em;
64 border: 2px solid black;
65 padding: 1em;
66 background-color: mistyrose;
67 }
68 #errors p {
69 margin-left: 2em;
70 }
71 #errors p.evidence {
72 margin-left: 0;
73 font-family: monospace;
74 }
75
76 #functions {
77 background-color: white;
78 }
79 #members {
80 background-color: peachpuff;
81 }
82
83 #functions, #members {
84 border: 2px solid black;
85 font-family: monospace;
86 margin: 1em;
87 padding: 1em;
88 }
89 #functions div {
90 margin-left: 10em;
91 text-indent: -5em;
92 }
93 #functions div.function {
94 margin-left: 0;
95 text-indent: 0;
96 }
97
dedfd85 @douglascrockford option.indent
douglascrockford authored Jan 20, 2011
98 #JSLINT_OUTPUT {
99 text-align: left;
100 }
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
101
3c8016e @douglascrockford option.continue
douglascrockford authored Feb 2, 2011
102 #JSLINT_INPUT{
103 border: 2px solid black;
104 color: black;
105 font-family: monospace;
106 height: 3in;
107 overflow: auto;
108 padding: 0.5em;
109 width: 100%;
110 }
111
112 #JSLINT_JSLINTSTRING {
113 background-color: peachpuff;
114 border: 2px solid black;
115 font-family: monospace;
116 margin: 1em;
117 padding: 1em;
118 }
119
120 #JSLINT_OPTIONS {
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
121 border: 2px solid black;
122 color: black;
123 margin: 1em;
124 padding: 8px;
125 text-align: left;
3c8016e @douglascrockford option.continue
douglascrockford authored Feb 2, 2011
126 background-color: linen;
127 }
128
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
129 #JSLINT_TREE, #JSLINT_FIELDS {
3c8016e @douglascrockford option.continue
douglascrockford authored Feb 2, 2011
130 text-align: left;
131 }
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
132 </style></head>
133 <body>
ae6a9f8 @douglascrockford option.type
douglascrockford authored Jun 2, 2011
134 <table border="0" cols="2"><tbody>
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
135 <tr>
136 <td><img src="jslint.gif" width="383" height="120" alt="JSLint"> </td>
137 <td valign="middle" align="left">
16bfba4 @douglascrockford &nbsp;
douglascrockford authored Feb 13, 2011
138 <p><big>The&nbsp;<a href="http://javascript.crockford.com/">JavaScript</a>&nbsp;Code Quality Tool</big></p>
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
139 <p id=JSLINT_EDITION></p>
140 <p>
16bfba4 @douglascrockford &nbsp;
douglascrockford authored Feb 13, 2011
141 <a href="http://www.JSLint.com/lint.html">Read the instructions.</a>&nbsp;
142 <a href="#JSLINT_OPTIONS">Set the options.</a>&nbsp;
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
143 <a href="http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb"
16bfba4 @douglascrockford &nbsp;
douglascrockford authored Feb 13, 2011
144 target="_blank">Enjoy&nbsp;<i>The Good Parts</i>.</a></p>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
145 </td></tr></tbody></table>
146 <script src="web_jslint.js">
147 // json2.js+jslint.js+adsafe.js+intercept.js
5675d2c @douglascrockford http://tech.groups.yahoo.com/group/jslint_com/message/1730
douglascrockford authored Jan 7, 2011
148 </script>
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
149
150 <div id="JSLINT_">
151
16bfba4 @douglascrockford &nbsp;
douglascrockford authored Feb 13, 2011
152 <p style="background-color: transparent;"><textarea id="JSLINT_INPUT"></textarea></p>
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
153 <p>
154 <input type="button" name="jslint" value="JSLint">
155 &nbsp; &nbsp;
5675d2c @douglascrockford http://tech.groups.yahoo.com/group/jslint_com/message/1730
douglascrockford authored Jan 8, 2011
156 <input type="button" name="tree" value="Syntax Tree">
157 &nbsp; &nbsp;
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
158 <input type="button" name="clear" value="clear">
159 </p>
dedfd85 @douglascrockford option.indent
douglascrockford authored Jan 20, 2011
160 <div id="JSLINT_OUTPUT">
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
161
162 <div style="text-align: center;">Paste your program into the text box
16bfba4 @douglascrockford &nbsp;
douglascrockford authored Feb 13, 2011
163 above and click a&nbsp;<input type="button" name="jslint" value="JSLint">&nbsp;
5675d2c @douglascrockford http://tech.groups.yahoo.com/group/jslint_com/message/1730
douglascrockford authored Jan 8, 2011
164 button.</div>
60f9965 @douglascrockford bundle
douglascrockford authored Jan 27, 2011
165 <div style="text-align: center; margin: 1em; border: 2px solid black; padding: 1em; background-color: lightpink;">
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
166 WARNING:&nbsp;JSLint can help you improve the quality of your programs.
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
167 </div>
168 </div>
3c8016e @douglascrockford option.continue
douglascrockford authored Feb 2, 2011
169 <pre id="JSLINT_TREE"></pre>
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
170 <p>
171 <input type="button" name="jslint" value="JSLint">
172 &nbsp; &nbsp;
5675d2c @douglascrockford http://tech.groups.yahoo.com/group/jslint_com/message/1730
douglascrockford authored Jan 8, 2011
173 <input type="button" name="tree" value="Syntax Tree">
174 &nbsp; &nbsp;
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
175 <input type="button" name="clear" value="clear">
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
176 &nbsp; &nbsp;
177 <input type="button" id="JSLINT_CLEARALL" value="Clear All Options">
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
178 </p>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
179 <p id="JSLINT_OPTIONS">
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
180 <table id="JSLINT_TABLE" border="0">
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
181 <tr>
182 <td><span title="devel">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
183 <td title="devel">Assume&nbsp;<code>console</code>,&nbsp;<code>alert</code>,&nbsp;...</td>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
184 <td><span title="bitwise">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
185 <td title="bitwise">Tolerate bitwise operators</td>
186 <td><span title="unparam">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
187 <td title="unparam">Tolerate&nbsp;unused&nbsp;parameters</td>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
188 </tr>
189 <tr>
190 <td><span title="browser">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
191 <td title="browser">Assume a browser</td>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
192 <td><span title="continue">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
193 <td title="continue">Tolerate&nbsp;<tt>continue</tt></td>
194 <td><span title="sloppy">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
195 <td title="sloppy">Tolerate&nbsp;missisng&nbsp;<code>'use&nbsp;strict'</code>&nbsp;pragma</td>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
196 </tr>
197 <tr>
198 <td><span title="node">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
199 <td title="node">Assume&nbsp;<a href="http://nodejs.org/">Node.js</a></td>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
200 <td><span title="debug">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
201 <td title="debug">Tolerate&nbsp;<tt>debugger</tt>&nbsp;statements</td>
202 <td><span title="sub">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
203 <td title="sub">Tolerate&nbsp;inefficient&nbsp;subscripting</td>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
204 </tr>
205 <tr>
206 <td><span title="rhino">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
207 <td title="rhino">Assume&nbsp;<a href="http://www.mozilla.org/rhino/">Rhino</a></td>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
208 <td><span title="es5">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
209 <td title="es5">Tolerate&nbsp;ES5&nbsp;syntax</td>
210 <td><span title="type">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
211 <td title="type">Tolerate&nbsp;type&nbsp;inconsistency</td>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
212 </tr>
213 <tr>
214 <td><span title="widget">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
215 <td title="widget">Assume a&nbsp;<a href="http://widgets.yahoo.com/tools/">Yahoo Widget</a></td>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
216 <td><span title="evil">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
217 <td title="evil">Tolerate&nbsp;<tt>eval</tt></td>
218 <td><span title="vars">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
219 <td title="vars">Tolerate many&nbsp;<tt>var</tt>&nbsp;statements per function</td>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
220 </tr>
221 <tr>
222 <td><span title="windows">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
223 <td title="windows">Assume&nbsp;Windows</td>
224 <td><span title="forin">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
225 <td title="forin">Tolerate&nbsp;<a href="http://yuiblog.com/blog/2006/09/26/for-in-intrigue/">unfiltered</a>&nbsp;<tt>for</tt>&nbsp;<tt>in</tt></td>
226 <td><span title="white">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
227 <td title="white">Tolerate&nbsp;messy&nbsp;white space</td>
ae6a9f8 @douglascrockford option.type
douglascrockford authored Jun 2, 2011
228 </tr>
229 <tr>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
230 <td>&nbsp;</td>
231 <td>&nbsp;</td>
232 <td><span title="newcap">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
233 <td title="newcap">Tolerate uncapitalized constructors</td>
234 <td>&nbsp;</td>
235 <td title="sloppy">&nbsp;</td>
f0d0c1e @douglascrockford unparam
douglascrockford authored Apr 30, 2011
236 </tr>
237 <tr>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
238 <td><span title="passfail">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
239 <td title="passfail">Stop&nbsp;on&nbsp;first&nbsp;error</td>
240 <td><span title="nomen">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
241 <td title="nomen">Tolerate dangling&nbsp;<tt>_</tt>&nbsp;in identifiers</td>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
242 <td><span title="css">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
243 <td title="css">Tolerate&nbsp;CSS&nbsp;workarounds</td>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
244 </tr>
245 <tr>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
246 <td>&nbsp;</td>
247 <td>&nbsp;</td>
248 <td><span title="plusplus">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
249 <td title="plusplus">Tolerate&nbsp;<tt>++</tt>&nbsp;and&nbsp;<tt>--</tt></td>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
250 <td><span title="cap">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
251 <td title="cap">Tolerate&nbsp;<tt>HTML</tt>&nbsp;case</td>
252 </tr>
253 <tr>
254 <td><span title="safe">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
255 <td title="safe">Safe&nbsp;Subset</td>
256 <td><span title="regexp">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
257 <td title="regexp">Tolerate&nbsp;<tt>.</tt>&nbsp;and&nbsp;<tt>[^</tt>...<tt>]</tt>&nbsp;in&nbsp;/RegExp/</td>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
258 <td><span title="on">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
259 <td title="on">Tolerate&nbsp;<tt>HTML</tt>&nbsp;event handlers</td>
260 </tr>
261 <tr>
262 <td><span title="adsafe">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
263 <td title="adsafe">Verify&nbsp;<a href="http://www.ADsafe.org">ADsafe</a></td>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
264 <td><span title="undef">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
265 <td title="undef">Tolerate&nbsp;misordered&nbsp;definitions</td>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
266 <td><span title="fragment">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
267 <td title="fragment">Tolerate&nbsp;<tt>HTML</tt>&nbsp;fragments</td>
268 </tr>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
269 </table>
270 <p><br clear=all>
271 </p>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
272 <div id=JSLINT_FIELDS>
dedfd85 @douglascrockford option.indent
douglascrockford authored Jan 20, 2011
273 <input id="JSLINT_INDENT" type="text" size="2" title="indent" value="" autocomplete=off> <label for="JSLINT_INDENT" title="indent">Indentation</label><br>
274 <input id="JSLINT_MAXLEN" type="text" size="2" title="maxlen" value="" autocomplete=off> <label for="JSLINT_MAXLEN" title="maxlen">Maximum line length</label><br>
275 <input id="JSLINT_MAXERR" type="text" size="2" title="maxerr" value="" autocomplete=off> <label for="JSLINT_MAXERR" title="maxerr">Maximum number of errors</label><br>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
276 <label title=predef for="JSLINT_PREDEF">Predefined&nbsp;<small>(&nbsp;<code>,</code>&nbsp;separated)</small></label>&nbsp;<input id="JSLINT_PREDEF" type="text" size="72" autocomplete=off title=predef>
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
277 </div>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
278 </p>
a27d17c @douglascrockford Tolerate
douglascrockford authored Jun 9, 2011
279 <p id="JSLINT_JSLINTSTRING"></p>
8eb6227 @douglascrockford &nbsp;
douglascrockford authored Jan 29, 2011
280 <p> Copyright 2002&nbsp;<a href="http://www.JSLint.com/lint.html">Douglas
281 Crockford.</a>&nbsp;<a target="_blank" href="http://www.crockford.com/">All
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
282 Rights Reserved Wrrrldwide and Beyond!</a> <br>
283 <a href="http://javascript.crockford.com/code.html" target="_blank">Code
da8c68e @douglascrockford br
douglascrockford authored Apr 17, 2011
284 Conventions for the JavaScript Programming Language.</a><br>
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
285 <a href="http://tech.groups.yahoo.com/group/jslint_com/" target="_blank">Join
286 the JSLint Group.</a> </p>
287 <script>
288 ADSAFE.id("JSLINT_");
289 </script>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
290
291 <script src="init_ui.js"></script>
292
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
293 <script>
294 ADSAFE.go("JSLINT_", function (dom, lib) {
b6d8b25 @douglascrockford use strict
douglascrockford authored Dec 13, 2010
295 "use strict";
f73d206 @douglascrockford Add fullinit_ui.js, an ADsafe widget
douglascrockford authored Nov 29, 2010
296 lib.init_ui(dom);
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
297 });
298 </script>
299
300 </div>
4ffbfd4 @douglascrockford tri-state
douglascrockford authored Apr 16, 2011
301
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
302 <a href="http://www.JSLint.com/"><img src="jslintpill.gif" width="36" height="17" border="0"></a>
303 <a href="http://tech.groups.yahoo.com/group/jslint_com/"><img src="y.gif" width="31" height="17" border="0"></a>
bdd3576 @douglascrockford k
douglascrockford authored Dec 8, 2010
304 <a href="https://github.com/douglascrockford/JSLint"><img src="github.gif" width="39" height="16" border="0"></a>
ca120a7 @douglascrockford first commit
douglascrockford authored Nov 12, 2010
305 <a href="http://www.ADsafe.org/"><img src="adsafepill.gif" width="36" height="17" border="0"></a>
306 <a href="http://www.JSON.org/"><img src="jsonpill.gif" width="36" height="17" border="0"></a>
307 <a href="http://www.1and1.com/?k_id=10219574"><img src="1and1pill.gif" width="36" height="17" border="0"></a>
308 </body></html>
Something went wrong with that request. Please try again.