2020-10-04 01:04:46 +02:00
|
|
|
//*
|
2020-08-31 02:59:47 +02:00
|
|
|
|
2020-10-09 21:11:52 +02:00
|
|
|
|
2020-10-23 01:20:48 +02:00
|
|
|
import OpeningHoursPickerTable from "./UI/Input/OpeningHours/OpeningHoursPickerTable";
|
|
|
|
import {UIElement} from "./UI/UIElement";
|
|
|
|
import {UIEventSource} from "./Logic/UIEventSource";
|
|
|
|
import {OpeningHour} from "./Logic/OpeningHours";
|
2020-10-25 20:50:29 +01:00
|
|
|
import {TagRendering} from "./UI/Popup/TagRendering";
|
|
|
|
import {Tag} from "./Logic/Tags";
|
|
|
|
|
|
|
|
|
|
|
|
const tr = new TagRendering(
|
|
|
|
new UIEventSource<any>({
|
|
|
|
id: "node/-1",
|
|
|
|
amenity: "bench"
|
|
|
|
}),
|
|
|
|
{
|
|
|
|
question: "Does this bench have a backrest?",
|
|
|
|
mappings: [{
|
|
|
|
k: new Tag("backrest", "yes"),
|
|
|
|
txt: "Has backrest"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
k: new Tag("backrest", "no"),
|
|
|
|
txt: "Has no backrest"
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
)
|
|
|
|
tr.AttachTo("maindiv")
|
2020-10-02 19:00:24 +02:00
|
|
|
|
2020-10-06 01:37:02 +02:00
|
|
|
/*/
|
2020-10-02 19:00:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
import {Utils} from "./Utils";
|
|
|
|
import {FixedUiElement} from "./UI/Base/FixedUiElement";
|
|
|
|
|
|
|
|
Utils.generateStats((stats) => {
|
2020-10-06 01:37:02 +02:00
|
|
|
new FixedUiElement(stats).AttachTo('maindiv')
|
2020-10-02 19:00:24 +02:00
|
|
|
})
|
|
|
|
//*/
|