Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 360 lines (337 sloc) 9.321 kB
097ba53 @douglascrockford new look
authored
1 <!DOCTYPE html>
557afd3 @douglascrockford BETA
authored
2 <html><head>
3 <meta charset="utf-8">
4 <meta name="description" content="JSLint, The JavaScript Code Quality Tool.
5 This file allows JSLint to be run from a web browser. It can accept a source
6 program and analyze it without sending it over the network.">
7 <meta name="author" content="Douglas Crockford">
8 <meta name="date" content="2015-05-01">
9 <title>JSLint: The JavaScript Code Quality Tool</title>
10 <link rel="stylesheet" type="text/css"
11 href="http://fonts.googleapis.com/css?family=Patua+One">
12 <link rel="icon" type="image/gif" href="favicon.gif">
ca120a7 @douglascrockford first commit
authored
13 <style>
097ba53 @douglascrockford new look
authored
14 body {
2767e1d @douglascrockford whitesmoke
authored
15 background-color: whitesmoke;
557afd3 @douglascrockford BETA
authored
16 font-family: 'Patua One', serif;
945f490 @douglascrockford style
authored
17 margin: 0;
18 padding: 0;
097ba53 @douglascrockford new look
authored
19 }
557afd3 @douglascrockford BETA
authored
20
21 #JSLINT_ fieldset {
22 background-color: lightgray;
23 border: 0;
097ba53 @douglascrockford new look
authored
24 clear: both;
557afd3 @douglascrockford BETA
authored
25 margin-bottom: 1em;
26 margin-left: 3%;
27 margin-right: 3%;
28 margin-top: 1em;
097ba53 @douglascrockford new look
authored
29 padding: 0;
557afd3 @douglascrockford BETA
authored
30 width: auto;
097ba53 @douglascrockford new look
authored
31 }
557afd3 @douglascrockford BETA
authored
32 #JSLINT_ legend {
33 background-color: gray;
34 border: 0;
097ba53 @douglascrockford new look
authored
35 color: white;
36 font-size: 100%;
37 font-style: normal;
557afd3 @douglascrockford BETA
authored
38 font-weight: normal;
39 margin: 0;
40 padding-bottom: 0.25em;
41 padding-left: 0;
42 padding-right: 0;
43 padding-top: 0.25em;
097ba53 @douglascrockford new look
authored
44 text-align: center;
557afd3 @douglascrockford BETA
authored
45 width: 100%;
ca120a7 @douglascrockford first commit
authored
46 }
557afd3 @douglascrockford BETA
authored
47 #JSLINT_ button {
097ba53 @douglascrockford new look
authored
48 background-color: lightsteelblue;
557afd3 @douglascrockford BETA
authored
49 border: 0;
097ba53 @douglascrockford new look
authored
50 color: black;
4ffbfd4 @douglascrockford tri-state
authored
51 cursor: pointer;
557afd3 @douglascrockford BETA
authored
52 font-family: 'Patua One', serif;
097ba53 @douglascrockford new look
authored
53 font-size: 100%;
54 font-style: normal;
557afd3 @douglascrockford BETA
authored
55 margin-left: 1em;
56 margin-right: 1em;
57 padding-left: 1em;
58 padding-right: 1em;
097ba53 @douglascrockford new look
authored
59 text-align: center;
ca120a7 @douglascrockford first commit
authored
60 }
557afd3 @douglascrockford BETA
authored
61 #JSLINT_ button:hover {
62 background-color: lightskyblue;
63 border: 0;
64 }
65
66 #JSLINT_ button:active {
67 background-color: steelblue;
68 border: 0;
69 color: white;
ca120a7 @douglascrockford first commit
authored
70 }
097ba53 @douglascrockford new look
authored
71
557afd3 @douglascrockford BETA
authored
72 #JSLINT_ button:disabled {
73 background-color: silver;
74 border: 0;
945f490 @douglascrockford style
authored
75 color: white;
ca120a7 @douglascrockford first commit
authored
76 }
557afd3 @douglascrockford BETA
authored
77
78 s {
79 display: inline-block;
80 font-style: normal;
81 padding-left: 0.1em;
82 text-decoration: none;
ca120a7 @douglascrockford first commit
authored
83 }
097ba53 @douglascrockford new look
authored
84
557afd3 @douglascrockford BETA
authored
85 s::before {
86 content: "J";
87 font-family: 'Patua One', cursive;
88 text-decoration: none;
89 }
90
91 s::after {
92 content: "SLint";
93 font-family: 'Patua One', serif;
94 text-decoration: underline;
95 }
96
97 big {
98 font-size: 50pt;
99 font-style: normal;
100 font-weight: normal;
101
102 }
103 ins {
104 color: gray;
105 font-family: "Trebuchet MS", sans-serif;
106 font-size: 200%;
107 font-weight: bold;
108 text-decoration: none;
109 text-transform: uppercase;
110 }
111
112 #JSLINT_ input[type="text"] {
113 border: 1px solid black;
114 margin-bottom: 0.2em;
115 padding-right: 0.5em;
116 text-align: right;
117 width: 3em;
118 }
119
120 #JSLINT_ textarea {
121 background-color: white;
122 border: 1pt solid black;
123 font-family: monospace;
124 font-size: 90%;
125 margin: 2%;
126 overflow: auto;
127 padding-left: 0.5em;
128 white-space: pre;
129 width: 95%;
130 }
131 #JSLINT_ textarea[readonly] {
132 background-color: oldlace;
097ba53 @douglascrockford new look
authored
133 border: 0;
557afd3 @douglascrockford BETA
authored
134 white-space: pre;
135 }
136 #JSLINT_GLOBAL {
137 min-width: fill-available;
138 white-space: normal;
139 }
140 #JSLINT_ label {
141 font-family: sans-serif;
142 font-size: 90%;
143 padding-left: 0.25em;
144 }
145 #JSLINT_OPTIONS>div {
146 float: left;
147 margin: 0.5em;
ca120a7 @douglascrockford first commit
authored
148 }
097ba53 @douglascrockford new look
authored
149
557afd3 @douglascrockford BETA
authored
150 #JSLINT_ address {
097ba53 @douglascrockford new look
authored
151 color: dimgray;
152 display: block;
153 float: right;
154 font-family: serif;
155 font-size: 90%;
156 margin-left: 1em;
ca120a7 @douglascrockford first commit
authored
157 }
557afd3 @douglascrockford BETA
authored
158 #JSLINT_ dl {
159 background-color: cornsilk;
160 margin: 1em;
161 padding-bottom: 2pt;
743cbc0 Context Coloring
Douglas Crockford authored
162 padding-left: 0;
097ba53 @douglascrockford new look
authored
163 padding-right: 1em;
ca120a7 @douglascrockford first commit
authored
164 }
557afd3 @douglascrockford BETA
authored
165 #JSLINT_ dfn {
097ba53 @douglascrockford new look
authored
166 display: block;
557afd3 @douglascrockford BETA
authored
167 font-family: monospace;
168 font-size: 100%;
169 font-style: normal;
170 font-weight: normal;
171 margin-bottom: 2pt;
172 }
173 #JSLINT_ dt {
174 display: block;
175 float: left;
097ba53 @douglascrockford new look
authored
176 font-family: serif;
557afd3 @douglascrockford BETA
authored
177 font-size: 75%;
097ba53 @douglascrockford new look
authored
178 font-style: italic;
557afd3 @douglascrockford BETA
authored
179 margin: 0;
180 width: 4.5em;
181 text-align: right;
ca120a7 @douglascrockford first commit
authored
182 }
557afd3 @douglascrockford BETA
authored
183 #JSLINT_ dd {
097ba53 @douglascrockford new look
authored
184 display: block;
185 font-family: monospace;
557afd3 @douglascrockford BETA
authored
186 margin-left: 5em;
187 margin-bottom: 2pt;
ca120a7 @douglascrockford first commit
authored
188 }
557afd3 @douglascrockford BETA
authored
189 #JSLINT_WARNINGS>legend {
097ba53 @douglascrockford new look
authored
190 background-color: indianred;
ca120a7 @douglascrockford first commit
authored
191 }
557afd3 @douglascrockford BETA
authored
192 #JSLINT_WARNINGS>div {
193 background-color: mistyrose;
097ba53 @douglascrockford new look
authored
194 padding-bottom: 1em;
195 padding-top: 1em;
ca120a7 @douglascrockford first commit
authored
196 }
557afd3 @douglascrockford BETA
authored
197 #JSLINT_WARNINGS cite {
097ba53 @douglascrockford new look
authored
198 display: block;
199 font-family: serif;
557afd3 @douglascrockford BETA
authored
200 font-size: 100%;
097ba53 @douglascrockford new look
authored
201 font-style: normal;
557afd3 @douglascrockford BETA
authored
202 margin-bottom: 4pt;
203 margin-left: 20pt;
204 margin-right: 20pt;
205 margin-top: 4pt;
945f490 @douglascrockford style
authored
206 overflow-x: hidden;
ca120a7 @douglascrockford first commit
authored
207 }
557afd3 @douglascrockford BETA
authored
208 #JSLINT_WARNINGS samp {
209 background-color: lavenderblush;
210 display: block;
211 font-family: monospace;
212 font-size: 100%;
213 font-style: normal;
214 padding: 4pt;
215 margin-bottom: 0;
216 margin-left: 16pt;
217 margin-right: 16pt;
218 margin-top: 0;
219 white-space: pre-wrap;
ca120a7 @douglascrockford first commit
authored
220 }
557afd3 @douglascrockford BETA
authored
221
222 #JSLINT_WARNINGS dl address {
097ba53 @douglascrockford new look
authored
223 display: inline;
224 float: none;
225 font-size: 80%;
226 margin: 0;
ca120a7 @douglascrockford first commit
authored
227 }
097ba53 @douglascrockford new look
authored
228
557afd3 @douglascrockford BETA
authored
229 #JSLINT_REPORT>div {
230 margin-bottom: 1em;
231 margin-top: 1em;
ca120a7 @douglascrockford first commit
authored
232 }
097ba53 @douglascrockford new look
authored
233
557afd3 @douglascrockford BETA
authored
234 #JSLINT_ dl.level0 {
743cbc0 Context Coloring
Douglas Crockford authored
235 background-color: white;
9ee8e81 0
Douglas Crockford authored
236 padding-left: 0;
743cbc0 Context Coloring
Douglas Crockford authored
237 }
238
557afd3 @douglascrockford BETA
authored
239 #JSLINT_ dl.level1 {
240 background-color: #ffffe0; /* yellow */
743cbc0 Context Coloring
Douglas Crockford authored
241 padding-left: 2em;
242 }
243
557afd3 @douglascrockford BETA
authored
244 #JSLINT_ dl.level2 {
245 background-color: #e0ffe0; /* green */
743cbc0 Context Coloring
Douglas Crockford authored
246 padding-left: 4em;
247 }
248
557afd3 @douglascrockford BETA
authored
249 #JSLINT_ dl.level3 {
250 background-color: #e0e0ff; /* blue */
743cbc0 Context Coloring
Douglas Crockford authored
251 padding-left: 6em;
252 }
253
557afd3 @douglascrockford BETA
authored
254 #JSLINT_ dl.level4 {
255 background-color: #ffe0ff; /* purple */
743cbc0 Context Coloring
Douglas Crockford authored
256 padding-left: 8em;
257 }
258
557afd3 @douglascrockford BETA
authored
259 #JSLINT_ dl.level5 {
260 background-color: #ffe0e0; /* red */
743cbc0 Context Coloring
Douglas Crockford authored
261 padding-left: 10em;
262 }
263
557afd3 @douglascrockford BETA
authored
264 #JSLINT_ dl.level6 {
9a1697c color
Douglas Crockford authored
265 background-color: #ffe390; /* orange */
743cbc0 Context Coloring
Douglas Crockford authored
266 padding-left: 12em;
267 }
268
557afd3 @douglascrockford BETA
authored
269 #JSLINT_ dl.level7 {
270 background-color: #e0e0e0; /* gray */
743cbc0 Context Coloring
Douglas Crockford authored
271 padding-left: 14em;
272 }
273
557afd3 @douglascrockford BETA
authored
274 #JSLINT_ dl.level8 {
743cbc0 Context Coloring
Douglas Crockford authored
275 padding-left: 16em;
276 }
097ba53 @douglascrockford new look
authored
277 </style>
557afd3 @douglascrockford BETA
authored
278 <script src="jslint.js"></script>
279 <script src="adsafe.js"></script>
280 <script src="report.js"></script>
097ba53 @douglascrockford new look
authored
281 </head>
557afd3 @douglascrockford BETA
authored
282 <body><div id="JSLINT_">
283 <div style="float: left; margin-bottom: 1em; margin-left: 2em;">
a214dda @douglascrockford beige
authored
284 <big><s></s>&nbsp;</big>
557afd3 @douglascrockford BETA
authored
285 </div>
286 <ul style="float: right; margin: 1em; padding-right: 1em;">
287 <li><a href="help.html">Read the instructions.</a></li>
a214dda @douglascrockford beige
authored
288 <li><a href="http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb" target="_blank">Enjoy&nbsp;<i>The Good Parts</i>.</a></li>
557afd3 @douglascrockford BETA
authored
289 </ul>
290 <fieldset id=JSLINT_SOURCE><legend>Source</legend>
291 <textarea rows="18" placeholder="// Paste JavaScript source or JSON text here."></textarea>
292 </fieldset>
293 <div style="text-align: center;">
294 <button name=JSLint><s></s></button>
295 <button name=clear>clear</button>
097ba53 @douglascrockford new look
authored
296 </div>
557afd3 @douglascrockford BETA
authored
297 <fieldset id=JSLINT_WARNINGS style="display: none;"><legend>Warnings</legend><div></div>
298 </fieldset>
299 <fieldset id=JSLINT_REPORT style="display: none;">
300 <legend>Function Report</legend>
301 <div></div>
302 </fieldset>
303 <fieldset id=JSLINT_PROPERTY style="display: none;">
304 <legend>Property Directive</legend>
305 <textarea rows="8" readonly=true></textarea>
306 </fieldset>
307 <div id=JSLINT_AUX style="display: none; text-align: center;">
308 <button name=select id=JSLINT_SELECT>select property</button>
309 <button name=JSLint><s></s></button>
310 <button name=clear>clear</button>
311 <button name=options>clear options</button>
312 </div>
313 <fieldset id=JSLINT_OPTIONS><legend>Options</legend>
314 <div>Assume...
315 <div><label><input title=devel type=checkbox> in development</label></div>
316 <div><label><input title=es6 type=checkbox> ES6</label></div>
317 <div><label><input title=browser type=checkbox> a browser</label></div>
318 <div><label><input title=couch type=checkbox> CouchDB</label></div>
319 <div><label><input title=node type=checkbox> Node.js</label></div>
320 </div>
321 <div>Tolerate...
322 <div><label><input title=bitwise type=checkbox> bitwise operators</label></div>
323 <div><label><input title=eval type=checkbox> eval</label></div>
324 <div><label><input title=for type=checkbox> for statement</label></div>
325 <div><label><input title=this type=checkbox> this</label></div>
326 <div><label><input title=white type=checkbox> messy white space</label></div>
097ba53 @douglascrockford new look
authored
327 </div>
557afd3 @douglascrockford BETA
authored
328 <div>Number...
329 <div><label><input type=text title=maxlen> Maximum line length</label></div>
330 <div><label><input type=text title=maxerr> Maximum number of warnings</label></div>
331 </div>
332 <div>Fudge...
333 <div><label><input title=fudge type=checkbox> First line number is 1</label></div>
334 </div>
335 <div>Global variables...
336 <textarea id=JSLINT_GLOBAL title=global placeholder="imported globals here"></textarea>
337 </div>
338 </fieldset>
339 <script>
097ba53 @douglascrockford new look
authored
340 ADSAFE.id("JSLINT_");
557afd3 @douglascrockford BETA
authored
341 </script>
342 <script src="browser.js"></script>
343 <script>
097ba53 @douglascrockford new look
authored
344 ADSAFE.go("JSLINT_", function (dom, lib) {
345 'use strict';
557afd3 @douglascrockford BETA
authored
346 lib.browser_ui(dom);
097ba53 @douglascrockford new look
authored
347 });
557afd3 @douglascrockford BETA
authored
348 </script>
ca120a7 @douglascrockford first commit
authored
349 </div>
097ba53 @douglascrockford new look
authored
350 <center>
557afd3 @douglascrockford BETA
authored
351 <a href="http://www.JSLint.com/"><img src="image/jslintpill.gif" width="36" height="17" border="0"></a>
352 <a href="https://github.com/douglascrockford/JSLint"><img src="image/github.gif" width="39" height="16" border="0"></a>
353 <a href="https://plus.google.com/communities/104441363299760713736"><img src="image/gpill.gif" width="36" height="17" border="0"></a>
354 <a href="http://www.JSON.org/"><img src="image/jsonpill.gif" width="36" height="17" border="0"></a>
355 <a href="http://www.ADsafe.org/"><img src="image/adsafepill.gif" width="36" height="17" border="0"></a>
356 <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RDLHY5MSG3LZW"><img src="image/pppill.gif" width="36" height="17" border="0"></a>
357 <a href="http://www.1and1.com/?k_id=10219574"><img src="image/1and1pill.gif" width="36" height="17" border="0"></a>
358 </center>
359 </body></html>
Something went wrong with that request. Please try again.