Skip to content

Commit

Permalink
Revert "added Bespin editor (on focus) to textareas"
Browse files Browse the repository at this point in the history
This reverts commit 7a01205.

May return to this idea (media-type-based sub-sections of
the JSON doc), but not with Bespin as it has been discontinued
and was huge for what we needed anyhow.
  • Loading branch information
BigBlueHat committed Mar 25, 2012
1 parent 75bd661 commit 3dc7499
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 1,015 deletions.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,3 +1,2 @@
*.esproj
*.kpf
.DS_Store
32 changes: 1 addition & 31 deletions index.html
@@ -1,16 +1,9 @@
<!--
<!DOCTYPE html>
this is really an HTML5 doc (or should be!), but forcing quirks mode to get
height: 100% to work...a real bother to be sure...
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>reformed</title>
<link rel="stylesheet" type="text/css" href="reformed.css" />

<link id="bespin_base" href="js/bespin"/>
<style>.bespin{border:1px solid #999;position:relative}</style>
</head>
<body>
<a href="http://github.com/BigBlueHat/reformed"><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>
Expand Down Expand Up @@ -147,8 +140,6 @@ <h5>converting JSON into an HTML Form and back</h5>
<script type="text/javascript" src="js/jquery.hotkeys.js"></script>
<script type="text/javascript" src="js/jquery.json-2.2.min.js"></script>
<script type="text/javascript" src="js/jquery.reformed.js"></script>
<script type="text/javascript" src="js/bespin/BespinEmbedded.js"></script>

<script type="text/javascript">
$(document).ready(function() {
// JSON loaders
Expand All @@ -164,24 +155,6 @@ <h5>converting JSON into an HTML Form and back</h5>
// re:form-ers
$('#reformforjson').click(function() {
$('#reformed').reform($('#input').val(), {'editor':'edit'});
$('#reformed textarea').each(function(idx, el) {
var syntax = null;
if ($(el).attr('data-mediatype') == 'text/javascript') {
syntax = 'js';
} else if ($(el).attr('data-mediatype') == 'text/html') {
syntax = 'html'
}
$(el).focus(function(ev) {
active_editor = bespin.useBespin(el, {
stealFocus: true,
syntax: syntax,
settings: {
tabstop: 2,
theme: "white"
}
});
});
});
});

$('#reformforschemadataentry').click(function() {
Expand All @@ -193,9 +166,6 @@ <h5>converting JSON into an HTML Form and back</h5>
});

$('#jsonthis').click(function() {
// TODO: is this a kludge? it feels like a kludge?
$('#reformed').submit(function(){ return false; }).submit();

$('#output').val($.rejson('#reformed'));
});

Expand All @@ -217,4 +187,4 @@ <h5>converting JSON into an HTML Form and back</h5>
});
</script>
</body>
</html>
</html>
165 changes: 0 additions & 165 deletions js/bespin/BespinEmbedded.js

This file was deleted.

463 changes: 0 additions & 463 deletions js/bespin/BespinMain.js

This file was deleted.

32 changes: 0 additions & 32 deletions js/bespin/BespinWorker.js

This file was deleted.

Binary file removed js/bespin/resources/screen_theme/images/bespin-s.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed js/bespin/resources/screen_theme/images/lines.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed js/bespin/resources/screen_theme/images/scroll-down.png
Binary file not shown.
Binary file removed js/bespin/resources/screen_theme/images/scroll-left.png
Binary file not shown.
Binary file not shown.
Binary file removed js/bespin/resources/screen_theme/images/scroll-up.png
Binary file not shown.

0 comments on commit 3dc7499

Please sign in to comment.