Merge pull request #2 from EbookFoundation/reading-list

Reading list
master
Adam Undus 2021-04-23 15:21:43 -04:00 committed by GitHub
commit 0dd563c41d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 1 deletions

View File

@ -113,7 +113,13 @@ ${site_top()}
</li> </li>
<li> <li>
<a onclick="printpage()" title="Print this page"><span class="icon icon_print" /></a> <a onclick="printpage()" title="Print this page"><span class="icon icon_print" /></a>
</li> </li>
<li>
<div class="social-button booklist">
<button title="Add book to My Book List" id="add-to-booklist"
style="background-color: cornflowerblue;">+</button>
</div>
</li>
</ul> </ul>
</div> </div>
@ -378,5 +384,17 @@ ${site_top()}
</div> </div>
<script>
function getBookMetadata(){
return {
bookId: "${os.id}",
title: "${os.title}",
imgSrc: "${os.cover_image_url}",
url: window.location.href
}
}
</script>
<script src="http://cdn.jsdelivr.net/gh/EbookFoundation/reading-lists/ebooks/book.js"></script>
</body> </body>
</html> </html>