Skip to content

Commit

Permalink
Deploying to gh-pages from @ e86a4cd 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmann100 committed Nov 30, 2024
1 parent a89fb90 commit dffce95
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 34 deletions.
51 changes: 37 additions & 14 deletions fragments/resume.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,54 @@
aspect-ratio: 1 / 1.3;
border: 0;
}

.status {
opacity: 0.7;
margin-bottom: 1rem;
}
</style>
<!--{{/head}}-->
<!--{{main}}-->
<a
class="download"
href="https://docs.google.com/document/d/1LMeAQejdKMmpCnJWJKiW07LByC2kkj8UoMS4PSEpl68/export?format=pdf"
href="https://docs.google.com/document/d/1NqBqVn4WvAto6_a7Un78ib-JR2hdWooD5XyfY1EP9N0/export?format=pdf"
>
<button class="buttonsize-small">📥&ensp;Download a PDF</button>
</a>
<span class="status"
>Loading PDF - this may take a few tries&hellip;<br /><noscript
><a href=".">Reload manually</a></noscript
></span
>
<iframe
width="500"
height="500"
src="https://docs.google.com/viewer?embedded=true&url=https://docs.google.com/document/d/1LMeAQejdKMmpCnJWJKiW07LByC2kkj8UoMS4PSEpl68/export?format=pdf"
></iframe>
src="https://docs.google.com/viewer?embedded=true&url=https://docs.google.com/document/d/1NqBqVn4WvAto6_a7Un78ib-JR2hdWooD5XyfY1EP9N0/export?format=pdf"
>
</iframe>
<script>
// intercept print shortcut to open printable viewer
// standard drive preview viewer is not printable for some reason!
// so use this workaround which previews the pdf it just exported
window.addEventListener('keydown', (e) => {
if ((e.ctrlKey || e.metaKey) && e.key === 'p') {
e.preventDefault();
window.open(
'https://docs.google.com/viewerng/viewer?url=https://docs.google.com/document/d/1LMeAQejdKMmpCnJWJKiW07LByC2kkj8UoMS4PSEpl68/export?format%3Dpdf'
);
}
});
// fixme: needs to execute in its own scope since unloading / reloading calls 'let interval' twice
// not sure how to address this, ideally every script is a module and we just make the pattern
// used in godango part of the spec
{
let interval = setInterval(() => (document.querySelector('iframe').src += ''), 2000);

document.querySelector('iframe').addEventListener('load', (ev) => {
clearInterval(interval);
document.querySelector('.status').remove();
});

// intercept print shortcut to open printable viewer
// standard drive preview viewer is not printable for some reason!
// so use this workaround which previews the pdf it just exported
window.addEventListener('keydown', (e) => {
if ((e.ctrlKey || e.metaKey) && e.key === 'p') {
e.preventDefault();
window.open(
'https://docs.google.com/viewerng/viewer?url=https://docs.google.com/document/d/1NqBqVn4WvAto6_a7Un78ib-JR2hdWooD5XyfY1EP9N0/export?format%3Dpdf'
);
}
});
}
</script>
<!--{{/main}}-->
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<!--{{debug}}-->
<meta name="build-version" content="6ecf8a465863e250a75c8241b1e87a90e384d4c9">
<meta name="build-version" content="e86a4cd04460251f7dd6105a05eae6c0aaa89400">
<!--{{/debug}}-->
<meta charset="UTF-8" />
<!-- <meta name="color-scheme" content="light dark" /> -->
Expand Down
53 changes: 38 additions & 15 deletions resume.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<!--{{debug}}-->
<meta name="build-version" content="6ecf8a465863e250a75c8241b1e87a90e384d4c9">
<meta name="build-version" content="e86a4cd04460251f7dd6105a05eae6c0aaa89400">
<!--{{/debug}}-->
<meta charset="UTF-8" />
<!-- <meta name="color-scheme" content="light dark" /> -->
Expand Down Expand Up @@ -38,6 +38,11 @@
aspect-ratio: 1 / 1.3;
border: 0;
}

