|
9 | 9 | <label class="control-label" for="username">Username*</label> |
10 | 10 | <input type="text" class="form-control" name="username" id="username" placeholder="alice" |
11 | 11 | required/> |
12 | | - </div> |
| 12 | + |
| 13 | + {{#if multiuser}} |
| 14 | + <p>Your username should be a lower-case word with only |
| 15 | + letters a-z and numbers 0-9 and without periods.</p> |
| 16 | + <p>Your public Solid POD URL will be: |
| 17 | + <tt>https://<span class="editable-username">alice</span>.<script type="text/javascript"> |
| 18 | + document.write(window.location.host) |
| 19 | + </script></tt></p> |
| 20 | + <p>Your public Solid WebID will be: |
| 21 | + <tt>https://<span class="editable-username">alice</span>.<script type="text/javascript"> |
| 22 | + document.write(window.location.host) |
| 23 | + </script>/profile/card#me</tt></p> |
| 24 | + |
| 25 | + <p>Your <em>POD URL</em> is like the homepage for your Solid |
| 26 | + pod. By default, it is readable by the public, but you can |
| 27 | + always change that if you like by changing the access |
| 28 | + control.</p> |
| 29 | + |
| 30 | + <p>Your <em>Solid WebID</em> is your globally unique name |
| 31 | + that you can use to identify and authenticate yourself with |
| 32 | + other PODs across the world.</p> |
| 33 | + {{/if}} |
| 34 | + |
| 35 | + </div> |
13 | 36 |
|
14 | 37 | <div class="form-group has-feedback"> |
15 | 38 | <label class="control-label" for="password">Password*</label> |
|
76 | 99 | <script src="/common/js/owasp-password-strength-test.js" defer></script> |
77 | 100 | <script src="/common/js/text-encoder-lite.min.js" defer></script> |
78 | 101 | <script src="/common/js/solid.js" defer></script> |
| 102 | + |
| 103 | +<script> |
| 104 | + var username = document.getElementById('username'); |
| 105 | + username.onkeyup = function() { |
| 106 | + var list = document.getElementsByClassName('editable-username'); |
| 107 | + for (let item of list) { |
| 108 | + item.innerHTML = username.value.toLowerCase() |
| 109 | + } |
| 110 | +} |
| 111 | +</script> |
| 112 | + |
0 commit comments