Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<html>
<body>
<input type="text" id="username" />
<input type="text" id="subtext"/>
<br>
<button type="button" id="create">Create</button>
</body>
</html>
<script type="text/javascript">
var username = document.getElementById("username").value;
var subtext = document.getElementById("subtext").value;
var url = "https://devbanner.center/generate/banner?username="+username+"&subtext="+subtext;
document.getElementById("create").onclick = function () {
location.href = url;
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment