[annotator-dev] color-coding annotated text by tagtype
Randall Leeds
tilgovi at hypothes.is
Fri Feb 14 23:56:27 UTC 2014
Does `$('.annotator-hl').each(function () {
this.data('annotation').tags })`give you what you need?
In that function block you could set an additional class on the annotation
based on the tags and color via CSS.
On Tue, Feb 11, 2014 at 2:31 PM, Missy <a3gndu at yahoo.com> wrote:
> Hi,
> I am a newbie to HTML/CSS/JS - looking for the fastest way to modify the
> annotator to: color code the annotated text (not the annotations) by tag
> type. Eventually, I would also like to present a preset menu of tags and
> associated colors to the user.
> If I could get a hold of all annotations and their tags, I can simply
> write a function that changes the color of each annotation based on its
> tag. This sort of works (if I don't refresh the webpage) but the class
> "annotator-hl" may conflict with my newly defined color classes
> "annotator-hl-color_j."
> Related questions:
> (1) Using precompiled files in annotator-full-1.2.7, how can I grab all
> the annotations on a page when the page reloads? (note that i can grab
> individual annotations using annotator events - instead I am looking to
> grab all annotations). How do I create the path to where my annotations are
> stored on http://annotateit.org/ ?
> (2) How do I compile the annotator-master makefile using Webstorm 7.0 (or
> other compilers)? What is the best way to convert coffee files to
> javascript.
> thanks much!
>
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/annotator-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20140214/5a81e150/attachment-0004.html>
More information about the annotator-dev
mailing list