Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unused function, reformatted the CSS code

  • Loading branch information...
commit caa0f6b0e50ac0ca25062b7e0c9f3bfcfdea91b6 1 parent 02e7ec2
Klemen Slavič authored
Showing with 15 additions and 21 deletions.
  1. +15 −21 jquery.microdata.js
36 jquery.microdata.js
View
@@ -4,20 +4,21 @@
// CSS styles injected into head
// TODO: need to clean this up or externalize it
- cssBlock = "#microdata-container { " +
- "position: fixed; bottom: 10px; left: 10px; background: white; padding: 5px; color: #444; " +
- "-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; border: 1px solid black; " +
- "-webkit-box-shadow: 0 0 5px black; -moz-box-shadow: 0 0 5px black; box-shadow: 0 0 5px; " +
- "font: normal 11px Droid Sans Mono, Consolas, Inconsolata, monospace; letter-spacing: -1px; " +
- "}\n" +
- "#microdata-container a { color: #009 !important }\n" +
- "#microdata-container li { list-style: none; padding: 0; margin: 0; cursor: pointer; }\n" +
- "#microdata-container>li.expanded ul { display: block; }\n" +
- "#microdata-container li:hover { background: #ff9 }\n" +
- "#microdata-container ul { display: none; padding: 0; margin-left: 10px; color: #999 }\n" +
- ".microdata-highlighted { outline: 2px dashed red !important; background: rgba(255,0,0,0.3) !important; color: black !important }\n" +
- "#microdata-container .invalid { color: red !important }",
-
+ cssBlock = [
+ "#microdata-container {",
+ " position: fixed; bottom: 10px; left: 10px; background: white; padding: 5px; color: #444; ",
+ " -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; border: 1px solid black; ",
+ " -webkit-box-shadow: 0 0 5px black; -moz-box-shadow: 0 0 5px black; box-shadow: 0 0 5px; ",
+ " font: normal 11px Droid Sans Mono, Consolas, Inconsolata, monospace; letter-spacing: -1px; ",
+ "}",
+ "#microdata-container a { color: #009 !important }",
+ "#microdata-container li { list-style: none; padding: 0; margin: 0; cursor: pointer; }",
+ "#microdata-container>li.expanded ul { display: block; }",
+ "#microdata-container li:hover { background: #ff9 }",
+ "#microdata-container ul { display: none; padding: 0; margin-left: 10px; color: #999 }",
+ ".microdata-highlighted { outline: 2px dashed red !important; background: rgba(255,0,0,0.3) !important; color: black !important }",
+ "#microdata-container .invalid { color: red !important }"
+ ].join('\n');
// validators for values in microdata
validators = {
@@ -118,13 +119,6 @@
/**
- * Auxiliary function to replace all whitespace with a single space
- */
- var normalizeWhitespace = function(value) {
- return $.trim(value.replace(/\s+/g, ' '));
- };
-
- /**
* Takes the result of parseElement and attaches the "valid" and "missing" properties,
* then returns the augmented object
*/
Please sign in to comment.
Something went wrong with that request. Please try again.