update
This commit is contained in:
8
scripty/galeria.js
Normal file
8
scripty/galeria.js
Normal file
@@ -0,0 +1,8 @@
|
||||
function downloadImage(imageUrl) {
|
||||
const link = document.createElement('a');
|
||||
link.href = imageUrl;
|
||||
link.download = imageUrl.split('/').pop();
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
}
|
Reference in New Issue
Block a user