2020-10-10 09:31:31 -07:00
|
|
|
<template>
|
2020-11-29 02:03:01 -08:00
|
|
|
<div>
|
2021-05-13 04:54:13 -07:00
|
|
|
<LinksNav v-if="config.links.enabled"/>
|
|
|
|
|
2020-10-10 09:31:31 -07:00
|
|
|
<h2>
|
|
|
|
<Icon v="map-marker-question"/>
|
|
|
|
<T>faq.headerLong</T>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<section>
|
2021-04-08 05:37:31 -07:00
|
|
|
<Answer v-for="question in Object.keys($t('faq.questions'))" :key="question"
|
|
|
|
:question="question"
|
|
|
|
:id="question" :ref="question.replace(/-/g, '_')"
|
|
|
|
@click="setHash('', question)"
|
|
|
|
/>
|
2020-10-10 09:31:31 -07:00
|
|
|
</section>
|
2020-10-11 07:27:21 -07:00
|
|
|
|
|
|
|
<section>
|
|
|
|
<Share :title="$t('faq.headerLong')"/>
|
|
|
|
</section>
|
2020-10-10 09:31:31 -07:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-10-10 10:28:01 -07:00
|
|
|
import { head } from "../src/helpers";
|
2020-12-17 13:18:18 -08:00
|
|
|
import hash from "../plugins/hash";
|
2020-10-10 10:28:01 -07:00
|
|
|
|
2020-10-10 09:31:31 -07:00
|
|
|
export default {
|
2020-12-17 13:18:18 -08:00
|
|
|
mixins: [ hash ],
|
2020-10-10 09:31:31 -07:00
|
|
|
mounted() {
|
2020-12-17 13:18:18 -08:00
|
|
|
this.handleHash('', hash => {
|
2021-04-08 05:37:31 -07:00
|
|
|
const $component = this.$refs[hash.replace(/-/g, '_')];
|
|
|
|
if (!$component) {
|
2020-10-10 09:31:31 -07:00
|
|
|
return;
|
|
|
|
}
|
2021-04-08 05:37:31 -07:00
|
|
|
const $el = $component[0].$el;
|
|
|
|
$el.open = true;
|
|
|
|
$el.focus();
|
|
|
|
$el.scrollIntoView();
|
2020-10-10 09:31:31 -07:00
|
|
|
setTimeout(_ => {
|
2021-04-08 05:37:31 -07:00
|
|
|
$el.scrollIntoView();
|
2020-10-10 09:31:31 -07:00
|
|
|
}, 1000);
|
2020-12-17 13:18:18 -08:00
|
|
|
}, false)
|
2020-10-10 09:31:31 -07:00
|
|
|
},
|
2020-10-10 10:28:01 -07:00
|
|
|
head() {
|
|
|
|
return head({
|
|
|
|
title: this.$t('faq.headerLong'),
|
|
|
|
});
|
|
|
|
},
|
2020-10-10 09:31:31 -07:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
details {
|
|
|
|
summary {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|