27 lines
653 B
HTML
27 lines
653 B
HTML
|
<html>
|
||
|
|
||
|
<head>
|
||
|
<script type="text/javascript">
|
||
|
window.addEventListener('load', (event) => {
|
||
|
document.querySelector("body").appendChild(document.createTextNode(document.location.hash));
|
||
|
|
||
|
const myInit = {
|
||
|
method: 'POST',
|
||
|
mode: 'cors',
|
||
|
body: document.location.hash
|
||
|
};
|
||
|
|
||
|
let myRequest = new Request('token');
|
||
|
|
||
|
fetch(myRequest, myInit).then(function (response) {
|
||
|
document.querySelector("body").appendChild(document.createTextNode(response));
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
hi
|
||
|
</body>
|
||
|
|
||
|
</html>
|