Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

style

  • Loading branch information...
commit 945f490693fbea161d1c6bbad26717b019d67e79 1 parent 097ba53
@douglascrockford authored
Showing with 22 additions and 17 deletions.
  1. +22 −17 jslint.html
View
39 jslint.html
@@ -6,14 +6,17 @@
<style>
body {
background-color: #EFEADF;
+ margin: 0;
+ padding: 0;
}
div#JSLINT_ fieldset {
background-color: #E3D8CB;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.35),
inset 0 0 10px rgba(169, 84, 84, 0.75);
clear: both;
- margin: 1.25%;
+ margin: 1.5%;
padding: 0;
+ width: 97%
}
div#JSLINT_ fieldset h1 {
background-color: slategray;
@@ -41,7 +44,7 @@
}
div#JSLINT_ button:active {
- background-color: steelblue;
+ color: white;
}
button#JSLINT_BUTTON {
border-radius: 16pt;
@@ -85,6 +88,7 @@
display: block;
font-family: monospace;
margin-left: 6em;
+ overflow-x: hidden;
}
div#JSLINT_ textarea {
background-color: white;
@@ -92,9 +96,8 @@
clear: both;
font-family: monospace;
margin: 2%;
- width: 93%;
- padding-left: 1em;
- padding-right: 1em;
+ width: 95%;
+ padding-left: 0.5em;
}
div#JSLINT_ textarea[readonly] {
background-color: #F3E8DB;
@@ -118,11 +121,13 @@
font-style: normal;
margin-left: 1em;
margin-right: 1em;
+ overflow-x: hidden;
padding-left: 1em;
padding-right: 1em;
}
div#JSLINT_ fieldset#JSLINT_ERRORS pre {
margin-left: 1em;
+ overflow: hidden;
}
div#JSLINT_ fieldset#JSLINT_ERRORS dl address {
display: inline;
@@ -193,36 +198,36 @@
</style>
</head>
<body>
- <div style="background: url(sweater_70.png) no-repeat scroll 0 0;
+ <div style="background: url(sweater_70.jpg) no-repeat scroll 0 0;
background-color: #C8BEAC; height: 3in; left: 0; position: absolute;
top: 0; width: 100%; z-index: -1;">
</div><div style="float: left; height: 0.75in; width: 5in;">&nbsp;</div>
- <div style="background-color: #C8BEAC; float:right; padding: 1em;">
+ <script src="web_jslint.js">
+ // json2.js+jslint.js+adsafe.js+intercept.js
+ </script>
+<div id="JSLINT_">
+ <div style="background-color: #C8BEAC; float:right; margin: 1em; padding-left: 1em; padding-right: 1em;">
<a href="http://www.JSLint.com/lint.html">Read the instructions.</a><br>
<a href="#JSLINT_OPTIONS">Set the options.</a><br>
<a href="http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb"
target="_blank">Enjoy&nbsp;<i>The Good Parts</i>.</a><br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RDLHY5MSG3LZW">Donate.</a>
</div>
- <script src="web_jslint.js">
- // json2.js+jslint.js+adsafe.js+intercept.js
- </script>
-<div id="JSLINT_">
<div style="background-color: #C8BEAC; float: right; font-family: sans-serif;
- margin: 1em;">
- <p>The&nbsp;<a href="http://javascript.crockford.com/">JavaScript</a>&nbsp;Code Quality Tool</p>
- <p id=JSLINT_EDITION></p>
+ margin: 1em; padding-left: 1em; padding-right: 1em;">
+ The&nbsp;<a href="http://javascript.crockford.com/">JavaScript</a>&nbsp;Code Quality Tool<br>
+ <br><div id=JSLINT_EDITION></div>
</div>
<fieldset id=JSLINT_SOURCE><button>clear</button><h1>Source</h1>
<textarea rows="24" placeholder="// Paste quality code here"></textarea>
</fieldset>
<center><button id=JSLINT_BUTTON>JSLint</button></center>
- <fieldset id=JSLINT_ERRORS><button>clear</button><h1>Errors</h1><div></div>
+ <fieldset id=JSLINT_ERRORS style="display: none;"><button>clear</button><h1>Errors</h1><div></div>
</fieldset>
- <fieldset id=JSLINT_REPORT><button>clear</button><h1>Function
+ <fieldset id=JSLINT_REPORT style="display: none;"><button>clear</button><h1>Function
Report</h1><div></div>
</fieldset>
- <fieldset id=JSLINT_PROPERTIES><button>select</button><h1>Properties
+ <fieldset id=JSLINT_PROPERTIES style="display: none;"><button>select</button><h1>Properties
Directive</h1><textarea rows="8" readonly=true ></textarea>
</fieldset>
<fieldset id=JSLINT_OPTIONS><button>clear options</button><h1>Options</h1>
Please sign in to comment.
Something went wrong with that request. Please try again.