added
This commit is contained in:
1 parent
1cca9d3667
commit
84865800d1
79 files changed
+5766
-49
No files matched your search
@@ -0,0 +1,43 @@
|
||||
<script>
|
||||
(() => {
|
||||
const sections = [{"id": "current-supports", "label": "What supports demand", "color": "#434343", "ink": "#FFFFFF"}, {"id": "productivity-handoff", "label": "The productivity handoff", "color": "#00FF00", "ink": "#000000"}, {"id": "transition-pressure", "label": "The transition pressures", "color": "#980000", "ink": "#FFFFFF"}, {"id": "possible-responses", "label": "What could change the path", "color": "#00FFFF", "ink": "#000000"}, {"id": "business-agency", "label": "What businesses can do now", "color": "#93C47D", "ink": "#000000"}, {"id": "experience-trust", "label": "Experiences and trust", "color": "#FFFF00", "ink": "#000000"}];
|
||||
function init() {
|
||||
const reveal = window.Reveal;
|
||||
if (!reveal || !reveal.isReady()) { setTimeout(init, 100); return; }
|
||||
const slides = [...document.querySelectorAll('.reveal .slides section.slide')];
|
||||
const nav = document.createElement('nav'); nav.id='es-outline'; nav.setAttribute('aria-label','Slide outline');
|
||||
nav.innerHTML='<p class="outline-title">Emerging<br>Undercurrents</p><a href="#/title-slide">Cover</a><a href="#/contents">Table of Contents</a>';
|
||||
let current=null, group=null;
|
||||
slides.forEach(slide => {
|
||||
const section=sections.find(s=>s.id===slide.id);
|
||||
if(section) {
|
||||
current=section;
|
||||
group=document.createElement('details'); group.dataset.section=section.id;
|
||||
group.style.setProperty('--section-color',section.color);
|
||||
const summary=document.createElement('summary'); summary.textContent=section.label;
|
||||
group.append(summary); nav.append(group);
|
||||
const h=slide.querySelector('h1'); if(h) { const span=document.createElement('span');span.textContent=h.textContent;h.replaceChildren(span); }
|
||||
}
|
||||
if(slide.classList.contains('standalone')) {current=null;group=null;}
|
||||
if(current) {
|
||||
slide.dataset.esSection=current.id;
|
||||
const back=document.createElement('a'); back.className='es-return'; back.href='#/contents';back.textContent='Go Back To Outline Page';slide.append(back);
|
||||
const foot=document.createElement('div');foot.className='es-footer';foot.style.background=current.color;foot.style.color=current.ink;
|
||||
const label=document.createElement('span');label.textContent=current.label.toUpperCase();foot.append(label);
|
||||
const author=document.createElement('a');author.href='https://eddiesoehnel.com/';author.textContent='Copyright © Eddie Soehnel';author.target='_blank';author.rel='noopener';foot.append(author);slide.append(foot);
|
||||
const a=document.createElement('a');a.href='#/'+slide.id;a.dataset.slideId=slide.id;a.textContent=slide.querySelector('h1,h2')?.textContent || slide.id;group.append(a);
|
||||
} else if(slide.classList.contains('standalone')) {
|
||||
const a=document.createElement('a');a.href='#/'+slide.id;a.dataset.slideId=slide.id;a.textContent=slide.querySelector('h2')?.textContent || slide.id;nav.append(a);
|
||||
}
|
||||
});
|
||||
slides.filter(s=>s.classList.contains('evidence')).forEach(s=>{const img=s.querySelector('img');if(!img)return;const button=document.createElement('button');button.className='chart-open';button.textContent='Open chart at full size';button.onclick=()=>{const viewer=document.createElement('div');viewer.id='chart-viewer';viewer.setAttribute('role','dialog');viewer.setAttribute('aria-label',img.alt);viewer.setAttribute('aria-modal','true');const close=document.createElement('button');close.textContent='Close chart';close.onclick=()=>{viewer.remove();button.focus();};const full=document.createElement('img');full.src=img.src;full.alt=img.alt;viewer.append(close,full);document.body.append(viewer);close.focus();viewer.onkeydown=e=>{e.stopPropagation();if(e.key==='Escape'){e.preventDefault();close.click();}if(e.key==='Tab'){e.preventDefault();close.focus();}};};s.querySelector('figure')?.append(button);});
|
||||
const help=document.createElement('p');help.className='outline-help';help.textContent='Expand a section to jump to any slide. M: menu · O: overview · S: notes · F: full screen';nav.append(help);document.body.append(nav);
|
||||
const toggle=document.createElement('button');toggle.id='es-outline-toggle';toggle.textContent='Outline';toggle.setAttribute('aria-label','Show or hide slide outline');toggle.setAttribute('aria-expanded','true');
|
||||
toggle.onclick=()=>{ if(window.innerWidth<=800){document.body.classList.toggle('mobile-outline');toggle.setAttribute('aria-expanded',document.body.classList.contains('mobile-outline'));}else{document.body.classList.toggle('outline-hidden');toggle.setAttribute('aria-expanded',!document.body.classList.contains('outline-hidden'));}reveal.layout();};document.body.append(toggle);
|
||||
nav.addEventListener('click',e=>{const a=e.target.closest('a');if(!a)return;const id=a.hash.replace(/^#\/?/,'');const target=document.getElementById(id);if(target){e.preventDefault();const ix=reveal.getIndices(target);reveal.slide(ix.h,ix.v);}});
|
||||
function update() {const s=reveal.getCurrentSlide();nav.querySelectorAll('a').forEach(a=>{if(a.hash==='#/'+s.id){a.setAttribute('aria-current','page');}else{a.removeAttribute('aria-current');}});nav.querySelectorAll('details').forEach(d=>{d.open=d.dataset.section===s.dataset.esSection;});}
|
||||
reveal.on('slidechanged',update);update();reveal.layout();
|
||||
}
|
||||
window.addEventListener('load',init);
|
||||
})();
|
||||
</script>
|
||||
@@ -0,0 +1,122 @@
|
||||
/*-- scss:defaults --*/
|
||||
$body-bg: #ffffff;
|
||||
$body-color: #000000;
|
||||
$link-color: #0000FF;
|
||||
$font-family-sans-serif: Arial, sans-serif;
|
||||
$presentation-heading-font: Arial, sans-serif;
|
||||
$presentation-heading-color: #529991;
|
||||
$presentation-heading-font-weight: 700;
|
||||
$presentation-font-size-root: 34px;
|
||||
$presentation-h1-font-size: 2.6em;
|
||||
$presentation-h2-font-size: 1.42em;
|
||||
$presentation-h3-font-size: 1.05em;
|
||||
$presentation-line-height: 1.35;
|
||||
/*-- scss:rules --*/
|
||||
:root { --outline-width: 240px; }
|
||||
.reveal { width: calc(100% - var(--outline-width)); margin-left: var(--outline-width); }
|
||||
.reveal .slides section.slide { box-sizing: border-box; height: 900px; padding: 88px 85px 104px; }
|
||||
.reveal .slides section.slide h2 { margin: 0 0 40px; line-height: 1.15; }
|
||||
.reveal .slides section.slide h3 { color: #529991; margin-bottom: 24px; }
|
||||
.reveal .slides section.slide p { margin-bottom: 28px; }
|
||||
.reveal .slides section.slide li { margin-bottom: 26px; }
|
||||
.reveal .slides section.slide ul, .reveal .slides section.slide ol { margin-left: 1.1em; }
|
||||
.reveal .slides section.slide .columns { gap: 60px; }
|
||||
.reveal a { text-decoration: underline; text-underline-offset: .12em; }
|
||||
.reveal .slides section.slide .aside { position: static !important; width: auto !important; font-size: 23px; line-height: 1.3; color: #444; margin-top: 26px; }
|
||||
.reveal .slides section.slide .aside p { margin-bottom: 10px; }
|
||||
.reveal .slides section.slide aside:not(.notes) { position:static !important; display:block; width:auto !important; font-size:23px; line-height:1.3; color:#444; margin-top:26px; }
|
||||
.reveal .slides section.slide aside:not(.notes) p { margin-bottom:10px; }
|
||||
.reveal .slides section.slide img { object-fit: contain; max-height: 580px; margin: 0; }
|
||||
.reveal .slides section.slide figure { margin: 0; }
|
||||
.reveal .slides section.slide figcaption { display: none; }
|
||||
.reveal .slides section.evidence { padding-top: 78px; }
|
||||
.reveal .slides section.evidence h2 { margin-bottom: 18px; }
|
||||
.reveal .slides section.evidence .aside { margin-top: 12px; font-size: 21px; }
|
||||
.reveal .slides section.evidence aside:not(.notes) { margin-top:12px; font-size:21px; }
|
||||
.reveal .slides section.evidence img { max-height:540px; }
|
||||
.reveal .slides section.evidence .quarto-figure { margin-bottom: 0; }
|
||||
.reveal .slides section.major-divider { padding: 180px 100px 130px; text-align: center; display: flex !important; align-items: center; justify-content: center; }
|
||||
.reveal .slides section.major-divider h1 { color: #000; font-size: 100px; line-height: 1.15; max-width: 1300px; }
|
||||
.reveal .slides section.major-divider h1 span { background: #FFAB40; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 12px; }
|
||||
.reveal .slides section#title-slide { box-sizing:border-box; height:900px; padding: 200px 140px 120px; text-align: center; }
|
||||
.reveal .slides section#title-slide h1 { font-size: 85px; line-height: 1.12; margin-bottom: 46px; }
|
||||
.reveal .slides section#title-slide .subtitle { font-size: 43px; color: #529991; }
|
||||
.reveal .slides section#title-slide .quarto-title-author-name, .reveal .slides section#title-slide .date { font-size: 30px; }
|
||||
.reveal .slides section.contents { padding-top: 95px; }
|
||||
.reveal .slides section.contents ul { list-style: none; margin-left: 0; }
|
||||
.reveal .slides section.contents li { font-size: 30px; margin-bottom: 28px; }
|
||||
.reveal .slides section.statement p { font-size: 43px; line-height: 1.4; margin-bottom: 35px; }
|
||||
.reveal .slides section.statement { padding-top: 110px; }
|
||||
.reveal .slides section.standalone { padding-top: 100px; }
|
||||
.reveal .slides section#disclaimer p { font-size: 32px; }
|
||||
.reveal .slides section#sources li { font-size: 27px; }
|
||||
.reveal .prompt-example { font-size: 39px; line-height: 1.45; border-left: 7px solid #529991; padding: 16px 34px; margin-top: 48px; }
|
||||
.reveal .es-return { position: absolute; top: 20px; left: 0; width: 100%; text-align: center; font-size: 23px; color: #595959; line-height: 1.1; }
|
||||
.reveal .es-footer { position: absolute; bottom: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 24px; box-sizing: border-box; }
|
||||
.reveal .es-footer a { color: inherit; }
|
||||
#es-outline { position: fixed; left: 0; top: 0; bottom: 0; width: var(--outline-width); box-sizing: border-box; z-index: 40; background: #fff; border-right: 1px solid #ccc; padding: 18px 12px; overflow-y: auto; font: 13px/1.3 Arial,sans-serif; }
|
||||
#es-outline .outline-title { color: #529991; font-size: 18px; font-weight: bold; margin: 0 0 12px; }
|
||||
#es-outline a { display: block; color: #222; text-decoration: none; padding: 7px 8px; border-left: 4px solid transparent; }
|
||||
#es-outline a:hover, #es-outline a:focus { background: #eee; outline: 2px solid #529991; }
|
||||
#es-outline a[aria-current="page"] { font-weight: bold; background: #edf5f4; }
|
||||
#es-outline details { margin: 4px 0; }
|
||||
#es-outline summary { cursor: pointer; font-weight: bold; padding: 7px 0; border-bottom: 3px solid var(--section-color); }
|
||||
#es-outline details a { font-size: 12px; }
|
||||
#es-outline .outline-help { font-size: 11px; color: #595959; margin-top: 16px; }
|
||||
#es-outline-toggle { position: fixed; top: 8px; left: calc(var(--outline-width) + 8px); z-index: 45; background: #fff; color: #333; border: 1px solid #bbb; padding: 6px 10px; font: 12px Arial,sans-serif; cursor: pointer; }
|
||||
#chart-viewer { position:fixed; inset:0; z-index:100; background:#fff; overflow:auto; text-align:center; padding:12px; }
|
||||
#chart-viewer img { display:block; margin:12px auto; width:auto; height:auto; max-width:100%; }
|
||||
#chart-viewer button { position:sticky; top:0; display:block; margin-left:auto; background:white; border:1px solid #555; padding:10px 18px; cursor:pointer; }
|
||||
.reveal .chart-open { display:block; margin:8px auto 0; background:transparent; color:#0000FF; font:21px Arial; border:0; text-decoration:underline; cursor:pointer; }
|
||||
body.outline-hidden { --outline-width: 0px; }
|
||||
body.outline-hidden #es-outline { display: none; }
|
||||
@media (max-width: 800px) { :root { --outline-width: 0px; } #es-outline { display:none; width: 240px; } body.mobile-outline #es-outline { display:block; } }
|
||||
.slide-menu { transition:none !important; }
|
||||
.slide-menu--left.active { transform:translateX(0) !important; }
|
||||
@media print { #es-outline, #es-outline-toggle { display:none !important; } .reveal { width:100%; margin-left:0; } }
|
||||
body.print-pdf #es-outline, body.print-pdf #es-outline-toggle { display:none; }
|
||||
body.print-pdf .reveal { width:100%; margin-left:0; }
|
||||
|
||||
|
||||
/* Editable quantitative charts and flat process layouts. */
|
||||
.reveal .slides section.slide .data-bars { margin:25px 0 20px; }
|
||||
.reveal .slides section.slide .bar-row { display:grid;grid-template-columns:440px 1fr;gap:28px;align-items:center;margin:25px 0; }
|
||||
.reveal .slides section.slide .bar-label { font-size:30px;line-height:1.2; }
|
||||
.reveal .slides section.slide .bar-series { padding-right:100px; }
|
||||
.reveal .slides section.slide .bar-line { display:flex;align-items:center;height:37px;gap:14px;margin:5px 0; }
|
||||
.reveal .slides section.slide .bar-fill { display:block;min-width:2px;height:32px;background:#529991; }
|
||||
.reveal .slides section.slide .bar-comparison { background:#FFAB40; }
|
||||
.reveal .slides section.slide .bar-value { font-size:29px;white-space:nowrap; }
|
||||
.reveal .slides section.slide .bar-legend { font-size:25px;color:#444;margin-bottom:32px; }
|
||||
.reveal .slides section.slide table { width:100%;font-size:31px;line-height:1.28;border-collapse:collapse; }
|
||||
.reveal .slides section.slide table th { color:#529991; }
|
||||
.reveal .slides section.slide table th,.reveal .slides section.slide table td { padding:18px 16px;vertical-align:top; }
|
||||
.reveal .slides section.slide .process-list { counter-reset:step;list-style:none;margin:28px 0; }
|
||||
.reveal .slides section.slide .process-list li { counter-increment:step;border-bottom:1px solid #ddd;padding:12px 0 18px 64px;position:relative;margin:0; }
|
||||
.reveal .slides section.slide .process-list li::before { content:counter(step);position:absolute;left:0;color:#529991;font-weight:bold; }
|
||||
.reveal .slides section.slide .process-takeaway { color:#529991;font-size:31px;margin-top:34px; }
|
||||
.reveal .slides section.slide .large-stat { font-size:140px;font-weight:700;color:#529991;line-height:1.1; }
|
||||
.reveal .slides section.slide .large-stat p { margin:0 0 12px; }
|
||||
.reveal .slides section.source-list li { font-size:29px;margin-bottom:26px; }
|
||||
.reveal .slides section#infrastructure-history .bar-row { margin:16px 0; }
|
||||
.reveal .slides section#infrastructure-history .bar-label { font-size:28px; }
|
||||
.reveal .slides section#trust-comparisons .bar-row { margin:32px 0; }
|
||||
.reveal .slides section#early-career p { margin-bottom:20px; }
|
||||
|
||||
/* Reveal's print stylesheet resets padding; retain the ES slide geometry. */
|
||||
@media print {
|
||||
.reveal .slides section.slide { padding:88px 85px 104px !important;box-sizing:border-box !important; }
|
||||
.reveal .slides section.major-divider { padding:180px 100px 130px !important; }
|
||||
.reveal .slides section#title-slide { padding:200px 140px 120px !important;box-sizing:border-box !important; }
|
||||
.reveal .slides section.evidence { padding-top:78px !important; }
|
||||
.reveal .slides section.statement { padding-top:110px !important; }
|
||||
.reveal .slides section.standalone { padding-top:100px !important; }
|
||||
.reveal .chart-open,.reveal .es-return { display:none !important; }
|
||||
}
|
||||
@media print {
|
||||
html.print-pdf .reveal .slides .pdf-page > section.slide:not(.stack) { padding:88px 85px 104px !important;box-sizing:border-box !important; }
|
||||
html.print-pdf .reveal .slides .pdf-page > section.slide.major-divider:not(.stack) { padding:180px 100px 130px !important;display:flex !important;align-items:center !important;justify-content:center !important; }
|
||||
html.print-pdf .reveal .slides .pdf-page > section.slide.evidence:not(.stack) { padding-top:78px !important; }
|
||||
html.print-pdf .reveal .slides .pdf-page > section.slide.standalone:not(.stack) { padding-top:100px !important; }
|
||||
html.print-pdf .reveal .slides .pdf-page > section.slide.statement:not(.stack) { padding-top:110px !important; }
|
||||
}
|
||||
Reference in new issue
Block a user