|
|
@@ -143,8 +143,9 @@ function initLogout() { |
|
|
|
} |
|
|
|
|
|
|
|
function initAboutPage() { |
|
|
|
document.getElementById("div-logo").style.display = "none"; |
|
|
|
//document.getElementById("div-logo").style.display = "none"; |
|
|
|
document.getElementById("div-login-parent").style.display = "none"; |
|
|
|
document.getElementById("about").style.display = "inherit"; |
|
|
|
} |
|
|
|
|
|
|
|
function initPasswordReset() { |
|
|
@@ -201,6 +202,8 @@ function loginLocalEvent(name, password) { |
|
|
|
} |
|
|
|
|
|
|
|
function saveLocalEvent(name, password, text, tabCount) { |
|
|
|
password = encodeURIComponent(password); |
|
|
|
text = encodeURIComponent(text); |
|
|
|
let xmlrequest = new XMLHttpRequest(); |
|
|
|
xmlrequest.open("POST", "/"); |
|
|
|
xmlrequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); |
|
|
@@ -271,7 +274,8 @@ function populateFormLocalEvent(responseJson) { |
|
|
|
document.getElementById("password-form").style.display = "none"; |
|
|
|
document.getElementById("btn-logout").style.display = "inherit"; |
|
|
|
document.getElementById("btn-settings").style.display = "inherit"; |
|
|
|
let entireTextArray = responseJson.DUNGEON.cleartext.split("|textdungeon-tab|"); |
|
|
|
// TODO NOT DECODING CORRECTLY |
|
|
|
let entireTextArray = decodeURIComponent(responseJson.DUNGEON.cleartext).split("|textdungeon-tab|"); |
|
|
|
for (let i = 0; i < responseJson.DUNGEON.meta.TAB_COUNT; i++) { |
|
|
|
if (i !== 0) initAddTab(); |
|
|
|
tabContent.set("tab" + (i + 1), entireTextArray[i]); |
|
|
|