forked from MapComplete/MapComplete
Add imgur attribution
This commit is contained in:
parent
31a64887a1
commit
9e9a600488
5 changed files with 115 additions and 21 deletions
20
test.ts
20
test.ts
|
@ -5,19 +5,11 @@ import {ElementStorage} from "./Logic/ElementStorage";
|
|||
import {WikipediaLink} from "./Customizations/Questions/WikipediaLink";
|
||||
import {OsmLink} from "./Customizations/Questions/OsmLink";
|
||||
import {ConfirmDialog} from "./UI/ConfirmDialog";
|
||||
import {Imgur} from "./Logic/Imgur";
|
||||
|
||||
console.log("Hello world")
|
||||
|
||||
new ConfirmDialog(new UIEventSource<boolean>(true),
|
||||
"<img src='assets/delete.svg' alt='Afbeelding verwijderen' class='delete-image'>",
|
||||
"Deze afbeelding verwijderen",
|
||||
"Terug",
|
||||
|
||||
() => {
|
||||
console.log("Verwijderen");
|
||||
},
|
||||
() => {
|
||||
console.log("terug")
|
||||
},
|
||||
'delete-image-confirm',
|
||||
'delete-image-cancel')
|
||||
.AttachTo("maindiv")
|
||||
Imgur.getDescriptionOfImage("https://i.imgur.com/pJfQYsj.jpg",
|
||||
(info) => {
|
||||
console.log(info)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue