mapcomplete/test.ts

30 lines
686 B
TypeScript
Raw Normal View History

2020-10-03 23:04:46 +00:00
//*
2020-10-05 23:37:02 +00:00
import OpeningHoursPicker from "./UI/Input/OpeningHours/OpeningHoursPicker";
import {VariableUiElement} from "./UI/Base/VariableUIElement";
import {OH} from "./Logic/OpeningHours";
2020-10-05 23:37:02 +00:00
const picker = new OpeningHoursPicker();
new VariableUiElement(picker.GetValue().map(OH.ToString)).AttachTo("extradiv");
picker.AttachTo("maindiv");
2020-10-03 23:04:46 +00:00
2020-10-05 23:37:02 +00:00
window.setTimeout(() => {
picker.GetValue().setData([{
weekday: 1,
startHour: 11,
startMinutes: 0,
endHour: 17,
endMinutes: 0
}]);
}, 1000)
/*/
import {Utils} from "./Utils";
import {FixedUiElement} from "./UI/Base/FixedUiElement";
Utils.generateStats((stats) => {
2020-10-05 23:37:02 +00:00
new FixedUiElement(stats).AttachTo('maindiv')
})
//*/