summaryrefslogtreecommitdiff
path: root/templates/_base.html
blob: b5826b21ae06fee1771a300a03bf64fe52c22660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    {% block head %}
    <link rel="stylesheet" href="{{ url_for("static", filename="style.css") }}" />
    <title>{% block title %}{% endblock %} - booksearch</title>
    <script>
        function start() {
            var inputField = document.getElementById("searchInput");
            window.location = "/search/" + inputField.value;
            return false;
        }
    </script>
    {% endblock %}
</head>
<body>
    <div id="header">
        booksearch
    </div>
    <div id="search">
        <span class="preSearchField">Search:</span>
        <input id="searchInput" type="text" value="{% block searchValue %}{% endblock %}" placeholder="terms..." />
        <button onclick="start()">Senden</button>
    </div>
    <hr />
    <div id="content">
        {% block content %}{% endblock %}
    </div>
    <div id="footer">
        {% block footer %}
        2010 - booksearch
        {% endblock %}
    </div>
</body>