Skip to content

Instantly share code, notes, and snippets.

@kyle-seongwoo-jun
Created March 4, 2021 04:34
Show Gist options
  • Save kyle-seongwoo-jun/235eaef1c6551b0dfdf9b090f8daf37f to your computer and use it in GitHub Desktop.
Save kyle-seongwoo-jun/235eaef1c6551b0dfdf9b090f8daf37f to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aurender OAUTH</title>
<style type="text/css">
a {
color: black;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
<script>
function copyToClipboard(id)
{
var r = document.createRange();
r.selectNode(document.getElementById(id));
window.getSelection().removeAllRanges();
window.getSelection().addRange(r);
document.execCommand('copy');
window.getSelection().removeAllRanges();
alert('copied.')
}
new URLSearchParams(window.location.search).forEach((value,key) => document.write(`<h3>${key}</h3><a href="#" id="${key}" title="copy" onclick="copyToClipboard('${key}');return false;">${value}</a>`))
</script>
</head>
<body style="margin: 10vh;">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment