LoadSaveFile.js
This commit is contained in:
parent
5e4dbec3bf
commit
a5fc930850
2 changed files with 11 additions and 1 deletions
|
|
@ -48,8 +48,9 @@
|
||||||
|
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
|
||||||
<button id="save-area-read" class="button" onclick="HKReadTextArea();">Analyze Text</button>
|
|
||||||
<!-- <button id="save-area-file" class="button" onclick="">Load Save</button> -->
|
<!-- <button id="save-area-file" class="button" onclick="">Load Save</button> -->
|
||||||
|
<button id="save-area-read" class="button" onclick="HKReadTextArea();">Analyze Text</button>
|
||||||
|
<input id="save-area-file" class="button" type="file" name="file" accept=".dat,.bak*" onchange="ShowFile(this)">
|
||||||
|
|
||||||
<div class="checkboxes">
|
<div class="checkboxes">
|
||||||
<label for="checkbox-hints" class="checkbox-label" title="Check to see an optional clue for your first playthrough based on your save's progress.">
|
<label for="checkbox-hints" class="checkbox-label" title="Check to see an optional clue for your first playthrough based on your save's progress.">
|
||||||
|
|
@ -88,6 +89,9 @@
|
||||||
<!-- Instantly load test file (Debugging script) -->
|
<!-- Instantly load test file (Debugging script) -->
|
||||||
<script src="js/LoadJson.js"></script>
|
<script src="js/LoadJson.js"></script>
|
||||||
|
|
||||||
|
<!-- Load Save File testing -->
|
||||||
|
<script src="js/LoadSaveFile.js"></script>
|
||||||
|
|
||||||
<!-- Main script -->
|
<!-- Main script -->
|
||||||
<script src="js/HKCheckCompletion.js"></script>
|
<script src="js/HKCheckCompletion.js"></script>
|
||||||
|
|
||||||
|
|
|
||||||
6
js/LoadSaveFile.js
Normal file
6
js/LoadSaveFile.js
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
function ShowFile(input) {
|
||||||
|
let inputFile = input.files[0];
|
||||||
|
|
||||||
|
alert(`File name: ${inputFile.name}`);
|
||||||
|
alert(`Last modified: ${inputFile.lastModified}`)
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue