commentus
v1.0.0
Published
Dyanamic HTML comments FTW!
Downloads
1
Readme
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!');