Skip to content

Instantly share code, notes, and snippets.

@aarqon
Created June 1, 2017 02:19
Show Gist options
  • Select an option

  • Save aarqon/60e01ab24b93c29b8de78e8a3e01f146 to your computer and use it in GitHub Desktop.

Select an option

Save aarqon/60e01ab24b93c29b8de78e8a3e01f146 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Raquat.ro</title>
<script>
function updateFrame(page) {
switch (page) {
case 'lewdgen':
document.getElementById("frame").src = "https://raquat.ro/lewdgen.html";
document.getElementById("title").innerHTML = "Lewdgen";
document.getElementById("subtitle").innerHTML = "an nsfw booru-style tag generator";
break;
case 'commands':
document.getElementById("frame").src = "https://raquat.ro/commands.html?room=104443849350332416";
document.getElementById("title").innerHTML = "Discord Commands";
document.getElementById("subtitle").innerHTML = "";
break;
default:
document.getElementById("frame").src = "about:blank";
};
}
</script>
<style>
iframe {
margin: 0;
padding: 0;
border: none;
width: 100%;
height: 100%;
}
header {
height: 70px;
}
</style>
</head>
<body>
<header>
<img src="./img/logo.svg">
<span id="title"></span>
<span id="subtitle"></span>
<button type="button" onclick="updateFrame('lewdgen')">Lewdgen</button>
<button type="button" onclick="updateFrame('commands')">Discord Commands</button>
<a id ="github" href="https://github.com/aarqon" target="_blank" style="text-decoration:none;"><img src="./img/GitHub-Mark-32px.png" alt="GitHub"></a>
</header>
<iframe id="frame" src="about:blank"></iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment