I heard that Amazon had made it possible to embed sample chapters from Kindle published ebooks into any web page. You simply had to go to the page on Amazon for the ebook and there would be a nice button for you to click.
There was no button for One Dwarf Short.
I thought that was a bit unfair. So I chose a random book, had a look at the embed code, and did a bit of tinkering.
Below is the Amazon supplied embed code:
<div id='kindleReaderDiv20'></div>
<script type='text/javascript' src='http://kindleweb.s3.amazonaws.com/app/KindleReader-min.js'></script>
<script>KindleReader.LoadSample({containerID: 'kindleReaderDiv20', asin: 'XXXXXXX', width: '530', height: '600'});</script>
The “asin: ‘XXXXXX’” is where the magic happens. The ASIN is the Amazon Standard Identification Number, which Amazon uses to identify products. However, if you follow that link you will find that the ASIN for a product will not necessarily be the same across all of Amazon’s international sites.
The easiest place to find the ASIN for your Kindle published ebook is to go to your Kindle Direct Publishing Dashboard. On your Bookshelf, the ASIN appears below the ebook’s title. The ASIN for One Dwarf Short is B003XNTJL2.
Just replace the XXXXXXX in the embed code above with your own ASIN and it should, hopefully work.
The embedded ebook is not the prettiest reading experience. Click through to see it in action.
Here is the embed code with our ASIN in place:
<div id='kindleReaderDiv20'></div>
<script type='text/javascript' src='http://kindleweb.s3.amazonaws.com/app/KindleReader-min.js'></script>
<script>KindleReader.LoadSample({containerID: 'kindleReaderDiv20', asin: 'B003XNTJL2', width: '530', height: '600'});</script>
And here it is live:


