<html>
<head>
<title>$now rsync-backup report</title>
+ <meta name=viewport content="width=device-width initial-scale=1.0">
<style type='text/css'><!--
body {
background: white;
padding: 1ex;
background: #eee;
border: solid thin black;
- overflow-y: auto;
+ overflow: auto;
}
+ pre.logdump { max-height: 120ex; }
+
.hide { display: none; }
a.expand-button {
float: right;
<script type='text/javascript'><!--
var LAST_EXPAND = null;
function elt(id) { return document.getElementById(id); }
+ function elt_class_p(elt, cls) {
+ return elt.className.match('\\\\b' + cls + '\\\\b');
+ }
function add_elt_class(elt, cls) {
- if (!elt.className.match('\\\\b' + cls + '\\\\b'))
- elt.className += ' ' + cls;
+ if (!elt_class_p(elt, cls)) elt.className += ' ' + cls;
}
function rm_elt_class(elt, cls) {
elt.className = elt.className.replace(
function toggle_expand(ev, tag) {
var d = elt('logdump-' + tag);
var b = elt('expand-' + tag);
- if (d.className.match(/\bhide\b/)) do_show(d, b);
+ if (elt_class_p(d, 'hide')) do_show(d, b);
else do_hide(d, b);
ev.preventDefault();
}
if (LAST_EXPAND !== null) do_hide(LAST_EXPAND[0], LAST_EXPAND[1]);
var d = elt('logdump-' + tag);
var b = elt('expand-' + tag);
- LAST_EXPAND = [d, b];
- do_show(d, b);
+ if (elt_class_p(d, 'hide')) {
+ LAST_EXPAND = [d, b];
+ do_show(d, b);
+ }
}
function make_toggle_button(tag) {
document.write(
cat <<EOF
<div class=footer>
- Checked at $now $now_time.
- <br><tt>rsync-backup</tt> $VERSION; © 2014 Mark Wooding
+ Checked at $now $now_time<br>
+ <tt>rsync-backup</tt> $VERSION; © 2014 Mark Wooding
</div>
</body>