Skip to content
Snippets Groups Projects
Commit b31a06c2 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

fikser meta#236

parent f5495699
No related branches found
No related tags found
No related merge requests found
<template> <template>
<main id="app"> <main id="app">
<header> <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="about-link"><a href="#">OM ORDBØKENE</a></p>
<p class="sub-title">Bokmåls- og Nynorskordboka</p> <p class="sub-title"><a href="/">Bokmål- og Nynorskordboka</a></p>
<p class="mission-statement">Skrivemåte og bøying i tråd med norsk rettskriving </p> <p class="mission-statement"><a href="/">Skrivemåte og bøying i tråd med norsk rettskriving </a></p>
</header> </header>
<div class="search_container"> <div class="search_container">
<autocomplete :debounceTime="100" :auto-select="true" :search="search" @submit="select_result" placeholder="søk..." ref="search"> <autocomplete :debounceTime="100" :auto-select="true" :search="search" @submit="select_result" placeholder="søk..." ref="search">
...@@ -184,12 +184,13 @@ export default { ...@@ -184,12 +184,13 @@ export default {
this.search_results = event.articles this.search_results = event.articles
this.article = {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}} this.article = {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}}
history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang}, '') 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{ }else{
this.waiting_for_articles = true this.waiting_for_articles = true
this.article = {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}} this.article = {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}}
this.$router.push(`/${this.lang}/search/${event.q}`) this.$router.push(`/${this.lang}/search/${event.q}`)
navigate_to_search(this, 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) { article_link_click: function(item) {
...@@ -237,7 +238,6 @@ export default { ...@@ -237,7 +238,6 @@ export default {
}, },
watch: { watch: {
$route() { $route() {
console.log(this.$route.params.lang)
this.$plausible.trackEvent('language', {props: {code: this.$route.params.lang}}) this.$plausible.trackEvent('language', {props: {code: this.$route.params.lang}})
} }
} }
...@@ -280,6 +280,11 @@ p.about-link { ...@@ -280,6 +280,11 @@ p.about-link {
float: right; float: right;
} }
header a {
color: inherit;
text-decoration: none;
}
p.about-link > a{ p.about-link > a{
text-decoration: none; text-decoration: none;
border-bottom: solid #BC477B 4px; border-bottom: solid #BC477B 4px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment