embed-bookmarklets

1.0.0 • Public • Published

embed-bookmarklets

embed-bookmarklets embed code to ATag fetch from href=<bookmarklets url> .

Installation

<script src="http://azu.github.io/embed-bookmarklets/embed-bookmarklets.js"></script>

Usage

You should define embed position.

Target <a> element should has rel="bookmarklets".

<p>Drop & Drop <a href="./where-page-in-slide.js" rel="bookmarklets">where-page-in-slide</a> to bookmark toolbar.</p>
<script src="http://azu.github.io/embed-bookmarklets/embed-bookmarklets.js"></script>

Result ===>

<p>Drop & Drop <a href="javascript:..." rel="bookmarklets">where-page-in-slide</a> to bookmark toolbar.</p>

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i embed-bookmarklets

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • azu