lots of web ui work

This commit is contained in:
Kevin Froman 2019-10-11 04:28:43 -05:00
parent f0c72ef1c8
commit e5fc15acc2
16 changed files with 37 additions and 19 deletions

View file

@ -81,7 +81,7 @@
<br>
<i class="icon fas fa-university"></i> <input type="checkbox" name="stateTarget"> <label for="stateTarget">Government (direct target)</label>
<br>
<i class="icon fas fa-binoculars"></i> <input type="checkbox" name="local"> <label for="local">Local area threat (LAN or physical)</label>
<i class="icon fas fa-binoculars"></i> <input type="checkbox" name="local"> <label for="local">Physically nearby threat</label>
</div>
<br>
<div class="field">
@ -91,14 +91,14 @@
<i class="icon fas fa-network-wired"></i> <input checked type="checkbox" name="networkContribution"> <label for="networkContribution">Participating in data storage & sharing</label>
<br>
<i class="icon fas fa-book-open"></i> <input checked type="checkbox" name="networkContributionPlain"> <label for="networkContributionPlain">Storing plaintext data</label>
<br>
<i class="icon fas fa-dollar-sign"></i> <input type="checkbox" name="donate"> <label for="donate">Donating the price of a coffee to fund development</label>
</div>
<div class="field">
<div>
I prefer these words...
I want to...
</div>
<select name="userIDWords">
<option value=""></option>
</select>
<i class="icon fas fa-user"></i> <input type="checkbox" name="useDeterministic"> <label for="useDeterminisitc">Use a seed to re(generate) an ID</label>
</div>
<br>
<input type="submit" value="Get Started" class="button is-primary">

View file

@ -0,0 +1,8 @@
fetch('/getnewkeys', {
headers: {
"token": webpass
}})
.then((resp) => resp.text()) // Transform the data into text
.then(function(resp) {
keys = keys.split('')
})