Tiny tweaks

This commit is contained in:
Codrin Pavel
2019-11-30 22:35:05 +02:00
parent f9cb0e73ed
commit d2e6d846dd
5 changed files with 11 additions and 5 deletions

View File

@@ -31,7 +31,11 @@ header {
} }
.button { .button {
margin-left: 10px; margin: 0 5px;
&:last-child {
margin-right: 0;
}
} }
} }

View File

@@ -9,11 +9,12 @@
<h3>Add War</h3> <h3>Add War</h3>
<textarea id="data">{{ site.testdata }}</textarea> <textarea id="data">{{ site.testdata }}</textarea>
<input type="submit" value="Submit" class="button" /> <input type="submit" value="Submit" class="button" />
or
<label class="button"> <label class="button">
Upload File Upload File
<input id="fileUpload" type="file" accept=".har" /> <input id="fileUpload" type="file" accept=".har" />
</label> </label>
<br /> |
<a href="#" class="button button--danger" <a href="#" class="button button--danger"
onClick="(function(){var newStorage=JSON.parse(localStorage.getItem('HeroWarsHistory'));newStorage.shift();localStorage.setItem('HeroWarsHistory',JSON.stringify(newStorage));})();"> onClick="(function(){var newStorage=JSON.parse(localStorage.getItem('HeroWarsHistory'));newStorage.shift();localStorage.setItem('HeroWarsHistory',JSON.stringify(newStorage));})();">
Remove Newest Entry</a> Remove Newest Entry</a>

File diff suppressed because one or more lines are too long

View File

@@ -30,11 +30,12 @@
<h3>Add War</h3> <h3>Add War</h3>
<textarea id="data"></textarea> <textarea id="data"></textarea>
<input type="submit" value="Submit" class="button" /> <input type="submit" value="Submit" class="button" />
or
<label class="button"> <label class="button">
Upload File Upload File
<input id="fileUpload" type="file" accept=".har" /> <input id="fileUpload" type="file" accept=".har" />
</label> </label>
<br /> |
<a href="#" class="button button--danger" <a href="#" class="button button--danger"
onClick="(function(){var newStorage=JSON.parse(localStorage.getItem('HeroWarsHistory'));newStorage.shift();localStorage.setItem('HeroWarsHistory',JSON.stringify(newStorage));})();"> onClick="(function(){var newStorage=JSON.parse(localStorage.getItem('HeroWarsHistory'));newStorage.shift();localStorage.setItem('HeroWarsHistory',JSON.stringify(newStorage));})();">
Remove Newest Entry</a> Remove Newest Entry</a>

File diff suppressed because one or more lines are too long