MapComplete/test.ts

22 lines
569 B
TypeScript
Raw Normal View History

2020-10-04 01:04:46 +02:00
//*
2020-10-09 21:11:52 +02:00
2020-10-08 19:03:00 +02:00
import {UIEventSource} from "./Logic/UIEventSource";
2020-10-11 22:37:55 +02:00
import OpeningHoursVisualization from "./UI/OhVisualization";
2020-10-09 21:11:52 +02:00
2020-10-11 22:37:55 +02:00
const oh = "Tu-Fr 09:00-17:00 'as usual'; mo off 'yyy'; su off 'xxx'"
const tags = new UIEventSource<any>({opening_hours:oh});
new OpeningHoursVisualization(tags, 'opening_hours').AttachTo('maindiv')
2020-10-04 01:04:46 +02:00
window.setTimeout(() => {tags.data._country = "be"; }, 5000)
2020-10-06 01:37:02 +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')
})
//*/