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:
parent
6ce14f49b9
commit
01dc24cb59
2 changed files with 35 additions and 8 deletions
33
dist/challenge/index.html
vendored
Normal file
33
dist/challenge/index.html
vendored
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue