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>
|
|
|
|
|
2021-09-05 10:44:54 -07:00
|
|
|
<details class="border mb-3" open>
|
|
|
|
<summary class="d-none"/>
|
|
|
|
<div class="px-3">
|
|
|
|
<Mission/>
|
|
|
|
</div>
|
|
|
|
</details>
|
2021-07-24 05:55:24 -07:00
|
|
|
|
2021-09-05 10:44:54 -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-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>
|