2020-07-01 15:38:48 +00:00
|
|
|
import {UIEventSource} from "./UI/UIEventSource";
|
2020-07-05 16:59:47 +00:00
|
|
|
import {Changes} from "./Logic/Changes";
|
|
|
|
import {OsmConnection} from "./Logic/OsmConnection";
|
|
|
|
import {ElementStorage} from "./Logic/ElementStorage";
|
|
|
|
import {WikipediaLink} from "./Customizations/Questions/WikipediaLink";
|
|
|
|
import {OsmLink} from "./Customizations/Questions/OsmLink";
|
2020-07-08 09:23:36 +00:00
|
|
|
import {ConfirmDialog} from "./UI/ConfirmDialog";
|
2020-07-08 13:09:34 +00:00
|
|
|
import {Imgur} from "./Logic/Imgur";
|
2020-07-15 11:15:36 +00:00
|
|
|
import {VariableUiElement} from "./UI/Base/VariableUIElement";
|
2020-07-20 11:37:33 +00:00
|
|
|
import {CheckBox} from "./UI/Base/CheckBox";
|
2020-07-01 00:12:33 +00:00
|
|
|
|
2020-07-15 11:15:36 +00:00
|
|
|
|
2020-07-20 11:37:33 +00:00
|
|
|
const eventSource = new UIEventSource(false);
|
|
|
|
eventSource.addCallback(console.log)
|
2020-07-15 11:15:36 +00:00
|
|
|
|
2020-07-20 11:37:33 +00:00
|
|
|
new CheckBox(eventSource)
|
|
|
|
.onClick(() => {
|
|
|
|
eventSource.setData(!eventSource.data);
|
|
|
|
})
|
|
|
|
.AttachTo("maindiv");
|