1
1
mirror of https://github.com/bumi/lntip synced 2026-02-14 05:07:49 +00:00

Refactor to mimic the lnd rest API a bit

This commit is contained in:
2019-02-19 20:55:07 +01:00
parent d3e7dc0668
commit 01fb7be447
5 changed files with 126 additions and 111 deletions

View File

@@ -5,8 +5,8 @@
<title></title>
</head>
<body>
<script src="http://localhost:1323/static/lntip.js" lntip-host="http://localhost:1323"></script>
<script lntip-host="http://localhost:1323" src="http://localhost:1323/static/lntip.js" id="lntip-script"></script>
<a href="#" onclick="javascript:new LnTip(1000, 'thanks');return false;">Tip me</a>
<a href="#" onclick="javascript:new LnTip({ value: 1000, memo: 'thanks' }).request();return false;">Tip me</a>
</body>
</html>