Where will you go?
[[Forest Path]]
[[Off Trail]](Set: $OnPath to true)
[[Continue]](Set: $OnPath to false)
[[Continue]](If: $OnPath is true) [(Goto: "Forest End")]
(Else:) [(Goto: "Lost")]You've reached the end of the Forest.You are Lost. Maybe you should have stuck to the path...
[[Start]]
<script>
function EmbedTwineUpdateHeight(){
var passage = document.getElementsByTagName("tw-passage")[0];
if (passage === undefined){//SugarCube
passage = document.getElementById("passages");
}
var newHeight = passage.offsetHeight;
if(newHeight<500){newHeight=500;}
window.parent.postMessage(["setHeight", newHeight], "*");
console.log(newHeight);
}
setTimeout(EmbedTwineUpdateHeight, 50);
</script>