Skip to content

Commit

Permalink
Added English subheading to search field
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Oct 12, 2024
1 parent 4b07cb6 commit d778fbf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/dict/n.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ needleful n. nálþráður
needler n. nálasmiður
needlewoman n. saumakona
needlework n. saumaskapur; saum
nefarious l. níðingslegur, svívirðilegur ([~ traffic])
nefarious l. níðingslegur, svívirðilegur
negate s. neita; ónýta
negation n. neitun
negative l. neitandi, neilegur, neikvæður; n. neitun; neitunarorð; neikvæði; s. neita, hafna; ósanna; mótmæla ([~ a statement]); ónýta (áhrif)
Expand Down
11 changes: 11 additions & 0 deletions static/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ h2 {
margin-bottom: 1.0em;
}

h1.heading {
margin-bottom: 0.0em;
}

h2.english_subheading {
font-size: 0.9em;
margin-bottom: 1.0em;
margin-left: 0.1em;
color: #555
}

a {
color: rgb(13, 25, 83);
text-decoration: underline;
Expand Down
2 changes: 1 addition & 1 deletion templates/container.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<li><a href="/about">Um</a></li>
<li><a href="/files">Gögn</a></li>
<li><a href="/english_icelandic_dictionary" title="English">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="24" height="12">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="24" height="12" alt="English">
<clipPath id="s">
<path d="M0,0 v30 h60 v-30 z" />
</clipPath>
Expand Down
6 changes: 4 additions & 2 deletions templates/searchfield.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<script>
// Prevent empty search submission
function validate_search() {
return !(document.getElementById("q").value == "");
return !(document.getElementById("q").value.trim() == "");
}
</script>

<h1>Ensk-íslensk orðabók</h1>
<h1 class="heading">Ensk-íslensk orðabók</h1>
<h2 class="english_subheading">English-Icelandic dictionary</h2>

<form action="/search" method="GET" name="search" accept-charset="utf-8" onsubmit="validate_search();">
<div class="grid-x">
Expand Down

0 comments on commit d778fbf

Please sign in to comment.