You've already forked collage-maker
Improve notice dialog
This commit is contained in:
@@ -15,7 +15,7 @@ let makeCollageBtn
|
||||
let albumSelect
|
||||
|
||||
/** @type {HTMLParagraphElement} */
|
||||
let noticeP
|
||||
let noticeSpan
|
||||
|
||||
/** @type {HTMLDialogElement} */
|
||||
let noticeDialog
|
||||
@@ -34,7 +34,7 @@ function main() {
|
||||
loadPhotosBtn = document.getElementById("load_photos_button")
|
||||
makeCollageBtn = document.getElementById("make_collage_button")
|
||||
albumSelect = document.getElementById("album_selector")
|
||||
noticeP = document.getElementById("notice_p")
|
||||
noticeSpan = document.getElementById("notice_span")
|
||||
noticeDialog = document.getElementById("notice_dialog")
|
||||
albumPhotosDiv = document.getElementById("album_photos")
|
||||
selectedPhotosDiv = document.getElementById("selected_photos")
|
||||
@@ -92,7 +92,7 @@ function closeNotice() {
|
||||
|
||||
/** @param {string} notice */
|
||||
function showNotice(notice) {
|
||||
noticeP.textContent = notice
|
||||
noticeSpan.textContent = notice
|
||||
noticeDialog.show()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user