Skip to content

Instantly share code, notes, and snippets.

@kennethreitz
Forked from umbrae/embed-sample.html
Created June 4, 2011 04:01
Show Gist options
  • Select an option

  • Save kennethreitz/1007561 to your computer and use it in GitHub Desktop.

Select an option

Save kennethreitz/1007561 to your computer and use it in GitHub Desktop.
Read Now + Read Later + Send to Kindle
<!--
rbdWrapper can take several data- attributes:
1. data-url : to specificy a specific URL to link to (useful for index pages)
2. data-text-color : the text color of "Read". 6 digit hex or "transparent"
3. data-bg-color : the bg color. 6 digit hex or "transparent"
4. data-show-send-to-kindle : 1 or 0, whether to show the "send to kindle" button or not.
5. data-show-read : 1 or 0, whether to show the read buttons or not.
A sample is like:
-->
<div class="rdbWrapper" data-text-color="333333" data-bg-color="transparent" data-show-send-to-kindle="1" data-read="1"></div>
<script type="text/javascript">
(function() {
var rdb = document.createElement('script');
rdb.type = 'text/javascript';
rdb.async = true;
rdb.src = document.location.protocol + '//www.readability.com/embed.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(rdb, s);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment