Skip to content

Commit

Permalink
new iframe sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Tilford committed Jan 25, 2024
1 parent 98052d6 commit 2763036
Show file tree
Hide file tree
Showing 21 changed files with 83 additions and 46 deletions.
4 changes: 4 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ website:

format:
html:
include-in-header:
- text: |
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>
theme:
- custom.scss
- pulse
Expand Down
2 changes: 2 additions & 0 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="/personal-rhys-tilford/js/AutoFrameResizer.js"></script>
<script src="/personal-rhys-tilford/js/getYear.js"></script>


</head>
Expand Down
2 changes: 2 additions & 0 deletions docs/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
2 changes: 2 additions & 0 deletions docs/articles/article_01/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
2 changes: 2 additions & 0 deletions docs/articles/article_02/article_02.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
2 changes: 2 additions & 0 deletions docs/articles/article_02/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
2 changes: 2 additions & 0 deletions docs/articles/article_03/cantorMemes.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
2 changes: 2 additions & 0 deletions docs/articles/article_03/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>
Expand Down
2 changes: 2 additions & 0 deletions docs/articles/article_03/shock.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
30 changes: 16 additions & 14 deletions docs/articles/article_04/index.html

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/articles/article_05/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
2 changes: 2 additions & 0 deletions docs/articles/article_06/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
2 changes: 2 additions & 0 deletions docs/articles/article_07/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
2 changes: 2 additions & 0 deletions docs/articles/article_08/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
2 changes: 2 additions & 0 deletions docs/articles/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>
Expand Down
28 changes: 14 additions & 14 deletions docs/articles/index.xml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/contactMe.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
2 changes: 2 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
gtag('js', new Date());
gtag('config', 'G-5R6TTB9D5X', { 'anonymize_ip': true});
</script>
<script src="js/AutoFrameResizer.js"></script>
<script src="js/getYear.js"></script>


</head>
Expand Down
1 change: 1 addition & 0 deletions docs/js/getYear.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
document.getElementById("copyright").innerHTML = "Rhys Tilford | © 2023 - " + new Date().getFullYear();
30 changes: 15 additions & 15 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,62 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/index.html</loc>
<lastmod>2024-01-25T21:20:21.670Z</lastmod>
<lastmod>2024-01-25T23:50:01.038Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/index.html</loc>
<lastmod>2024-01-25T21:20:20.755Z</lastmod>
<lastmod>2024-01-25T23:49:01.260Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/article_07/index.html</loc>
<lastmod>2024-01-25T21:20:18.357Z</lastmod>
<lastmod>2024-01-25T23:48:59.124Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/article_05/index.html</loc>
<lastmod>2024-01-25T21:20:16.470Z</lastmod>
<lastmod>2024-01-25T23:48:58.082Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/article_03/shock.html</loc>
<lastmod>2024-01-25T21:20:04.182Z</lastmod>
<lastmod>2024-01-25T23:48:48.452Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/article_03/cantorMemes.html</loc>
<lastmod>2024-01-25T21:20:01.508Z</lastmod>
<lastmod>2024-01-25T23:48:47.188Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/article_02/article_02.html</loc>
<lastmod>2024-01-25T21:19:59.613Z</lastmod>
<lastmod>2024-01-25T23:48:45.988Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/about.html</loc>
<lastmod>2024-01-25T21:19:57.104Z</lastmod>
<lastmod>2024-01-25T23:48:44.189Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/article_01/index.html</loc>
<lastmod>2024-01-25T21:19:58.749Z</lastmod>
<lastmod>2024-01-25T23:48:45.302Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/article_02/index.html</loc>
<lastmod>2024-01-25T21:20:00.740Z</lastmod>
<lastmod>2024-01-25T23:48:46.798Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/article_03/index.html</loc>
<lastmod>2024-01-25T21:20:03.470Z</lastmod>
<lastmod>2024-01-25T23:48:48.077Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/article_04/index.html</loc>
<lastmod>2024-01-25T21:20:15.384Z</lastmod>
<lastmod>2024-01-25T23:48:57.340Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/article_06/index.html</loc>
<lastmod>2024-01-25T21:20:17.305Z</lastmod>
<lastmod>2024-01-25T23:48:58.530Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/articles/article_08/index.html</loc>
<lastmod>2024-01-25T21:20:18.914Z</lastmod>
<lastmod>2024-01-25T23:48:59.568Z</lastmod>
</url>
<url>
<loc>https://rctilford.github.io/personal-rhys-tilford/contactMe.html</loc>
<lastmod>2024-01-25T21:20:21.228Z</lastmod>
<lastmod>2024-01-25T23:49:01.664Z</lastmod>
</url>
</urlset>
6 changes: 3 additions & 3 deletions js/AutoFrameSizer.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// This code is designed to resize the iframe to the height of the content


framer = function() {

let iframe = document.getElementsByTagName('iframe');
iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
}
iframe.style.height = iframe.contentWindow.document.body.height + 'px';




Expand Down

0 comments on commit 2763036

Please sign in to comment.