mirror of
https://github.com/misskey-dev/misskey
synced 2024-06-26 04:17:54 +02:00
24 lines
400 B
HTML
24 lines
400 B
HTML
<mk-timemachine-home-widget>
|
|
<mk-calendar-widget design={ data.design } warp={ warp }/>
|
|
<style>
|
|
:scope
|
|
display block
|
|
</style>
|
|
<script>
|
|
this.data = {
|
|
design: 0
|
|
};
|
|
|
|
this.mixin('widget');
|
|
|
|
this.warp = date => {
|
|
this.opts.tl.warp(date);
|
|
};
|
|
|
|
this.func = () => {
|
|
if (++this.data.design == 6) this.data.design = 0;
|
|
this.save();
|
|
};
|
|
</script>
|
|
</mk-timemachine-home-widget>
|