Skip to content

Commit

Permalink
Merge pull request #116 from nearprotocol/new-login-change
Browse files Browse the repository at this point in the history
change login index.html
  • Loading branch information
vgrichina authored Aug 27, 2019
2 parents 6b0bf69 + 6bc244e commit 9b34d22
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions blank_project/src/wallet/login/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
</head>
<body style="background: #fff; margin-top: 3em">
<div>Please run the following command in shell, then enter account id here.
<div>Please run the following command in shell, then enter account id here. masterAccountId default: test.near
</div>
<div>
<code id="shell-command"></code>
</div>
<input type="text" id="accountId" name="accountId" placeholder="Account id"></input>
<button type="button" onClick="done()">done</button>
<script src="https://cdn.jsdelivr.net/gh/nearprotocol/nearlib@82eed3127d56984e850cf1581344bc098b9f83ab/dist/nearlib.js"></script>
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<script src="./config.js"></script>
<script>
const currentUrl = new URL(window.location.href);
const message = `near create_account {newAccountId} --masterAccount {masterAccountId} --publicKey ${currentUrl.searchParams.get('public_key')} --initialAmount 1000`;
const message = `NODE_ENV=local near create_account {newAccountId} --masterAccount {masterAccountId} --publicKey ${currentUrl.searchParams.get('public_key')} --initialAmount 10000000000000000000`;
document.getElementById('shell-command').innerText = message;

function done() {
Expand All @@ -28,4 +25,4 @@
}
</script>
</body>
</html>
</html>

0 comments on commit 9b34d22

Please sign in to comment.