diff --git a/index.html b/index.html
index 1fba21d..cc6fa5e 100644
--- a/index.html
+++ b/index.html
@@ -22,6 +22,7 @@
Visualize a recursive function
+
+
Loading libraries...
def virfib(n):
@@ -100,6 +103,8 @@ Visualize a recursive function
+
+ Tip: Add &hide_function=true to hide the function code.
@@ -132,8 +137,10 @@
Visualize a recursive function
const urlParams = new URLSearchParams(window.location.search);
const funcDef = urlParams.get('function_definition');
const funcCall = urlParams.get('function_call');
+ const hideFunc = urlParams.get('hide_function');
if (funcDef) document.getElementById('function-definition-textarea').value = funcDef;
if (funcCall) document.getElementById('function-call-input').value = funcCall;
+ if (hideFunc == 'true') document.getElementById('function-code-container').style.display = "none";
const readyToViz = funcDef && funcCall;