pressbooks aldine theme the theme used for the front page or default book
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
125 KiB

!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)}({0:function(t,e,n){n("JnJB"),n("uYAI"),t.exports=n("amDo")},"3A2W":function(t,e,n){"use strict";(function(t){var i=n("Yu3H"),r=n("Px4X");e.a={init:function(){var e;e=document.querySelectorAll("fieldset h2"),Array.prototype.forEach.call(e,function(t){t.innerHTML='\n\t\t\t\t<button type="button" aria-expanded="false">\n\t\t\t\t\t'.concat(t.textContent,'\n\t\t\t\t\t<svg aria-hidden="true" focusable="false" class="arrow" width="13" height="8" viewBox="0 0 13 8" xmlns="http://www.w3.org/2000/svg"><path d="M6.255 8L0 0h12.51z" fill="currentColor" fill-rule="evenodd"></path></svg>\n\t\t\t\t</button>\n\t\t\t ');var e=function(t){for(var e=[];t.nextElementSibling&&"H2"!==t.nextElementSibling.tagName;)e.push(t.nextElementSibling),t=t.nextElementSibling;return e.forEach(function(t){t.parentNode.removeChild(t)}),e}(t),n=document.createElement("div");n.hidden=!0,e.forEach(function(t){n.appendChild(t)}),t.parentNode.insertBefore(n,t.nextElementSibling);var i=t.querySelector("button");i.onclick=function(){var t="true"===i.getAttribute("aria-expanded")||!1;i.setAttribute("aria-expanded",!t),n.hidden=t}}),function(){var t=document.querySelectorAll("fieldset h3");Array.prototype.forEach.call(t,function(t){t.innerHTML='\n\t\t\t\t<button type="button" aria-expanded="false">\n\t\t\t\t\t'.concat(t.innerHTML,'\n\t\t\t\t\t<svg class="arrow" width="13" height="8" viewBox="0 0 13 8" xmlns="http://www.w3.org/2000/svg"><path d="M6.255 8L0 0h12.51z" fill="currentColor" fill-rule="evenodd"></path></svg>\n\t\t\t\t</button>\n\t\t\t ');var e=function(t){for(var e=[];t.nextElementSibling&&"H3"!==t.nextElementSibling.tagName;)e.push(t.nextElementSibling),t=t.nextElementSibling;return e.forEach(function(t){t.parentNode.removeChild(t)}),e}(t),n=document.createElement("div");n.hidden=!0,e.forEach(function(t){n.appendChild(t)}),t.parentNode.insertBefore(n,t.nextElementSibling);var i=t.querySelector("button");i.onclick=function(){var t="true"===i.getAttribute("aria-expanded")||!1;i.setAttribute("aria-expanded",!t),n.hidden=t}})}(),t(function(t){i("isotope",r,t);var e=t(".books");e.isotope({itemSelector:".book",getSortData:{title:".book__title a",subject:"[data-subject]",latest:"[data-date-published]"},sortAscending:{title:!0,subject:!1,latest:!1}});var n=document.querySelector(".license-filters"),o=document.querySelector(".subject-filters"),s=document.querySelector(".sorts"),a=document.querySelector(".clear-filters");a.hidden=!1,n.addEventListener("click",function(t){if("radio"===t.target.type){var n="",i="",r="*";o.querySelector('input[type="radio"]:checked').value&&(i='[data-subject="'.concat(o.querySelector('input[type="radio"]:checked').value,'"]')),t.target.value&&(n='[data-license="'.concat(t.target.value,'"]')),(n||i)&&(r="".concat(n).concat(i)),e.isotope({filter:r})}}),o.addEventListener("click",function(t){if("radio"===t.target.type){var i="",r="",o="*";n.querySelector('input[type="radio"]:checked').value&&(i='[data-license="'.concat(n.querySelector('input[type="radio"]:checked').value,'"]')),t.target.value&&(r='[data-subject="'.concat(t.target.value,'"]')),(i||r)&&(o="".concat(i).concat(r)),e.isotope({filter:o})}}),a.addEventListener("click",function(){