2020-10-04 01:04:46 +02:00
|
|
|
//*
|
2020-10-06 01:37:02 +02:00
|
|
|
import OpeningHoursPicker from "./UI/Input/OpeningHours/OpeningHoursPicker";
|
|
|
|
import {VariableUiElement} from "./UI/Base/VariableUIElement";
|
|
|
|
import {OH} from "./Logic/OpeningHours";
|
2020-08-31 02:59:47 +02:00
|
|
|
|
2020-10-06 01:37:02 +02:00
|
|
|
const picker = new OpeningHoursPicker();
|
|
|
|
new VariableUiElement(picker.GetValue().map(OH.ToString)).AttachTo("extradiv");
|
|
|
|
picker.AttachTo("maindiv");
|
2020-10-02 19:00:24 +02:00
|
|
|
|
2020-10-04 01:04:46 +02:00
|
|
|
|
2020-10-06 01:37:02 +02:00
|
|
|
window.setTimeout(() => {
|
|
|
|
picker.GetValue().setData([{
|
|
|
|
weekday: 1,
|
|
|
|
startHour: 11,
|
|
|
|
startMinutes: 0,
|
|
|
|
endHour: 17,
|
|
|
|
endMinutes: 0
|
|
|
|
}]);
|
|
|
|
|
|
|
|
}, 1000)
|
|
|
|
/*/
|
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
|
|
|
})
|
|
|
|
//*/
|