-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
91 lines (91 loc) · 5.03 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html>
<head>
<title>nostr-post-checker</title>
<meta http-equiv="Content-type" content="text/html; charset=utf8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://cdn.jsdelivr.net/npm/@nikolat/[email protected]"></script>
</head>
<body>
<h1>nostr-post-checker<span class="makibishi" data-relays="wss://yabu.me,wss://relay.damus.io" data-url="https://koteitan.github.io/beta/nostr-post-checker/" data-content="🤙" data-allow-anonymous-reaction="true"></span></h1>
<form name=form0 class="fullwidth inputform">
<span class="langja">イベントがどのリレーに存在し、どのリレーに存在していないかを確認するサイトです。</span>
<span class="langen">You can check which relay servers the event exists on and which do not.</span>
<table style="width:100%">
<tr>
<td style="width:5em"><label for="eid">event id:</label></td>
<td><input id="eid" name="eid" type="text" style="width:100%" value="note15zl6ruufd5hcj0xmhq9r8yczjy2xt278qzn97e9zuc3dg36lkufq4326xp"/></td>
</tr>
<tr>
<td><label for="kind">kind:</label></td>
<td><input id="kind" name="kind" type="text" style="width:100%" value="1"/></td>
</tr>
</table>
<div>
<label for="relayliststr">relays:</label><br>
<span class="langen"><input type="button" value="Get your relay list" onclick="javascript:put_my_relays(3);"> by NIP-07 and kind:3 content</span>
<span class="langja"><input type="button" value="リレーリストを取得" onclick="javascript:put_my_relays(3);"> (NIP-07, kind:3 content)</span>
<br>
<span class="langen"><input type="button" value="Get your relay list" onclick="javascript:put_my_relays(10002);"> by NIP-07 and kind:10002 r tags</span>
<span class="langja"><input type="button" value="リレーリストを取得" onclick="javascript:put_my_relays(10002);"> (NIP-07, kind:10002 r tag)</span><br>
<textarea class="tarelay" style="width:100%" id="relayliststr" name="relayliststr" rows="10"></textarea><br>
<button name="req" type="button" onclick="javascript:handle_search_button();">search</button>
</div>
<p></p>
</form>
result:<span id="time"></span>
<div class="divpvnote" id="divpvnote">
<table><tr>
<td id="tdicon" style="vertical-align:text-top">
<img id="imgicon" class="imgicon" style="display:none"/>
</td>
<td id="tdnote">
<span id="pvtime"></span><br>
<span id="pvdname"></span> <span id="pvname"></span><br>
<span id="pvnote"></span>
</td>
</tr></table>
</div>
<table style="width:100%" id="result"></table>
<form name=form1>
<div>
<input type="checkbox" class="checkbox" name="formcheck" onclick="showform();" checked>show form
<input type="checkbox" class="checkbox" name="pvcheck" onclick="showpv();" checked>show pv
<input type="checkbox" class="checkbox" name="debugcheck" onclick="showdebug();" >show debug
<button name="copy" type="button" onclick="javascript:handle_copy_button() ;">copy URL</button>
<br>
<span class="debugout">debug:</span>
<textarea name="debugout" class="debugout" style="width:100%" rows="16"></textarea>
</div>
</form>
<hr>
<p>
<span class="langja">使い方:</span>
<span class="langen">usage:</span>
</p>
<ul>
<li>
<span class="langja">event id ボックスに調べたい"note1~", "nevent1~", "npub1~", "nprofile1~" を入力します。</span>
<span class="langen">Put "note1...", "nevent1...", "npub1..." or "nprofile1..." you want to check into the "event id" box.</span>
</li>
<li>
<span class="langja">kind ボックスに調べたいkindの数字を入力します。</span>
<span class="langen">Put the kind number you want to check in the "kind" box.</span>
</li>
<li>
<span class="langja">relays ボックスに調べたいリレーの URL を入力します。複数リレーを調べたいときは改行で追加してください。</span>
<span class="langen">Put the relay addresses you want to check in the "relays" box.</span>
</li>
</ul>
<address>
<a href="./">nostr-post-checker</a> version <span id="version">unloaded</span><br>
Programmed by <a href="https://nostter.app/koteitan.github.io">koteitan</a> and 2 contributors<br>
Source code is on <a href="https://github.com/koteitan/nostr-post-checker">github</a><br>
The program and the site is licensed by <a href="https://github.com/koteitan/nostr-post-checker/blob/master/LICENSE.md">MIT License</a>.
</address>
<script type="text/javascript" src="./main.js"></script>
<script src="https://unpkg.com/[email protected]/lib/nostr.bundle.js"></script>
</body>
</html>