Skip to content

Commit 7b35fff

Browse files
committed
Put in some test samples
1 parent 87d88e3 commit 7b35fff

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

public/drag_drop_text/index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111

1212
<script type="text/javascript">
1313

14+
annotations = []
15+
annotations.push(
16+
{excerpt: 'There has been no "light at the end of the tunnel," no blessing in disguise and no valuable learning experience.', insights: ['Hopelessness'] },
17+
{excerpt: 'I wonder about the things I don\'t realize that I\'ve lost.', insights: ['Loss'], comment: 'Wow, this is really good!'}
18+
)
19+
1420
var system_insights = eval(['black', 'white', 'red', 'green', 'blue', 'yellow', 'purple', 'brown', 'silver', 'magenta', 'cyan', 'gold', 'goldenrod']);
1521

1622
function getSelected() {
@@ -43,6 +49,12 @@
4349
$("#dropzone").append($('<div>').annotation(selection,{template: tmp_note, available_insights: "tokens.js", onMouseOver: hilite, onMouseOut: unHilite }).fadeIn());
4450
}
4551
});
52+
53+
jQuery.each(annotations,function(){
54+
$("#dropzone").append($('<div>').annotation(this.excerpt,{insights: this.insights, comment: this.comment, template: tmp_note, available_insights: "tokens.js", onMouseOver: hilite, onMouseOut: unHilite }).fadeIn());
55+
})
56+
57+
4658
});
4759

4860
</script>
@@ -99,7 +111,7 @@ <h3>Excerpts</h3>
99111
</div>
100112
<div class="comment" style="display:none;">
101113
<textarea></textarea>
102-
<input type="button" class="comment_button" value="Submit Comment">
114+
<input type="button" class="comment_button" value="Update">
103115
</div>
104116
</div>
105117
</div>

0 commit comments

Comments
 (0)