1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-09 17:45:02 +09:00

challenge popup

This commit is contained in:
Andrew Simachev 2023-12-09 16:02:52 +01:00
parent 6ce14f49b9
commit 01dc24cb59
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
2 changed files with 35 additions and 8 deletions

33
dist/challenge/index.html vendored Normal file
View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body { font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; }
.content { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.title { font-size: 22px; line-height: 28px; letter-spacing: -0.48px; font-weight: 700; }
</style>
</head>
<body>
<div class="content">
<div class="title">Challenge</div>
<div id="challenge"></div>
</div>
<script type="text/javascript">
const param = getParam();
document.getElementById('challenge').innerHTML = param.challenge;
function getParam () {
var a = location.search.replace(/^\?/, '').split('&');
var param = {};
a.forEach((s) => {
var kv = s.split('=');
param[kv[0]] = kv[1];
});
return param;
};
</script>
</body>
</html>