Skip to content

Commit

Permalink
improve layout and scroll to el
Browse files Browse the repository at this point in the history
  • Loading branch information
glendc committed Feb 8, 2024
1 parent aa02091 commit 9fd4180
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
18 changes: 15 additions & 3 deletions site/1/mathbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>rekendoos</title>
<title>rekendoos oefening</title>

<meta property="og:title" content="huiswerk rekendoos" />
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%2210 0 100 100%22><text y=%22.90em%22 font-size=%2290%22>🏫</text></svg>">

<meta property="og:title" content="rekendoos" />
<meta property="og:locale" content="nl_BE" />
<meta property="og:type" content="website">
<meta property="og:description"
content="gratis huiswerk middel voor rekenen te oefenen in het 1ste leerjaar van de basisschool" />
<meta property="og:site_name" content="huiswerk" />
<meta property="og:site_name" content="rekendoos" />

<link rel="stylesheet" href="/css/reset.css">

Expand All @@ -34,6 +37,11 @@
padding: 5px;
}


#form-setup>* {
margin-block-end: 10px;
}

#form-exercise {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -259,6 +267,10 @@ <h3 id="form-title"></h3>
answerEl.style.backgroundColor = "#fffde6";
answerEl.focus();
answerEl.click();

document.getElementById("exercise").scrollTo({
behavior: "smooth",
})
}

function validateAnswer() {
Expand Down
9 changes: 6 additions & 3 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>huiswerk</title>
<title>basisschool oefeningen</title>

<meta property="og:title" content="huiswerk" />
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%2210 0 100 100%22><text y=%22.90em%22 font-size=%2290%22>🏫</text></svg>">

<meta property="og:title" content="bassisschool" />
<meta property="og:locale" content="nl_BE" />
<meta property="og:type" content="website">
<meta property="og:description" content="gratis huiswerk middel voor de basisschool" />
<meta property="og:site_name" content="huiswerk" />
<meta property="og:site_name" content="bassisschool" />

<link rel="stylesheet" href="/css/reset.css">

Expand Down

0 comments on commit 9fd4180

Please sign in to comment.