File uploader updates

This commit is contained in:
Codrin Pavel
2019-11-30 22:07:18 +02:00
parent 128b603153
commit f9cb0e73ed
8 changed files with 28 additions and 16 deletions

View File

@@ -8,13 +8,15 @@
<form id="dataform" class="form">
<h3>Add War</h3>
<textarea id="data">{{ site.testdata }}</textarea>
<input id="fileUpload" type="file" accept=".har" />
<br />
<input type="submit" value="Submit" class="button" />
<input type="reset" value="Reset" class="button" />
<label class="button">
Upload File
<input id="fileUpload" type="file" accept=".har" />
</label>
<br />
<a href="#" class="button button--danger"
onClick="(function(){var newStorage=JSON.parse(localStorage.getItem('HeroWarsHistory'));newStorage.shift();localStorage.setItem('HeroWarsHistory',JSON.stringify(newStorage));})();">
Storage Fix</a>
Remove Newest Entry</a>
</form>
</header>