-
-
Save kennethreitz/1007561 to your computer and use it in GitHub Desktop.
Read Now + Read Later + Send to Kindle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| 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