diff options
author | Anthony Wang | 2023-08-02 17:35:44 +0000 |
---|---|---|
committer | Anthony Wang | 2023-08-02 17:35:44 +0000 |
commit | 98eabeaa5b760bce5b1e7fbe4233188552aab332 (patch) | |
tree | 5acdc38268e3b07668a468056ad4b75d2d7b87ea /index.html | |
parent | 790a4ba99708b55936ce85e36914d5b8a3bd0ba8 (diff) |
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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> |