aboutsummaryrefslogtreecommitdiffstats
path: root/assets/js/pages/latest.js
diff options
context:
space:
mode:
authorsillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
committersillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
commit898b52edcb47bcb3e9d6106e74ca73e74ea01e70 (patch)
tree85c6ee5ad58b860144551184d4cf86b560c62b91 /assets/js/pages/latest.js
downloadwww-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.tar.gz
www-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.zip
import live www.sillylaird.ca webrootHEADmain
Diffstat (limited to 'assets/js/pages/latest.js')
-rw-r--r--assets/js/pages/latest.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/assets/js/pages/latest.js b/assets/js/pages/latest.js
new file mode 100644
index 0000000..85d1595
--- /dev/null
+++ b/assets/js/pages/latest.js
@@ -0,0 +1,10 @@
+(function () {
+ function sendHeight() {
+ const height = document.body.scrollHeight;
+ window.parent.postMessage({ changelogHeight: height }, "*");
+ }
+ window.addEventListener("load", sendHeight);
+ if (typeof ResizeObserver !== "undefined") {
+ new ResizeObserver(sendHeight).observe(document.body);
+ }
+})();