summaryrefslogtreecommitdiff
path: root/templates/_base.html
blob: ba9e8f2739058432113bfdee97c3bee0bd1815f0 (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
36
37
38
39
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
    {% block head %}
    <link type="text/css" href="{{ url_for("static", filename="style.css") }}" rel="stylesheet" />
    <link type="text/css" href="{{ url_for("static", filename="css/ui-lightness/jquery-ui-1.8.6.custom.css") }}"rel="Stylesheet" />   
    <script type="text/javascript" src="{{ url_for("static", filename="js/jquery-1.4.2.min.js") }}"></script>
    <script type="text/javascript" src="{{ url_for("static", filename="js/jquery-ui-1.8.6.custom.min.js") }}"></script>
    <title>{% block title %}{% endblock %} - booksearch</title>
    <script>
        function start() {
            var inputField = document.getElementById("searchInput");
            window.location = "{{ url_for("do_search") }}" + inputField.value;
            return false;
        }
    </script>
    {% block javascript %}{% endblock %}
    {% 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>
    <hr />
    <div id="footer">
        {% block footer %}
            <a href="http://xapek.org/~yvesf/viewgit/?a=summary&p=booksearch.git" title="booksearch homepage">powered by booksearch</a>
        {% endblock %}
    </div>
</body>