Skip to content

Instantly share code, notes, and snippets.

@anonymoussprocket
Created April 13, 2021 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymoussprocket/803f0f7475cf70dfc10002e397db4fbe to your computer and use it in GitHub Desktop.
Save anonymoussprocket/803f0f7475cf70dfc10002e397db4fbe to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
#hen-embed {
border: 1px solid black;
height: 800px;
width: 500px;
}
</style>
<script>
function update() {
alert(document.getElementById('objkt_id').value);
document.getElementById('hen-embed').src = `https://www.hicetnunc.xyz/objkt/${document.getElementById('objkt_id').value}`;
}
</script>
</head>
<body>
<form>
<input type="number" id="objkt_id" />
<button onclick="update(); return false;">Update</button>
</form>
<iframe id="hen-embed" src="https://www.hicetnunc.xyz/objkt/31308"></iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment