Update to home screen

This commit is contained in:
ebolam
2022-08-31 14:17:47 -04:00
parent 8c769a9f77
commit e31a0466da
4 changed files with 14 additions and 4 deletions

View File

@@ -465,10 +465,9 @@ input[type="range"]::-ms-fill-upper {
}
.story_title_icons {
display: flex;
width: 100%;
padding: 10px;
justify-content: space-between;
text-align: center;
}
.settings_menu {

View File

@@ -579,6 +579,11 @@ function load_popup(data) {
var popup = document.getElementById("popup");
var popup_title = document.getElementById("popup_title");
popup_title.textContent = data.popup_title;
if (data.popup_title == "Select Story to Load") {
document.getElementById("import_story_button").classList.remove("hidden");
} else {
document.getElementById("import_story_button").classList.add("hidden");
}
var popup_list = document.getElementById("popup_list");
//first, let's clear out our existing data
while (popup_list.firstChild) {

View File

@@ -9,7 +9,14 @@
<div class="popup_load_cancel hidden" id="popup_upload">
<input type=file id="popup_upload_file">
</div>
<div>Drag file(s) above or click here to Upload File<input id="popup_upload_input" type=file onchange="upload_file(this)"></div>
<div style="display:flex;justify-content: space-between;">
<span>Drag file(s) above or click here to Upload File<input id="popup_upload_input" type=file onchange="upload_file(this)"></span>
<button id="import_story_button" class="settings_button hidden" onclick="document.getElementById('import_aidg_club_popup').classList.remove('hidden');">
<span class="material-icons-outlined cursor" title="Import Story">cloud_download</span>
<span> Import Story</span>
</button>
</div>
<div class="popup_load_cancel" id="popup_load_cancel">
<button class="btn popup_load_cancel_button action_button" id="popup_accept">Load</button>
<button class="btn popup_load_cancel_button" id="popup_cancel" onclick='document.getElementById("popup").classList.add("hidden");'>Cancel</button>

View File

@@ -63,7 +63,6 @@
<span class="var_sync_story_story_name fullwidth" contenteditable=true onblur="sync_to_server(this);"></span>
</span>
<span>
<span class="material-icons-outlined cursor" title="Import Story" onclick="document.getElementById('import_aidg_club_popup').classList.remove('hidden');">cloud_download</span>
<span class="material-icons-outlined cursor" title="Download Story" onclick="document.getElementById('download_iframe').src = 'json';">file_download</span>
</span>
</div>