1.0.0 • Published 6 years ago

commentus v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Did you know that HTML comments are actual elements? You can create them just like you would a regular ol' div and even update the text inside the element.

Inspired by humorous comments like the ones below:

Usage

let options =
{ position: [ 'first' | 'last' | 'target' ] // default 'first'
, target: [ '#query' | Node ] // only valid when position is 'target'
};

let comment = new Commentus('dynamic comments FTW!', options);

comment.update('made you look!');