Improve index generator
All checks were successful
Build and Publish / build_and_publish (push) Successful in 9s
All checks were successful
Build and Publish / build_and_publish (push) Successful in 9s
This commit is contained in:
parent
c2ea457d31
commit
a320575fa9
1 changed files with 10 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
|||
let p = document.createElement("p");
|
||||
p.textContent = "Your redirect has been created. You can access it at the following URL: ";
|
||||
p.appendChild(a);
|
||||
document.getElementById("result").appendChild(p);
|
||||
document.getElementById("result").prepend(p);
|
||||
}
|
||||
)
|
||||
} else {
|
||||
|
@ -62,6 +62,15 @@
|
|||
<input type="date" id="expires" name="expires"/><br/>
|
||||
<label for="max_visits">Max visits:</label>
|
||||
<input type="number" id="max_visits" name="max_visits"/><br/>
|
||||
<label for="slug_length">Slug length:</label>
|
||||
<input type="number" id="slug_length" name="slug_length" value="2048" min="2" max="16389"/><br/>
|
||||
<label for="slug_type">Slug type:</label>
|
||||
<select id="slug_type" name="slug_type" value="urlsafe">
|
||||
<option value="urlsafe">Base64 (urlsafe)</option>
|
||||
<option value="hex">Hexadecimal (0123456789ABCDEF)</option>
|
||||
<option value="words">Random words (english dictionary words)</option>
|
||||
<option value="uuid">Merged UUIDs</option>
|
||||
</select><br/>
|
||||
<button type="submit">Create</button>
|
||||
</form>
|
||||
<div id="result"></div>
|
||||
|
|
Loading…
Reference in a new issue