summaryrefslogtreecommitdiff
path: root/qutebrowser/html/history.html
blob: 0eedea56d1ba801cb31f420cf5477e2eec8bb51f (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{% extends "styled.html" %}

{% block style %}
{{super()}}
body {
    max-width: 1440px;
}

td.title {
    word-break: break-all;
}

td.time {
    color: #555;
    text-align: right;
    white-space: nowrap;
}

table {
    margin-bottom: 30px;
}

.date {
    color: #555;
    font-size: 12pt;
    padding-bottom: 15px;
    font-weight: bold;
    text-align: left;
}

#load {
    color: #555;
    font-weight: bold;
    text-decoration: none;
}

#eof {
    color: #aaa;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.session-separator {
    color: #aaa;
    height: 40px;
    text-align: center;
}
{% endblock %}
{% block content %}
<h1>Browsing history</h1>
<div id="hist-container"></div>
<span id="eof" style="display: none">end</span>
<a href="#" id="load" style="display: none">Show more</a>
<script type="text/javascript" src="qute://javascript/history.js"></script>
<script type="text/javascript">
    window.GAP_INTERVAL = {{gap_interval}} * 60 * 1000;

    window.onload = function() {
        var loadLink = document.getElementById('load');
        loadLink.style.display = null;
        loadLink.addEventListener('click', function(ev) {
            ev.preventDefault();
            window.loadHistory();
        });

        window.onscroll = function(ev) {
            if ((window.innerHeight + window.scrollY) >= document.body.scrollHeight) {
                window.loadHistory();
            }
        };

        window.loadHistory();
    };
</script>
{% endblock %}