-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (73 loc) · 2.18 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Getting Started: Inrupt JavaScript Client Libraries</title>
<script defer src="./index.js"></script>
<link rel="stylesheet" href="my-demo.css" />
</head>
<body>
<header>
<h2>Getting Started</h2>
<h3>with Inrupt JavaScript Client Libraries</h3>
</header>
<section id="login" class="panel">
<div class="row">
<label id="labelLogin" for="btnLogin">
1. Click the button to log into
<span id="solid_identity_provider">...provided by the JavaScript code...</span>:
</label>
<button name="btnLogin" id="btnLogin">
Login
</button>
<p id="labelStatus" class="labelStatus"></p>
</div>
</section>
<div id="read" class="panel">
<div class="row">
<form id="writeForm">
<label id="writelabel" for="name">
2. Write your name:
</label>
<input
type="text"
id="input_name"
name="name"
size="50"
placeholder="Your name here"
/>
<button type="submit">
Write to Profile
</button>
</form>
</div>
<dl class="display">
<dt>Writing status: </dt>
<dd id="labelWriteStatus" class="labelStatus">...not written yet...</dd>
</dl>
</div>
<div id="read" class="panel">
<div class="row">
<form id="readForm">
<label id="readlabel" for="webID">
3. Read back name (anyone's!) from their WebID:
</label>
<input
type="url"
id="webID"
name="webID"
size="50"
placeholder="...not logged in yet - but enter any WebID to read from its profile..."
/>
<button type="submit" name="btnRead" id="btnRead">
Read Profile
</button>
</form>
</div>
<dl class="display">
<dt>Formatted Name (FN) read from Pod: </dt>
<dd id="labelFN">...not read yet...</dd>
</dl>
</div>
</body>
</html>