From b31a06c2f1b55813a82f53d849d3ecbea3a6bc3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no> Date: Tue, 26 Jan 2021 09:19:29 +0100 Subject: [PATCH] fikser meta#236 --- src/App.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/App.vue b/src/App.vue index 37e13941..44259995 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,10 @@ <template> <main id="app"> <header> - <h1>Ordbøkene</h1> + <h1><a href="/">Ordbøkene</a></h1> <p class="about-link"><a href="#">OM ORDBØKENE</a></p> - <p class="sub-title">Bokmåls- og Nynorskordboka</p> - <p class="mission-statement">Skrivemåte og bøying i tråd med norsk rettskriving </p> + <p class="sub-title"><a href="/">Bokmål- og Nynorskordboka</a></p> + <p class="mission-statement"><a href="/">Skrivemåte og bøying i tråd med norsk rettskriving </a></p> </header> <div class="search_container"> <autocomplete :debounceTime="100" :auto-select="true" :search="search" @submit="select_result" placeholder="søk..." ref="search"> @@ -184,12 +184,13 @@ export default { this.search_results = event.articles this.article = {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}} history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang}, '') - this.$plausible.trackEvent('dropdown selection', {props: {query: event.q, dictionary: event.dictionary, match: event.match}}) + this.$plausible.trackEvent('dropdown selection', {props: {query: event.q, match: event.match}}) }else{ this.waiting_for_articles = true this.article = {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}} this.$router.push(`/${this.lang}/search/${event.q}`) navigate_to_search(this, event.q) + this.$plausible.trackEvent('dropdown selection', {props: {query: event.q, match: '<fritekstsøk>'}}) } }, article_link_click: function(item) { @@ -237,7 +238,6 @@ export default { }, watch: { $route() { - console.log(this.$route.params.lang) this.$plausible.trackEvent('language', {props: {code: this.$route.params.lang}}) } } @@ -280,6 +280,11 @@ p.about-link { float: right; } +header a { + color: inherit; + text-decoration: none; +} + p.about-link > a{ text-decoration: none; border-bottom: solid #BC477B 4px; -- GitLab