-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (50 loc) · 1.86 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" "="">
<title>tipnem Payment</title>
<script type="text/javascript">
function create(){
var to = encodeURIComponent(form1.to.value);
var amount = form1.amount.value;
var name = encodeURIComponent(form1.name.value);
var comment = encodeURIComponent(form1.comment.value);
var url = "https://twitter.com/intent/tweet?text=%40tipnem%20tip%20"+to+"%20"+amount+"%20"+name+"%20"+comment+"&hashtags=tipnem%e6%b1%ba%e6%b8%88";
var qr = "http://chart.apis.google.com/chart?chs=547x547&cht=qr&chl="+encodeURIComponent(url);
document.getElementById("disp").style.display="block";
qrcode.src=qr;
}
</script>
<link href="//cdn.muicss.com/mui-0.9.28/css/mui.min.css" rel="stylesheet" type="text/css" />
<script src="//cdn.muicss.com/mui-0.9.28/js/mui.min.js"></script>
</head>
<body>
<div class="mui-container">
<div class="mui-panel">
<form name="form1" action="index.html">
<div class="mui-textfield" name=input" >
<input type="text" name="to" value="@soralis_nem" required>
<label>送る相手</label>
</div>
<div class="mui-textfield" name=input" >
<input type="text" name="amount" value="0.01" required>
<label>数量</label>
</div>
<div class="mui-textfield" name=input" >
<input type="text" name="name" value="xem" required>
<label>mosaic名</label>
</div>
<div class="mui-textfield" name=input" >
<input type="text" name="comment" value="">
<label>コメント</label>
</div>
<button type="button" onclick="create() " class="mui-btn mui-btn--primary" >作成</button>
</form>
</div>
<div class="mui-panel" id="disp" style="display: none;">
<img src="" width="256" height="256" name="qrcode">
</div>
</div>
</body>
</html>