mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-22 15:53:01 +00:00
Calendar remove figcaption
This commit is contained in:
parent
644b1eb3e3
commit
d61c27deca
1 changed files with 0 additions and 17 deletions
|
@ -2,9 +2,6 @@
|
|||
<MultiModal @handle="modal_handle" />
|
||||
|
||||
<figure>
|
||||
<figcaption class="has-text-primary-dark">
|
||||
{{ figure_caption }}
|
||||
</figcaption>
|
||||
<div class="image is-unselectable">
|
||||
<img :src="$advent22.api_url('user/background_image')" />
|
||||
<ThouCanvas>
|
||||
|
@ -14,10 +11,6 @@
|
|||
:door="door"
|
||||
:visible="store.is_touch_device"
|
||||
@click="door_click(door.day)"
|
||||
@touch="door_hover(door.day)"
|
||||
@mouseover="door_hover(door.day)"
|
||||
@touchend="door_unhover"
|
||||
@mouseout="door_unhover"
|
||||
/>
|
||||
</ThouCanvas>
|
||||
</div>
|
||||
|
@ -47,24 +40,14 @@ import ThouCanvas from "./calendar/ThouCanvas.vue";
|
|||
})
|
||||
export default class extends Vue {
|
||||
public readonly doors!: Door[];
|
||||
private readonly idle_caption = "Finde die Türchen auf dem Adventskalender!";
|
||||
public readonly store = advent22Store();
|
||||
|
||||
private multi_modal?: MultiModal;
|
||||
public figure_caption = this.idle_caption;
|
||||
|
||||
public modal_handle(modal: MultiModal) {
|
||||
this.multi_modal = modal;
|
||||
}
|
||||
|
||||
public door_hover(day: number) {
|
||||
this.figure_caption = this.$advent22.name_door(day);
|
||||
}
|
||||
|
||||
public door_unhover() {
|
||||
this.figure_caption = this.idle_caption;
|
||||
}
|
||||
|
||||
public door_click(day: number) {
|
||||
if (this.multi_modal === undefined) return;
|
||||
this.multi_modal.show_progress();
|
||||
|
|
Loading…
Reference in a new issue