summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/index.html b/index.html
index 3483ff1..38029f9 100644
--- a/index.html
+++ b/index.html
@@ -1,6 +1,11 @@
<title>Recursion</title>
<h1>recursion</h1>
-<h3>Note: This site works best in Firefox</h3>
<h2>Noun. Pronounciation: <i>ri-ker-zhen</i></h2>
<h2>Definition of recursion:</h2>
-<iframe src="recursion.html" width=90% height=90%></iframe>
+<iframe src="recursion.html" width=90% height=90%></iframe>
+<!-- https://www.bryanbraun.com/2021/03/24/infinitely-nested-iframes/ -->
+<script>
+const iframeEl = document.querySelector('iframe');
+const nextQueryValue = !location.search ? 1 : Number(location.search.split("?").pop()) + 1;
+iframeEl.src = `index.html?${nextQueryValue}`;
+</script>