[webpages] Add annotation JS
This commit is contained in:
5
vrobbler/apps/webpages/static/css/recogito.min.css
vendored
Normal file
5
vrobbler/apps/webpages/static/css/recogito.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
3
vrobbler/apps/webpages/static/js/recogito.min.js
vendored
Normal file
3
vrobbler/apps/webpages/static/js/recogito.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -9,6 +9,21 @@
|
||||
.webpage-body {width:40em; text-align:justify; padding-top:20px; font-family:serif; font-size:1.25em; line-height:1.6em; border-right: 1px #ccc solid; padding-right: 2em;}
|
||||
.webpage-body br { margin-bottom: 1em; }
|
||||
</style>
|
||||
<link href="{% static 'css/recogito.min.css' %}" rel="stylesheet">
|
||||
{% endblock %}
|
||||
|
||||
{% block extra_js %}
|
||||
<script src="{% static 'js/recogito.min.js' %}"></script>
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var r = Recogito.init({
|
||||
content: document.getElementById('article') // ID or DOM element
|
||||
});
|
||||
|
||||
// Add an event handler
|
||||
r.on('createAnnotation', function(annotation) { /** **/ });
|
||||
})();
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block lists %}
|
||||
|
||||
Reference in New Issue
Block a user