mapcomplete/test.ts

21 lines
490 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'"
2020-10-08 19:03:00 +02:00
2020-10-11 22:37:55 +02:00
new OpeningHoursVisualization(new UIEventSource<any>({opening_hours:oh}), 'opening_hours').AttachTo('maindiv')
2020-10-04 01:04:46 +02:00
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')
})
//*/