[webpages] Add annotation JS

This commit is contained in:
2024-03-26 22:44:47 -04:00
parent e65ab4d8c2
commit 9bc087d824
3 changed files with 23 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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 %}