~sil/desktopcouch/write-replication-status

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
<!doctype html>
<html>
<head>
<title>Your Desktop CouchDB</title>
<script>
window.onload = function() {
    if (document.cookie == "yes") {
        location.href = document.getElementById("there").href;
    }
    document.getElementById("there").addEventListener("click", function(e) {
        document.cookie = "yes; expires=Thu, 31 Dec 2099 21:00:00 UTC";
    }, false);
    var count = 30;
    setInterval(function() {
        count -= 1;
        if (count < 0) {
            location.href = document.getElementById("there").href;
            return;
        }
        document.getElementsByTagName("span")[0].innerHTML = count;
    }, 1000);
}
</script>
</head>
<body>
<h1>Desktop CouchDB</h1>
<p>Your desktop CouchDB is the data store for many of your applications.
You can browse around it to see which data your applications are storing.</p>
<p>You should bookmark this page (by going to <strong>Bookmarks > Bookmark
This Page</strong> or pressing <strong>Ctrl-D</strong>) so you can easily
come back to browse your CouchDB again.</p>
<p>Don't bookmark the CouchDB page itself, because its location may change!</p>
<p>Taking you to your Desktop CouchDB in <span>30</span> seconds...
<a id="there" href="http://[[COUCHDB_USERNAME]]:[[COUCHDB_PASSWORD]]@localhost:[[COUCHDB_PORT]]/_utils">take me
there straight away from now on</a> (remember to bookmark this page first!)</p>
</body>
</html>