diff --git a/Readme.md b/Readme.md index a61ddcf..af94c77 100644 --- a/Readme.md +++ b/Readme.md @@ -3,6 +3,10 @@ JSON Diff Shows the differences between two JSON-encoded objects. -Originally created by Tom Robinson. Improvements by Sami Samhuri. +Originally created by Tom Robinson. Improvements by Sami Samhuri and hij1nx. -Copyright 2006-2010 [Tom Robinson](http://tlrobinson.net/). [Some rights reserved](http://creativecommons.org/licenses/by-nc/3.0/us/). +Copyright 2006-2010 [Tom Robinson](http://tlrobinson.net/). +[Some rights reserved](http://creativecommons.org/licenses/by-nc/3.0/us/). + +[Sami Samhuri] (http://github.com/samsonjs) +[hij1nx] (http://github.com/hij1nx) diff --git a/css/json-diff.css b/css/json-diff.css new file mode 100644 index 0000000..04dc054 --- /dev/null +++ b/css/json-diff.css @@ -0,0 +1,73 @@ +body { + background-color: lightblue; +} + +#results li > span, #results ul > span { + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + padding-right: 5px; + padding-left: 5px; +} + +#results li { + margin-top: 1px; + padding-left: 15px; +} +#results ul { + padding-left: 15px; + margin-left: -15px; + padding-top: 0px; + margin-top: 0px; + background: url(open.png) no-repeat 2px 5px; + list-style-type: none; +} +#results ul[closed="yes"] { + background: url(closed.png) no-repeat 2px 5px; +} +#results ul[closed="yes"] > * { + display: none; +} +#results ul[closed="yes"] > *:first-child { + display: block; +} +.typeName { + color: gray; +} +.changed { + background-color: #fcff7f; +} +.changed.key { + background-color: #eee; +} + +.added { + background-color: #8bff7f; +} +.removed { + background-color: #fd7f7f; +} + +textarea { + width: 49%; + height: 200px; +} + +.contentbox { + border: 1px dashed black; + background-color: white; + padding: 15px; + margin: 10px; +} + +h2 { + text-align: center; + margin: 0px;; +} + +#results { + padding-left: 40px; +} + +#inputs { + text-align: center; +} \ No newline at end of file diff --git a/index.html b/index.html index 73ec5e1..5cf1f0a 100644 --- a/index.html +++ b/index.html @@ -2,171 +2,7 @@
Courtesy of tlrobinson. @@ -186,39 +22,10 @@ function clickHandler(e) {
© 2006-2010 Thomas Robinson. Some rights reserved.