updated status page

This commit is contained in:
polarDefender 2024-06-04 12:37:23 -07:00
parent f9af31d4a7
commit 811d038773
4 changed files with 84 additions and 16 deletions

View file

@ -9,5 +9,41 @@ $(() => {
$("#show-nostr").click(() => {
$("#reset-content").text("Changing the Nostr relay may cause some clients to lose connection. We'll make one last update to the old relay to tell clients about the new relay.");
$("#reset-box").show();
$('.continue-button').attr('id', 'set-show-nostr');
});
$("#show-nodey").click(() => {
$('.show-nodey').show()
$('#show-nodey-text').hide()
$('input[name="show-nodey"]').focus();
});
$("#save-show-nodey").click(() => {
var targetInputVal = $('input[name="show-nodey"]').val()
$('#show-nodey-text').text(targetInputVal)
$('.show-nodey').hide()
$('#show-nodey-text').show()
})
$("#cancel-show-nodey").click(() => {
$('.show-nodey').hide()
$('#show-nodey-text').show()
})
$(".continue-button").click((e) => {
if($(".continue-button").prop('id') !== "set-show-nostr") {
return
}
$('.continue-button').attr('id', '');
$("#reset-box").hide();
$('.show-nostr').show()
$('#show-nostr-text').hide()
$('input[name="show-nostr"]').focus();
});
$("#save-show-nostr").click(() => {
var targetInputVal = $('input[name="show-nostr"]').val()
$('#show-nostr-text').text(targetInputVal)
$('.show-nostr').hide()
$('#show-nostr-text').show()
})
$("#cancel-show-nostr").click(() => {
$('.show-nostr').hide()
$('#show-nostr-text').show()
})
});