diff --git a/QMGHeaderParser/index.html b/QMGHeaderParser/index.html index e416460..d11879b 100644 --- a/QMGHeaderParser/index.html +++ b/QMGHeaderParser/index.html @@ -91,4 +91,7 @@ fadeBG(true); + diff --git a/SGExtractor/index.html b/SGExtractor/index.html index e6b1a85..4df6c3e 100644 --- a/SGExtractor/index.html +++ b/SGExtractor/index.html @@ -102,4 +102,7 @@

NOTE: This is unfinished UX/UI wise.

fadeBG(true); + diff --git a/index.html b/index.html index d851679..dbf9518 100755 --- a/index.html +++ b/index.html @@ -418,4 +418,7 @@

Mastodon + diff --git a/js/LCEExtractor.js b/js/LCEExtractor.js index 1d058b9..896dd9d 100644 --- a/js/LCEExtractor.js +++ b/js/LCEExtractor.js @@ -62,7 +62,6 @@ document.addEventListener("drop", (e) => { } }); -let fuck = 0; let compressionMode = "none"; /** diff --git a/js/ver.js b/js/ver.js index e37ef8d..88bda6e 100644 --- a/js/ver.js +++ b/js/ver.js @@ -20,7 +20,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -const updDate = "04/08/2024" -const verString = "v1.2.51" +/** + * Retrieves version info for the specified file. + * @param {string} type - The file to return info for. + * @returns {string} - A JSON string containing the version and date information. + */ +function getVer(type) { + switch (type) { + case "le": + // LCE Savegame Extractor + return JSON.stringify({ "version": "1.1.10", "date": "04/08/2024"}); + case "qd": + // QMG Header Parser + return JSON.stringify({ "version": "1.2.10", "date": "12/21/2023"}); + case "default": + default: + return JSON.stringify({ "version": "1.2.52", "date": "04/09/2024"}); + } +} + +/** + * Sets the version information in the current HTML. + * @param {string} type - The file to use the information from when setting the info. + * @returns {void} + */ +function setVer(type) { + let json = JSON.parse(getVer(type)); + document.getElementById('lastUpdated').innerText = `v${json["version"]} (${json["date"]})`; +} -document.getElementById('lastUpdated').innerText = `${updDate} (${verString})`