mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
10 lines
312 B
JavaScript
10 lines
312 B
JavaScript
window.onload = () => {
|
|
document.getElementById('upload-button').addEventListener('click', () => {
|
|
document.getElementById('file-input').click();
|
|
});
|
|
|
|
document.getElementById('file-input').addEventListener('change', () => {
|
|
document.getElementById('upload-form').submit();
|
|
});
|
|
};
|