diff --git a/static/bookmodal.js b/static/bookmodal.js new file mode 100644 index 0000000..cf399bf --- /dev/null +++ b/static/bookmodal.js @@ -0,0 +1,24 @@ +(function() { + if (document.cookie.indexOf('bookSeen=true') > -1) { + return; + } + document.cookie = `bookSeen=true; ${document.cookie}; path=/; max-age=${60*60*24*7}`; + document.addEventListener('keydown', (e) => { + if (e.keyCode === 27) { + document.querySelector('.modal').remove() + } + }); + + const el = document.createElement('div'); + el.classList.add('modal'); + el.innerHTML = `
That's right, for better or for worse, ally is coming out in book form! It's up for pre-order, in both paperback and PDF digital editions.
+
+ ally is an ergodic, arborescent, semiautobiographical work about identity, mental health, spirituality, and the mutability of the past. A lot of the information contained within is real, some of it isn’t. Each page is structured as a conversation between myself and my ally, a mirror reflection of myself.
+Learn more about it here.
+ +