Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.04 KB

README.md

File metadata and controls

31 lines (18 loc) · 1.04 KB

kippt-button

Simple "Save to Kippt" button.

Button opens Kippt's extension page with specific parameters.

Install

You can install "Save to Kippt" button to any site without the code on this site. Include the following file:

<script>(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="http://addons.kippt.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","kippt-wjs"));</script>

And format links the following way:

<a href="https://kippt.com/save" class="kippt-save-button" data-url="https://kippt.com/karrisaarinen/" data-title="Karri Saarinen on Kippt" data-source="example.com">Save to Kippt</a>

Attributes:

  • data-url - URL to save
  • data-title - (Optional) Title for the page
  • data-source - (Optional) Source, e.g. page domain
  • data-via - (Optional) Source clip URI if you want to reference another clip inside Kippt (e.g. /api/clips/1337/)

Requirements

  • jQuery / Zepto

TODO

  • Remove $ dependency
  • Add HTTPS enabled CDN