Update index.html

This commit is contained in:
bihlink 2022-07-06 01:49:17 +02:00 committed by GitHub
parent b948ccbab4
commit 372af57a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 12 deletions

View File

@ -25,9 +25,9 @@
<input type="radio" id="t2" name="instancetype" value="pleroma">
<label for="t2">Pleroma</label><br>
<input type="radio" id="t3" name="instancetype" value="misskey">
<label for="t3">Misskey</label><br>
<label for="t3">Misskey (coming soon)</label><br>
<input type="radio" id="t4" name="instancetype" value="wordpress">
<label for="t4">WordPress</label><br><br>
<label for="t4">WordPress (coming soon)</label><br><br>
<label>Instance URL:<input required type="text" id="urlin" placeholder="mastodon.social"
oninvalid="this.setCustomValidity('Insert your instance URL. Example: mastodon.social')"
oninput="this.setCustomValidity('')"></label>
@ -85,16 +85,7 @@
return document.getElementById(id).value;
}
var instype = val('instancetype');
if(instype=="wordpress"){
var inUrl = 'https://' + val('urlin') + '/author/' + val('usernamein');
}
elseif(instype=="misskey"){
var inUrl = 'https://' + val('urlin') + '/@' + val('usernamein');
}
else{
var inUrl = 'https://' + val('urlin') + '/users/' + val('usernamein');
}
var inUrl = 'https://' + val('urlin') + '/users/' + val('usernamein');
var showBoosts = (!document.getElementById('hideboosts').checked).toString();
var showReplies = (!document.getElementById('hidereplies').checked).toString();