forked from memberapp/memberapp.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
610 lines (570 loc) · 27.1 KB
/
Copy pathindex.html
File metadata and controls
610 lines (570 loc) · 27.1 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Member</title>
<!-- Only scripts from this website, inline script needed for operation -->
<!-- Call Memberjs for content -->
<!-- Call localhost for content -->
<!-- Allow BitBox for UTXOs, Sending Transactions -->
<!-- IMG SRC for inline images, rating star image -->
<!-- Openstreetmap for map tiles -->
<meta http-equiv="Content-Security-Policy"
content="default-src 'self' 'unsafe-inline'; connect-src https://memberjs.org https://rest.bitcoin.com/v2/ https://memberjs.org:8123/v2/ http://127.0.0.1:3000/v2/; img-src 'self' data: https://tile.openstreetmap.org/;">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Leaflet (Map) -->
<link rel="stylesheet" href="js/leaflet/leaflet.css" />
<script src="js/leaflet/leaflet.js"></script>
<link id="pagestyle" rel="stylesheet" href="css/functional.css">
</head>
<body>
<!-- Extenal Libraries -->
<script src="js/lib/buffer.js"></script>
<script src="js/lib/anchorme.min.js"></script>
<script src='js/lib/bitcoincash-0.1.10.min.js'></script>
<!-- Probably possible to remove this dependency and call functions from BitBox -->
<script src="js/lib/bitboxsdk.js"></script>
<script src='js/lib/rater/rating.js'></script>
<script src='js/lib/geohash.js'></script>
<!-- https://github.com/davidshimjs/qrcodejs -->
<script src="js/lib/qrcode.min.js"></script>
<!-- Member Code. In separate files for development convenience -->
<!-- Can be mininfied and amalgamated for releases -->
<script src="js/config.js"></script>
<script src="js/utils.js"></script>
<script src="js/posts.js"></script>
<script src="js/settings.js"></script>
<script src="js/follows.js"></script>
<script src="js/navigation.js"></script>
<script src="js/transactions.js"></script>
<script src="js/transactionqueue.js"></script>
<script src='js/map.js'></script>
<script src='js/trustgraph.js'></script>
<script src='js/bootstrapratings.js'></script>
<script src="js/login.js"></script>
<script src="js/notifications.js"></script>
<script src="js/htmlquarantine.js"></script>
<div id="map" style="width:100%; height:100%;display:none;"></div>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<div class="mainbodywrapper">
<header>
<div class="pagetop">
<nav id="loggedin" style="display: none;" class="loggedin">
<span class="memberlogo">
<a href="https://memberapp.github.io">
<img class="memberlogoimage" src="img/bch.png" width="31" height="18" />
</a>
</span>
<span class="membertext">
<a href="https://memberapp.github.io">
<b>Member</b>
</a>
</span>
<span>
<a id="postsbutton" class="btn" href="#posts?type=all&start=0&limit=25"
onclick="showPosts(0,25,'all');">posts</a>(<a id="postsbuttonfeed" class="btn"
href="#posts?type=feed&start=0&limit=25"
onclick="showPosts(0,25,'feed');">feed</a>|<a id="postsbuttonnew" class="btn"
href="#posts?type=new&start=0&limit=25" onclick="showPosts(0,25,'new');">new</a>) |
</span>
<span>
<a id="commentsbutton" class="btn" href="#comments?type=all&start=0&limit=25"
onclick="showComments(0,25,'all');">comments</a>(<a id="commentsbuttonfeed" class="btn"
href="#comments?type=feed&start=0&limit=25"
onclick="showComments(0,25,'feed');">feed</a>|<a id="commentsbuttonnew" class="btn"
href="#comments?type=new&start=0&limit=25"
onclick="showComments(0,25,'new');">new</a>) |
</span>
<span>
<a id="refreshbutton" class="btn" href=""
onclick="displayContentBasedOnURLParameters();return false;">🔄</a>
<a id="newbutton" class="btn" href="#new" onclick="showNewPost();">📝</a>
<a id="mapbutton" class="btn" href="#map" onclick="showMap();">🌍</a>
<a id="settingsbutton" class="btn" href="#settings" onclick="showSettings();">⚙️</a>
<a id="notificationsbutton" class="btn" href="#notifications?start=0&limit=25"
onclick="showNotifications(0,25,'notifications');">🔔</a> |
</span>
<span onclick="refreshPool();return false;" id="balancedetails">₿<span id="balance">0</span><a id="refreshbutton" class="btn" href=""
>🔄</a> | </span>
<a id="logoutbutton" class="btn" href="#logout" onclick="logout();">logout</a>
</nav>
<nav id="loggedout" class="loggedout">
<span class="memberlogo">
<a href="https://memberapp.github.io">
<img class="memberlogoimage" src="img/bch.png" width="31" height="18" />
</a>
</span>
<span class="membertext">
<a href="https://memberapp.github.io">
<b>Member</b>
</a>
</span>
<a id="mapbutton" class="btn" href="#map" onclick="showMap();">🌍</a> |
<a id="postsbutton" class="btn" href="#posts?type=top&start=0&limit=25"
onclick="showPosts(0,25,'all');">posts</a> |
<a id="commentsbutton" class="btn" href="#comments?type=all&start=0&limit=25"
onclick="showComments(0,25,'all');">comments</a> |
<a id="loginbutton" class="btn" href="#login" onclick="showLogin();">login</a>
</nav>
<span id="topiccontainer" class="topiccontainer">
<select id="topicselector" onchange="topicChanged();">
<option value="" selected="selected">All Topics</option>
<option value=""></option>
<option value="Member">Member</option>
<option value="Bitcoin Cash">Bitcoin Cash</option>
<option value="Bitcoin SV">Bitcoin SV</option>
<option value="Memo">Memo</option>
<option value="Airdrops">Airdrops</option>
<option value="Tokens">Tokens</option>
<option value="OpenBazaar">OpenBazaar</option>
<option value="Capitalism">Capitalism</option>
<option value="US Politics/Trump">US Politics</option>
<option value="Favorite Quotes">Favorite Quotes</option>
<option value="Ideas to improve our lives">Self Improvement</option>
<option value="#911Truth">#911Truth</option>
</select>
</span>
</div>
</header>
<div class="mainbody">
<div id="newpost" class="applicationpage newpost" style="display: none;">
<h2>New Post</h2>
<div id="memotopicarea">
topic <span id="memotopiclengthadvice">(0/217)</span><br />
<input size="60" id="memotopic" maxlength="217" onchange="topictitleChanged('memo');"
onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();">
</div>
<div>
text <span id="memotitlelengthadvice">(0/217)</span><br />
<textarea id="memotitle" maxlength="217" name="text" rows="4" cols="60"
onchange="topictitleChanged('memo');" onkeypress="this.onchange();" onpaste="this.onchange();"
oninput="this.onchange();"></textarea>
</div>
<div>
<input id="newpostbutton" value="Post a Memo" type="submit" onclick="post();">
<input id="newpoststatus" style="display: none;" value="Sending . . ." type="submit" disabled>
<div id="newpostcompleted"></div>
</div>
<br />
or
<br /><br />
<div id="memorandumtopicarea">
topic <span id="memorandumtopiclengthadvice">(0/214)</span><br />
<input size="80" id="memorandumtopic" maxlength="217" onchange="topictitleChanged('memorandum');"
onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();">
</div>
<div>
title <span id="memorandumtitlelengthadvice">(0/217)</span><br />
<input class="memorandumtitle" id="memorandumtitle" maxlength="217" onchange="topictitleChanged('memorandum');"
onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();">
</div>
<div>
text<br/>
<textarea id="newposttamemorandum" name="text" rows="20" cols="80"></textarea>
</div>
<div>
<input id="newpostmemorandumbutton" value="Post a Memorandum" type="submit"
onclick="postmemorandum();">
<input id="newpostmemorandumstatus" style="display: none;" value="Sending . . ." type="submit"
disabled>
<div id="newpostmemorandumcompleted"></div>
</div>
</div>
<div id="loading" class="applicationpage loading" style="display: none;">
<div class="loading"></div>
</div>
<div id="topic" style="display: none;"></div>
<div id="feed" style="display: none;"></div>
<div id="notifications" style="display: none;"></div>
<div id="member" class="member" style="display: none;">
<h2>Member</h2>
<label for="membernametext">Handle</label>
<div id='membernametext'>
<i>loading</i>
</div>
<label for="memberprofiletext">Profile</label>
<div id='memberprofiletext'>
<i>loading</i>
</div>
<label>Profile Links</label>
<div>
<a href="" id='memberprofilelink'>Member</a> |
<a target="memo" href="" id='membermemoprofilelink'>Memo</a>
</div>
<label>Address</label>
<div>
<div id="membercashaddrformatdiv"><span id="membercashaddrformat">loading</span> <span
onclick="showQRCode('membercashaddrformat');">(Click to Show QR
Code)</span></div>
</div>
<label>Legacy Address</label>
<div>
<div id="memberlegacyformatdiv"><span id="memberlegacyformat">loading</span>
<span onclick="showQRCode('memberlegacyformat');">(Click to Show QR
Code)</span></div>
</div>
<div>
<div class="follow">
<label>Follow</label>
<a id="memberfollow">
<i>loading</i>
</a>
</div>
<div class="mute">
<label>Mute</label>
<a id="memberblock">
<i>loading</i>
</a>
</div>
<div class="followers">
<label>Followers</label>
<a id="memberfollowersnumber">
<i>loading</i>
</a>
</div>
<div class="following">
<label>Following</label>
<a id="memberfollowingnumber">
<i>loading</i>
</a>
</div>
<div class="muters">
<label>Muters</label>
<a id="memberblockersnumber">
<i>loading</i>
</a>
</div>
<div class="muting">
<label>Muting</label>
<a id="memberblockingnumber">
<i>loading</i>
</a>
</div>
</div>
<div id="memberratinggroup">
<label for="memberratingcomment">You Rate</label>
<div class="memberratinggroup">
<div class="memberratingcomment" id="memberratingcomment"></div>
<div class="memberrating" id="memberrating"></div>
</div>
</div>
</div>
<div id="trustgraph" class="trustgraph" style="display:none;">
<h2>Trust Graph</h2>
<div id="trustgraphdetails"></div>
<br />
<br />
<div id="trustgraphnotes">*Notes: A follow is interpreted a 4-star rating, a mute as a
2-star rating. This is an
approximation of a trust rating -
the rating can be overridden by directly rating the user.</div>
</div>
<div id="settings" style="display: none;">
<h2>Settings</h2>
<div>
<label for="settingsnametext">Handle</label>
<input size="30" id="settingsnametext" value="loading..."
onchange="document.getElementById('settingsnametextbutton').disabled=false;"
onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();">
<button id="settingsnametextbutton" type="button" onclick="setName();">update</button>
</div>
<div>
<label for="settingsprofiletext">Profile</label>
<input size="30" id='settingsprofiletext' value="loading..."
onchange="document.getElementById('settingsprofiletextbutton').disabled=false;"
onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();">
<button id="settingsprofiletextbutton" type="button" onclick="setProfile();"
disabled>update</button>
</div>
<div>
<label>Profile Links</label>
<div>
<a href="" id='settingsprofilelink'>Member</a>
|
<a target="memo" href="" id='settingsmemoprofilelink'>Memo</a>
</div>
</div>
<div>
<label>Address</label>
<span id="cashaddrformat">loading</span>
<div id="cashaddrformatdiv"> <span onclick="showQRCode('cashaddrformat');">(Click to Show QR
Code)</span></div>
</div>
<div>
<label>Legacy Address</label>
<span id="legacyformat">loading</span>
<div id="legacyformatdiv"> <span onclick="showQRCode('legacyformat');">(Click to Show QR
Code)</span>
</div>
</div>
<div>
<label>Private Key</label>
<span id="privatekeydisplay" style="display: none;">loading</span><span id="privatekey"></span>
<div id="privatekeydiv"> <span onclick="showQRCode('privatekey');">(Click to Show QR Code)</span>
</div>
</div>
<div>
<label for="cssselector">Theme</label>
<select id="cssselector" onchange='changeStyle(document.getElementById("cssselector").value);'>
<option value="functional.css">Choose Theme</option>
<option value="functional.css">Reddit</option>
<option value="hackernews.css">Hacker News</option>
<option value="hnnightmode.css">Hacker News Night Mode</option>
<option value="none.css">None</option>
</select>
</div>
<div>
<div class="follow">
<label>Follow</label>
<a id="settingsfollow">
<i>loading</i>
</a>
</div>
<div class="mute">
<label>Mute</label>
<a id="settingsblock">
<i>loading</i>
</a>
</div>
<div class="followers">
<label>Followers</label>
<a id="settingsfollowersnumber">
<i>loading</i>
</a>
</div>
<div class="following">
<label>Following</label>
<a id="settingsfollowingnumber">
<i>loading</i>
</a>
</div>
<div class="muters">
<label>Muters</label>
<a id="settingsblockersnumber">
<i>loading</i>
</a>
</div>
<div class="muting">
<label>Muting</label>
<a id="settingsblockingnumber">
<i>loading</i>
</a>
</div>
</div>
<div>
<label for="oneclicktip">One-Click Tip Amount</label>
<input id="oneclicktip" value="0" size="8" type="number" step="1000" onchange="updateOneClickTip();"
onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();">
(Amount
to tip when clicking up arrow, minimum 547)
</div>
<div>
<label for="maxfee">Max Fee</label>
<input id="maxfee" value="5" size="3" type="number" step="1" onchange="updateMaxFee();"
onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();">
(Max
satoshis per byte to pay during network congestion. Min 2)
</div>
<div>
<label for="mutedwords">Muted Words (Comma Separate)</label>
<textarea id="mutedwords" maxlength="217" name="text" rows="4" cols="60"
onchange="updatemutedwords();" onkeypress="this.onchange();" onpaste="this.onchange();"
oninput="this.onchange();"></textarea>
</div>
</div>
<div id="ratings" class="ratings" style="display: none;">
<h2>Ratings By This Member</h2>
<br />
<table class="table">
<thead>
<tr>
<th>Member</th>
<th></th>
<th></th>
<th></th>
<th>Rates</th>
<th></th>
<th></th>
<th></th>
<th>Member</th>
<th></th>
<th>Note</th>
</tr>
</thead>
<tbody id="ratingtable">
</tbody>
</table>
</div>
<div id="community" class="community" style="display: none;">
<h2>Ratings Of This Member</h2>
<br />
<table class="table">
<thead>
<tr>
<th>Member</th>
<th></th>
<th></th>
<th></th>
<th>Rates</th>
<th></th>
<th></th>
<th></th>
<th>Member</th>
<th></th>
<th>Note</th>
</tr>
</thead>
<tbody id="communityratingtable">
</tbody>
</table>
<br /><br />
</div>
<div id="bootstrap" style="display: none;">
<h2>Bootstrap Ratings</h2>
<br />
<table class="table">
<thead>
<tr>
<th>Member</th>
<th></th>
<th></th>
<th></th>
<th>Rating</th>
<th></th>
<th></th>
<th></th>
<th>Ratee</th>
<th>Full Trust Graph</th>
</tr>
</thead>
<tbody id="bootstraptable1"></tbody>
<tbody id="bootstraptable2"></tbody>
<tbody id="bootstraptable3"></tbody>
</table>
</div>
<div id="memberposts" style="display: none;">
</div>
<div id="followers" class="followers" style="display: none;">
<h2>Followers</h2>
<br />
<table class="table">
<thead>
<tr>
<th>Rating</th>
<th>Name</th>
<th>Address</th>
</tr>
</thead>
<tbody id="follows">
</tbody>
</table>
</div>
<div id="following" class="following" style="display: none;">
<h2>Following</h2>
<br />
<table class="table">
<thead>
<tr>
<th>Rating</th>
<th>Name</th>
<th>Address</th>
</tr>
</thead>
<tbody id="followingtable">
</tbody>
</table>
</div>
<div id="blockers" class="blockers" style="display: none;">
<h2>Muters</h2>
<br />
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Address</th>
</tr>
</thead>
<tbody id="blocks">
</tbody>
</table>
</div>
<div id="blocking" class="blocking" style="display: none;">
<h2>Muting</h2>
<br />
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Address</th>
</tr>
</thead>
<tbody id="blockingtable">
</tbody>
</table>
</div>
<div id="posts" style="display: none;"></div>
<div id="comments" style="display: none;"></div>
<div id="thread" style="display: none;">
</div>
<div id="loginbox" class="applicationpage loginbox" style="display: none;">
<br />
Member is a blockchain browser. It reads and allows you to create actions in the Memo
protocol.
<br />
<br />
It allows you to create posts, likes, tips, profiles, reputational ratings and geolocated
posts.
<br />
<br />You can <button type="button" href="#settings" onclick="createNewAccount();">Create A
New Account</button>
<br />
<br />
<hr />
<br />
or<br />
<br />
login with a Memo private key. <a href="https://memo.cash/key/export">Click here to get yours</a>. (Member is SLP546 aware and will not alter your SLP tokens)
<br />
<br />Private Key (Compressed WIF format, starts with 'L' or 'K')
<br />
<input size="64" id="loginkey">
<button type="button" href="#feed"
onclick="trylogin(document.getElementById('loginkey').value);">login</button>
<br />
<div id="loginerror">
</div>
<br />
<br />
</div>
<footer>
<hr />
<span class="footerlinks">
<a
href="https://memo.cash/token/766f9f56ac0a3f0e4c64cb3453d0c45336a20685827801b2188d237c2a6ffc43?balances">Top
Supporters</a>
|
<a href="https://github.com/memberapp/memberapp.github.io">Github</a>
|
<a href="https://www.bitcoin.com">Bitcoin</a>
|
<a href="https://github.com/memberapp/protocol">Protocol</a>
|
<a href="mailto:memorycoincc@gmail.com">Contact</a>
|
version 2.1.2.<u>9</u>
</span>
<br />
<br />
</footer>
</div>
</div>
<div id="status"></div>
<script>
init();
</script>
</body>
</html>