fizzstudio / nanotation

Prototype Chrome extension to enable "deep link" sharing of a selection, with anyone else who has this extension. Now being developed by Fizz Studio.
MIT License
9 stars 1 forks source link

Implement details element #14

Closed sh0ji closed 6 years ago

sh0ji commented 6 years ago

Sets the nanotation reference as a details element:

<p>
  <mark class="nanotation-ref" id="nanotation-0">Two centuries ago Leibnitz invented a calculating machine</mark>
  <details class="nanotation-details" open>
    <summary class="nanotation-indicator" aria-describedby="nanotation-0">Has annotation</summary>
    <div class="nanotation-tooltip">
      <div class="nanotation-tooltip-content">Or was it Newton?</div>
    </div>
  </details> 
  which embodied most of the essential features...
</p>