mapcomplete/test.ts

24 lines
573 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-09 21:11:52 +02:00
import OpeningHoursInput from "./UI/Input/OpeningHours/OpeningHoursInput";
const oh = "Sep 1-Feb 28 Mo-Th 08:00-12:00, 13:30-17:30; Mar 1-Aug 31 Mo-Fr 07:00-12:00, 13:30-17:30; PH off"
2020-10-08 19:03:00 +02:00
2020-10-09 21:11:52 +02:00
const source = new UIEventSource<string>("")
new OpeningHoursInput(source).AttachTo('maindiv')
console.log("SEtting ",oh)
source.setData(oh)
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')
})
//*/