Skip to content

Commit

Permalink
Merge pull request #1 from cauerego/master
Browse files Browse the repository at this point in the history
As suggested, sending in a patch request! ;-)
  • Loading branch information
Andrew Cantino committed May 12, 2011
2 parents b9c6056 + 9f2f5c7 commit 880c199
Show file tree
Hide file tree
Showing 120 changed files with 451 additions and 4,235 deletions.
Empty file modified LICENSE 100644 → 100755
Empty file.
Empty file modified README 100644 → 100755
Empty file.
137 changes: 107 additions & 30 deletions index.html
@@ -1,32 +1,109 @@
<!DOCTYPE html>
<html>
<head>
<link href="jsoneditor/editor.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jsoneditor/jquery-1.2.6.js"></script>
<script type="text/javascript" src="jsoneditor/json2.js"></script>
<script type="text/javascript" src="jsoneditor/jquery.timers.js"></script>
<script type="text/javascript" src="jsoneditor/editor.js"></script>

<script>
// Setup control buttons at bottom.

$(document).ready(function(){
JSONEditor.prototype.ADD_IMG = 'jsoneditor/add.png';
JSONEditor.prototype.DELETE_IMG = 'jsoneditor/delete.png';
var j = new JSONEditor($("#t"), 400, 300);
j.doTruncation(true);
j.showFunctionButtons();
});
</script>
</head>
<body>
<textarea id="t">{
"names": ["andy", "ben", "sam"],
"some_object": {
"foo": "bar",
"baz": [{ "woah": "there"}],
"long_line": "a b c d e f g h i j | a b c d e f g h i j | match(/dflkjdfkjhdfkjhdf/) | dfjkhsdfh | a b c d e f g h i j"
}
}
</textarea>
</body>
<head>
<meta charset='utf-8'>

<title>cauerego/jsoneditor @ GitHub</title>

<style type="text/css">
body {
margin-top: 1.0em;
background-color: #ffffff;
font-family: Helvetica, Arial, FreeSans, san-serif;
color: #000000;
}
#container {
margin: 0 auto;
width: 700px;
}
h1 { font-size: 3.8em; color: #000000; margin-bottom: 3px; }
h1 .small { font-size: 0.4em; }
h1 a { text-decoration: none }
h2 { font-size: 1.5em; color: #000000; }
h3 { text-align: center; color: #000000; }
a { color: #000000; }
.description { font-size: 1.2em; margin-bottom: 30px; margin-top: 30px; font-style: italic;}
.download { float: right; }
pre { background: #000; color: #fff; padding: 15px;}
hr { border: 0; width: 80%; border-bottom: 1px solid #aaa}
.footer { text-align:center; padding-top:30px; font-style: italic; }
center {margin-right: auto; margin-left: auto; text-align: center;}
</style>
</head>

<body>
<center>
<center><a href="try.html">try.html</a></center>
<iframe src="try.html" width="425" height="500" frameborder="0"><a href="try.html">Try out the editor!</a></iframe>
</center>

<a href="http://github.com/cauerego/jsoneditor"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>

<div id="container">

<div class="download">
<a href="http://github.com/cauerego/jsoneditor/zipball/master">
<img border="0" width="90" src="http://github.com/images/modules/download/zip.png"></a>
<a href="http://github.com/cauerego/jsoneditor/tarball/master">
<img border="0" width="90" src="http://github.com/images/modules/download/tar.png"></a>
</div>

<h1><a href="http://github.com/cauerego/jsoneditor">jsoneditor</a>
<span class="small">by <a href="http://github.com/cauerego">cauerego</a></span></h1>

<div class="description">
JavaScript widget for inline JSON editing
</div>

<h2>Dependencies</h2>
<p>jQuery</p>
<h2>License</h2>
<p>Copyright (c) 2009, Andrew Cantino & Kyle Maxwell

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.</p>
<h2>Authors</h2>
<p>Andrew Cantino (cantino@gmail.com)
<br/>caue (caue@doubleleft.com)
<br/>
<br/> </p>
<h2>Contact</h2>
<p>Caue Rego (caue.rego@gmail.com)
<br/> </p>


<h2>Download</h2>
<p>
You can download this project in either
<a href="http://github.com/cauerego/jsoneditor/zipball/master">zip</a> or
<a href="http://github.com/cauerego/jsoneditor/tarball/master">tar</a> formats.
</p>
<p>You can also clone the project with <a href="http://git-scm.com">Git</a>
by running:
<pre>$ git clone git://github.com/cauerego/jsoneditor</pre>
</p>

<div class="footer">
get the source code on GitHub : <a href="http://github.com/cauerego/jsoneditor">cauerego/jsoneditor</a>
</div>

</div>


</body>
</html>
Binary file added jsoneditor/grippie.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 880c199

Please sign in to comment.