.status {
opacity: 0.7;
margin-bottom: 1rem;
}
</style>
<!--{{/head}}-->
</head>
Expand Down Expand Up @@ -135,27 +140,45 @@ <h1>
<!--{{main}}-->
<a
class="download"
href="https://docs.google.com/document/d/1LMeAQejdKMmpCnJWJKiW07LByC2kkj8UoMS4PSEpl68/export?format=pdf"
href="https://docs.google.com/document/d/1NqBqVn4WvAto6_a7Un78ib-JR2hdWooD5XyfY1EP9N0/export?format=pdf"
>
<button class="buttonsize-small">📥&ensp;Download a PDF</button>
</a>
<span class="status"
>Loading PDF - this may take a few tries&hellip;<br /><noscript
><a href=".">Reload manually</a></noscript
></span
>
<iframe
width="500"
height="500"
src="https://docs.google.com/viewer?embedded=true&url=https://docs.google.com/document/d/1LMeAQejdKMmpCnJWJKiW07LByC2kkj8UoMS4PSEpl68/export?format=pdf"
></iframe>
src="https://docs.google.com/viewer?embedded=true&url=https://docs.google.com/document/d/1NqBqVn4WvAto6_a7Un78ib-JR2hdWooD5XyfY1EP9N0/export?format=pdf"
>
</iframe>
<script>
// intercept print shortcut to open printable viewer
// standard drive preview viewer is not printable for some reason!
// so use this workaround which previews the pdf it just exported
window.addEventListener('keydown', (e) => {
if ((e.ctrlKey || e.metaKey) && e.key === 'p') {
e.preventDefault();
window.open(
'https://docs.google.com/viewerng/viewer?url=https://docs.google.com/document/d/1LMeAQejdKMmpCnJWJKiW07LByC2kkj8UoMS4PSEpl68/export?format%3Dpdf'
);
}
});
// fixme: needs to execute in its own scope since unloading / reloading calls 'let interval' twice
// not sure how to address this, ideally every script is a module and we just make the pattern
// used in godango part of the spec
{
let interval = setInterval(() => (document.querySelector('iframe').src += ''), 2000);

document.querySelector('iframe').addEventListener('load', (ev) => {
clearInterval(interval);
document.querySelector('.status').remove();
});

// intercept print shortcut to open printable viewer
// standard drive preview viewer is not printable for some reason!
// so use this workaround which previews the pdf it just exported
window.addEventListener('keydown', (e) => {
if ((e.ctrlKey || e.metaKey) && e.key === 'p') {
e.preventDefault();
window.open(
'https://docs.google.com/viewerng/viewer?url=https://docs.google.com/document/d/1NqBqVn4WvAto6_a7Un78ib-JR2hdWooD5XyfY1EP9N0/export?format%3Dpdf'
);
}
});
}
</script>
<!--{{/main}}-->
</main>
Expand Down
2 changes: 1 addition & 1 deletion ripple.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<!--{{debug}}-->
<meta name="build-version" content="6ecf8a465863e250a75c8241b1e87a90e384d4c9">
<meta name="build-version" content="e86a4cd04460251f7dd6105a05eae6c0aaa89400">
<!--{{/debug}}-->
<meta charset="UTF-8" />
<!-- <meta name="color-scheme" content="light dark" /> -->
Expand Down
2 changes: 1 addition & 1 deletion utilities/clipboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<!--{{debug}}-->
<meta name="build-version" content="6ecf8a465863e250a75c8241b1e87a90e384d4c9">
<meta name="build-version" content="e86a4cd04460251f7dd6105a05eae6c0aaa89400">
<!--{{/debug}}-->
<meta charset="UTF-8" />
<!-- <meta name="color-scheme" content="light dark" /> -->
Expand Down
2 changes: 1 addition & 1 deletion utilities/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<!--{{debug}}-->
<meta name="build-version" content="6ecf8a465863e250a75c8241b1e87a90e384d4c9">
<meta name="build-version" content="e86a4cd04460251f7dd6105a05eae6c0aaa89400">
<!--{{/debug}}-->
<meta charset="UTF-8" />
<!-- <meta name="color-scheme" content="light dark" /> -->
Expand Down
2 changes: 1 addition & 1 deletion utilities/godango.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<!--{{debug}}-->
<meta name="build-version" content="6ecf8a465863e250a75c8241b1e87a90e384d4c9">
<meta name="build-version" content="e86a4cd04460251f7dd6105a05eae6c0aaa89400">
<!--{{/debug}}-->
<meta charset="UTF-8" />
<!-- <meta name="color-scheme" content="light dark" /> -->
Expand Down

0 comments on commit dffce95

Please sign in to comment.