diff --git a/docs/assets/index-A6sV4zcx.css b/docs/assets/index-A6sV4zcx.css new file mode 100644 index 0000000..d1806e4 --- /dev/null +++ b/docs/assets/index-A6sV4zcx.css @@ -0,0 +1 @@ +body{max-width:100vw;margin:0}path.svelte-18d0bq{transition:fill-opacity .5s}text.svelte-1dq5844{transition:fill-opacity .7s}svg.svelte-1xdunt6{font-size:20px;font-family:lorimer-no-2,sans-serif;font-weight:300;fill:#444;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:visible;pointer-events:none}.middle-text.svelte-1xdunt6{font-family:alternate-gothic-condensed-a,sans-serif;font-weight:500;text-anchor:middle;fill:#525252}.small-text.svelte-1xdunt6{font-family:lorimer-no-2,sans-serif;fill:#838383;font-weight:300;text-anchor:middle}.hover-text.svelte-1xdunt6{text-anchor:middle}.credits.svelte-11b453q svg.svelte-11b453q{cursor:pointer;opacity:.8}.logo-flex.svelte-11b453q a.svelte-11b453q{margin-right:1rem}.diagram.svelte-11b453q.svelte-11b453q{position:absolute;bottom:4rem;right:-5rem;opacity:.3}.left-panel.svelte-11b453q.svelte-11b453q{padding:3rem 3rem 0;background-color:#3c414c;box-shadow:0 19px 38px #0000004d,0 15px 12px #00000038;margin-left:2rem;display:flex;flex-direction:column;justify-content:space-between;transition:width .5s ease}h1.svelte-11b453q.svelte-11b453q{color:#d6d6d6;font-family:vox,sans-serif;font-weight:400;font-size:1.8rem;font-style:normal;white-space:nowrap}.badges-container.svelte-11b453q.svelte-11b453q{display:flex;flex-direction:row;justify-content:flex-start}.badge.svelte-11b453q.svelte-11b453q{color:#fff;color:#444141;border-radius:20px;padding:.5rem 1rem;margin-right:1rem;font-size:1rem;font-weight:300;font-family:lorimer-no-2,sans-serif;box-shadow:0 20px 30px -10px #26394d}.combined-container.svelte-11b453q.svelte-11b453q{max-height:320px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start;max-width:100%;margin-bottom:1rem;max-height:60%}.antibiotic-description.svelte-11b453q.svelte-11b453q{position:relative;font-size:1.2rem;overflow-y:scroll;color:#d6d6d6;font-weight:300;max-height:165px}.search-bar.svelte-11b453q.svelte-11b453q{font-family:lorimer-no-2,sans-serif;font-size:1.5rem;font-weight:700;color:#2b2c2c;background-color:#fff0;border:none;border-radius:20px;padding:.5rem 0;width:80%;color:#fff}li.svelte-11b453q.svelte-11b453q{color:silver;margin-bottom:.5rem}input.svelte-11b453q.svelte-11b453q:focus{outline:none}.top-flex.svelte-11b453q h2.svelte-11b453q{font-size:1.2rem;font-weight:300;color:silver;margin-bottom:.5rem}.WHO-descriptions.svelte-11b453q h2.svelte-11b453q{width:fit-content;height:fit-content;padding:.3rem 1rem;border-radius:20px;font-size:1.2rem;color:#444141;margin-right:1rem;cursor:pointer}.WHO-descriptions.svelte-11b453q.svelte-11b453q{overflow:scroll;max-height:64%}.credits.svelte-11b453q.svelte-11b453q{min-height:fit-content;max-width:calc(100% - 6rem)}main.svelte-q38l9n{display:flex;height:100vh;padding-left:4%;margin:0;justify-content:space-between;align-items:center;font-family:lorimer-no-2,sans-serif;overflow:hidden;background-image:linear-gradient(315deg,#d5ddf8,#fff 57%)}.menu-bars-svg.svelte-q38l9n{position:absolute;top:1rem;right:1rem;width:2rem;height:2rem;margin:1rem;cursor:pointer;z-index:100;fill:silver}.rotate.svelte-q38l9n{transform-origin:center;transition:transform .2s ease}.rotated.svelte-q38l9n{transform:rotate(90deg)} diff --git a/docs/assets/index-11rCnKXE.js b/docs/assets/index-SIgYcnQv.js similarity index 96% rename from docs/assets/index-11rCnKXE.js rename to docs/assets/index-SIgYcnQv.js index c33bb8f..363d665 100644 --- a/docs/assets/index-11rCnKXE.js +++ b/docs/assets/index-SIgYcnQv.js @@ -1,7 +1,7 @@ -var ra=Object.defineProperty;var ca=(i,e,a)=>e in i?ra(i,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[e]=a;var ji=(i,e,a)=>(ca(i,typeof e!="symbol"?e+"":e,a),a);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))t(n);new MutationObserver(n=>{for(const o of n)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&t(s)}).observe(document,{childList:!0,subtree:!0});function a(n){const o={};return n.integrity&&(o.integrity=n.integrity),n.referrerPolicy&&(o.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?o.credentials="include":n.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function t(n){if(n.ep)return;n.ep=!0;const o=a(n);fetch(n.href,o)}})();function R(){}const ne=i=>i;function me(i,e){for(const a in e)i[a]=e[a];return i}function Qe(i){return i()}function ue(){return Object.create(null)}function ii(i){i.forEach(Qe)}function yi(i){return typeof i=="function"}function bi(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let ki;function la(i,e){return i===e?!0:(ki||(ki=document.createElement("a")),ki.href=e,i===ki.href)}function da(i){return Object.keys(i).length===0}function ma(i,...e){if(i==null){for(const t of e)t(void 0);return R}const a=i.subscribe(...e);return a.unsubscribe?()=>a.unsubscribe():a}function W(i,e,a){i.$$.on_destroy.push(ma(e,a))}function he(i){return i??""}const Ze=typeof window<"u";let $e=Ze?()=>window.performance.now():()=>Date.now(),oe=Ze?i=>requestAnimationFrame(i):R;const pi=new Set;function ia(i){pi.forEach(e=>{e.c(i)||(pi.delete(e),e.f())}),pi.size!==0&&oe(ia)}function ea(i){let e;return pi.size===0&&oe(ia),{promise:new Promise(a=>{pi.add(e={c:i,f:a})}),abort(){pi.delete(e)}}}function T(i,e){i.appendChild(e)}function aa(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function ua(i){const e=I("style");return e.textContent="/* empty */",ha(aa(i),e),e.sheet}function ha(i,e){return T(i.head||i,e),e.sheet}function z(i,e,a){i.insertBefore(e,a||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ai(i,e){for(let a=0;ai.removeEventListener(e,a,t)}function b(i,e,a){a==null?i.removeAttribute(e):i.getAttribute(e)!==a&&i.setAttribute(e,a)}function pa(i){return Array.from(i.childNodes)}function li(i,e){e=""+e,i.data!==e&&(i.data=e)}function pe(i,e){i.value=e??""}function M(i,e,a,t){a==null?i.style.removeProperty(e):i.style.setProperty(e,a,t?"important":"")}let Ni;function fa(){if(Ni===void 0){Ni=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Ni=!0}}return Ni}function ta(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const t=I("iframe");t.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),t.setAttribute("aria-hidden","true"),t.tabIndex=-1;const n=fa();let o;return n?(t.src="data:text/html, - + +
diff --git a/src/components/ControlPanel.svelte b/src/components/ControlPanel.svelte index 4a21437..3008d31 100644 --- a/src/components/ControlPanel.svelte +++ b/src/components/ControlPanel.svelte @@ -80,9 +80,18 @@
-

Credits

-

This website was created by Rory White using Svelte and d3/js. Data was sourced from the WHO AWaRe Classification 2023. - Antibiotic descriptions are from the Drugbank database (Attribution-NonCommercial 4.0 International) and Wikipedia. Text descriptions of the WHO AWaRe categories are from the AWaRe website. The visualization mechanics were adapted from Mike Bostock's Zoomable Sunburst.

+ +
+

Credits

+ + + + + + +
+

This website was created by Rory White using Svelte and d3/js. Data was sourced from the WHO AWaRe Classification 2023. + Antibiotic descriptions are from the Drugbank database (Attribution-NonCommercial 4.0 International) and Wikipedia. Text descriptions of the WHO AWaRe categories are from the AWaRe website. The visualization mechanics were adapted from Mike Bostock's Zoomable Sunburst.

@@ -90,6 +99,17 @@