async function fetchAndDisplayBooks() { try { let books = [{"title":"Ink Blood Sister Scribe: A Novel","shorttitle":"Ink Blood Sister Scribe","authorstring":"Emma Törzs","description":"NAMED A NEW YORK TIMES NOTABLE BOOK OF THE YEAR & ONE OF THE BEST FANTASY NOVELS OF THE YEAR \n\n“Astonishing and pristine, the kind of debut I love to be devastated by, already so assured and sophisticated that it’s difficult to imagine where the author can go from here. . . . It’s simply a delight from start to finish.” – AMAL EL-MOHTAR, New York Times Book Review \n\n“Follow where this novel leads and you will be lost in a bewitching spell, a book of magic about books of magic . . . extraordinary.” – MARLON JAMES \n\nIn this spellbinding debut novel, two estranged half-sisters tasked with guarding their family’s library of magical books must work together to unravel a deadly secret at the heart of their collection—a tale of familial loyalty and betrayal, and the pursuit of magic and power. \n\nFor generations, the Kalotay family has guarded a collection of ancient and rare books. Books that let a person walk through walls or manipulate the elements—books of magic that half-sisters Joanna and Esther have been raised to revere and protect. \n\nAll magic comes with a price, though, and for years the sisters have been separated. Esther has fled to a remote base in Antarctica to escape the fate that killed her own mother, and Joanna’s isolated herself in their family home in Vermont, devoting her life to the study of these cherished volumes. But after their father dies suddenly while reading a book Joanna has never seen before, the sisters must reunite to preserve their family legacy. In the process, they’ll uncover a world of magic far bigger and more dangerous than they ever imagined, and all the secrets their parents kept hidden; secrets that span centuries, continents, and even other libraries . . . \n\nIn the great tradition of Ninth House, The Magicians, and Practical Magic, this is a suspenseful and richly atmospheric novel that draws readers into a vast world filled with mystery and magic, romance, and intrigue—and marks the debut of an extraordinary new voice in speculative fiction. \n\n\"Ink Blood Sister Scribe is so many things at once: an adventure, a puzzle, a twisty thriller, and a tender romance. . . . I adored it.” – ALIX E. HARROW \n\n\"If, like me, you’re a fan of Holly Black and Leigh Bardugo, pick up this book at once.” — KELLY LINK","descriptionHtml":"

NAMED A NEW YORK TIMES NOTABLE BOOK OF THE YEAR & ONE OF THE BEST FANTASY NOVELS OF THE YEAR 

“Astonishing and pristine, the kind of debut I love to be devastated by, already so assured and sophisticated that it’s difficult to imagine where the author can go from here. . . . It’s simply a delight from start to finish.” – AMAL EL-MOHTAR, New York Times Book Review 

“Follow where this novel leads and you will be lost in a bewitching spell, a book of magic about books of magic . . . extraordinary.” – MARLON JAMES

In this spellbinding debut novel, two estranged half-sisters tasked with guarding their family’s library of magical books must work together to unravel a deadly secret at the heart of their collection—a tale of familial loyalty and betrayal, and the pursuit of magic and power.

For generations, the Kalotay family has guarded a collection of ancient and rare books. Books that let a person walk through walls or manipulate the elements—books of magic that half-sisters Joanna and Esther have been raised to revere and protect.

All magic comes with a price, though, and for years the sisters have been separated. Esther has fled to a remote base in Antarctica to escape the fate that killed her own mother, and Joanna’s isolated herself in their family home in Vermont, devoting her life to the study of these cherished volumes. But after their father dies suddenly while reading a book Joanna has never seen before, the sisters must reunite to preserve their family legacy. In the process, they’ll uncover a world of magic far bigger and more dangerous than they ever imagined, and all the secrets their parents kept hidden; secrets that span centuries, continents, and even other libraries . . .

In the great tradition of Ninth House, The Magicians, and Practical Magic, this is a suspenseful and richly atmospheric novel that draws readers into a vast world filled with mystery and magic, romance, and intrigue—and marks the debut of an extraordinary new voice in speculative fiction.

\"Ink Blood Sister Scribe is so many things at once: an adventure, a puzzle, a twisty thriller, and a tender romance. . . . I adored it.” – ALIX E. HARROW

\"If, like me, you’re a fan of Holly Black and Leigh Bardugo, pick up this book at once.” — KELLY LINK 

","isbn":"0063253461","amazonurl":"https://www.amazon.com/dp/0063253461?ref_=as_li_ss_tl&linkCode=ll1&tag=codexmap-20&linkId=8d37aaf25f3947e1637a2ada957a9c8f&ref_=as_li_ss_tl","HawaiiProject":"https://www.thehawaiiproject.com/book/Ink-Blood-Sister-Scribe--by--Emma-Törzs--627342","tbr":"https://tbrapp.co/book/627342","AppleBooks":"https://goto.applebooks.apple/9780063253469","BarnesNoble":"https://www.barnesandnoble.com/s/0063253461","Bookshop":"https://bookshop.org/a/19558/9780063253469","coverarturl":"https://m.media-amazon.com/images/I/81dG1Vl44hL.jpg","bookid":"627342","publicationdate":"2023-05-30 00:00:00"},{"title":"Seven Myths of the Crusades (Myths of History: A Hackett Series)","shorttitle":"Seven Myths of the Crusades","authorstring":"Alfred J. Andrea","description":"\"Seven Myths of the Crusades' rebuttal of the persistent and multifarious misconceptions associated with topics including the First Crusade, anti-Judaism and the Crusades, the crusader states, the Children's Crusade, the Templars and past and present Islamic-Christian relations proves, once and for all, that real history is far more fascinating than conspiracy theories, pseudo-history and myth-mongering. This book is a powerful witness to the dangers of the misappropriation and misinterpretation of the past and the false parallels so often drawn between the crusades and later historical events ranging from nineteenth-century colonialism to the protest movements of the 1960s to the events of 9/11. This volume's authors have venerable track records in teaching and researching the crusading movement, and anyone curious about the crusades would do well to start here.\"\n—Jessalynn Bird, Dominican University, co-Editor of Crusade and Christendom","descriptionHtml":"\"Seven Myths of the Crusades' rebuttal of the persistent and multifarious misconceptions associated with topics including the First Crusade, anti-Judaism and the Crusades, the crusader states, the Children's Crusade, the Templars and past and present Islamic-Christian relations proves, once and for all, that real history is far more fascinating than conspiracy theories, pseudo-history and myth-mongering. This book is a powerful witness to the dangers of the misappropriation and misinterpretation of the past and the false parallels so often drawn between the crusades and later historical events ranging from nineteenth-century colonialism to the protest movements of the 1960s to the events of 9/11. This volume's authors have venerable track records in teaching and researching the crusading movement, and anyone curious about the crusades would do well to start here.\"
 —Jessalynn Bird, Dominican University, co-Editor of
Crusade and Christendom","isbn":"1624664032","amazonurl":"https://www.amazon.com/Seven-Myths-Crusades-History-Hackett/dp/1624664032/ref=sr_1_1?dib=eyJ2IjoiMSJ9.HoVICs9X2gtx0HMEzD2sWg.ALRLY4kabv7pXNJe-c8Azjpxbb9H7ROaTL1ZELPTOWw&dib_tag=se&keywords=Seven Myths of the Crusades Holt&qid=1739390452&sr=8-1&linkCode=ll1&tag=codexmap-20&linkId=8d37aaf25f3947e1637a2ada957a9c8f&ref_=as_li_ss_tl","HawaiiProject":"https://www.thehawaiiproject.com/book/Seven-Myths-of-the-Crusades--by--Alfred-J.-Andrea--700630","tbr":"https://tbrapp.co/book/700630","AppleBooks":"https://goto.applebooks.apple/9781624664038","BarnesNoble":"https://www.barnesandnoble.com/s/1624664032","Bookshop":"https://bookshop.org/a/19558/9781624664038","coverarturl":"https://m.media-amazon.com/images/I/61PbIAVnreL.jpg","bookid":"700630","publicationdate":"2015-08-21 00:00:00"},{"title":"A Bird in Winter","shorttitle":"A Bird in Winter","authorstring":"Louise Doughty","description":"**AVAILABLE FOR PRE-ORDER NOW** OVER HALF A MILLION COPIES OF APPLE TREE YARD SOLD 'Louise Doughty leads her unnerved readers into dark territory.' HILARY MANTEL 'Doughty is a brilliant storyteller who knows how to build suspense to breaking point.' The Times The latest from the writer of BBC smash hit drama Crossfire, and Number One Sunday Times Bestseller Louise Doughty Bird is a woman on the run. One minute, she's in a meeting in her office in Birmingham - the next, she's walking out on her job, her home, her life. It's a day she thought might come, and one she's prepared for - but nothing could prepare her for what will happen next. As she flees north using multiple disguises, Bird has to work out who exactly is on her trail, and who - if anyone - she can trust. Like many people, she has fantasised about escape for a long time, but now it's actually happening. Is her greatest fear that she will be hunted down, or that she will never be found?","descriptionHtml":"**AVAILABLE FOR PRE-ORDER NOW** OVER HALF A MILLION COPIES OF APPLE TREE YARD SOLD 'Louise Doughty leads her unnerved readers into dark territory.' HILARY MANTEL 'Doughty is a brilliant storyteller who knows how to build suspense to breaking point.' The Times The latest from the writer of BBC smash hit drama Crossfire, and Number One Sunday Times Bestseller Louise Doughty Bird is a woman on the run. One minute, she's in a meeting in her office in Birmingham - the next, she's walking out on her job, her home, her life. It's a day she thought might come, and one she's prepared for - but nothing could prepare her for what will happen next. As she flees north using multiple disguises, Bird has to work out who exactly is on her trail, and who - if anyone - she can trust. Like many people, she has fantasised about escape for a long time, but now it's actually happening. Is her greatest fear that she will be hunted down, or that she will never be found?","isbn":"B0BSKPJFWV","amazonurl":"https://www.amazon.com/Bird-Winter-nail-bitingly-compelling-Hawkins-ebook/dp/B0BSKPJFWV/ref=sr_1_2?keywords=A Bird in Winter&qid=1692379913&s=books&sr=1-2&linkCode=ll1&tag=codexmap-20&linkId=8d37aaf25f3947e1637a2ada957a9c8f&ref_=as_li_ss_tl","HawaiiProject":"https://www.thehawaiiproject.com/book/A-Bird-in-Winter--by--Louise-Doughty--646507","tbr":"https://tbrapp.co/book/646507","AppleBooks":"https://goto.applebooks.apple/9780571322176","BarnesNoble":"https://www.barnesandnoble.com/s/B0BSKPJFWV","Bookshop":"https://bookshop.org/a/19558/9780571322176","coverarturl":"https://m.media-amazon.com/images/I/41imMOiS8BL.jpg","bookid":"646507","publicationdate":"2023-08-29 00:00:00"}]; // Create a container for the book list const bookList = document.createElement('div'); bookList.className = 'book-list'; // Add some basic styling const style = document.createElement('style'); style.textContent = ` body { --cover-width: 70px; --cover-height: calc(var(--cover-width) * 1.55); --cover-radius: 8px; --cover-bordercolor: white; --widget-background: black; --widget-textcolor: white; } .book-list { display: flex; flex-direction: column; gap: 10px; padding: 4px; max-widthX: 250px; background: var(--widget-background); } .book-card { display: flex; flex-direction: row; align-items: center; overflow: hidden; } @media (max-width:1080px) { .book-card { flex-direction: column; } } .book-cover-container { flexX: 0 0 var(--cover-width); width: var(--cover-width); height: var(--cover-height); border-radius: var(--cover-radius); background: var(--cover-bordercolor); displayX: flex; padding: 2px; } .book-cover-link { display: block; height: 100% } .book-cover { display: block; widthX: var(--cover-width); heightX: var(--cover-height); border-radius: var(--cover-radius); object-fit: cover; height: 100%; width: 100%; marginX: 1px; box-shadow: 0 0 1px 0px white inset, 0 0 1px 0px white; } .book-info { flex: 1; padding: 8px; display: flex; flex-direction: column; justify-content: center; background: var(--widget-background); color: var(--widget-textcolor); } .book-title { margin: 0 0 0px 0 !important; font-size: 1rem; font-weight: bold; color: var(--widget-textcolor); } .book-author { color: var(--widget-textcolor); margin-bottom: 0px !important; font-size: 0.75rem; } `; document.head.appendChild(style); // Create and append book cards books.forEach(book => { const bookCard = document.createElement('div'); bookCard.className = 'book-card'; // h2: margin-top: 0px; bookCard.innerHTML = `
Cover of ${book.shorttitle}
${book.shorttitle}

by ${book.authorstring}

`; bookList.appendChild(bookCard); }); // Add the book list to the document const booksContainer = document.getElementById('4a62b298c678055518cec753d2d19442'); if (booksContainer) { booksContainer.appendChild(bookList); } else { console.error('Element with id "books" not found'); } // var poweredDiv = document.createElement("div"); poweredDiv.setAttribute('style', 'padding-top: 4px; display: flex; justify-content: center; align-items: center;' ); var poweredImage = document.createElement("img"); var poweredLink = document.createElement("a"); var poweredImgLink = document.createElement("a"); poweredDiv.className ='LT_powered'; poweredImage.className ="favicon"; poweredImage.setAttribute('src', "https://bookshipapp.com/assets/icon/favicon.ico"); poweredImage.setAttribute('width', '16px'); poweredImage.setAttribute('height', '16px'); poweredLink.setAttribute('href', 'https://www.bookshipapp.com') poweredLink.setAttribute('target', '_top'); poweredLink.setAttribute('style', 'display: flex;'); poweredLink.innerHTML='Powered by Bookship'; poweredImgLink.setAttribute('href', 'https://www.bookshipapp.com') poweredImgLink.setAttribute('target', '_top'); poweredImgLink.setAttribute('style', 'display: flex;padding-right: 4px;'); poweredImgLink.appendChild(poweredImage); poweredDiv.appendChild(poweredImgLink); poweredDiv.appendChild(poweredLink); booksContainer.appendChild(poweredDiv); } catch (error) { console.error('Error fetching or displaying books:', error); const errorMessage = document.createElement('div'); errorMessage.style.color = 'red'; errorMessage.style.padding = '20px'; errorMessage.textContent = 'Sorry, there was an error loading the books.'; document.body.appendChild(errorMessage); } } fetchAndDisplayBooks(); // Call the function when the document is loaded // document.addEventListener('DOMContentLoaded', fetchAndDisplayBooks);