-{% endblock %}
-
-{% block extrabody %}
-<script type="text/javascript">
-$(function() {
- var lorem = $('#loremIpsum');
-
- var x = $('#loremIpsum *');
-
- x.click( function(event)
- {
- var e = $(this);
- $.log("Overlaying element: ", this);
- var p = e.offsetParent();
- var pos = e.position();
- var marginTop = parseInt(e.css('margin-top'));
-
- $.log("Offset: ", pos, p);
- var overlay = $('<div class="element-overlay"><textarea></textarea></div>');
- var text = $('textarea', overlay);
- text.val(e.text());
-
- p.prepend(overlay);
-
- overlay.css({ top: pos.top+marginTop, left: pos.left, width: e.width(), height: e.height()});
-
- return false;
- })
-});
-</script>