mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-26 22:43:26 -07:00
Improved styling for WebHost
This commit is contained in:
9
WebHostLib/static/uploads.js
Normal file
9
WebHostLib/static/uploads.js
Normal file
@@ -0,0 +1,9 @@
|
||||
window.onload = () => {
|
||||
document.getElementById('upload-button').addEventListener('click', () => {
|
||||
document.getElementById('file-input').click();
|
||||
});
|
||||
|
||||
document.getElementById('file-input').addEventListener('change', () => {
|
||||
document.getElementById('upload-form').submit();
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user