2 Commits
1.1 ... 1.3

4 changed files with 34 additions and 5 deletions

View File

@ -1,4 +1,4 @@
VERSION =1.1
VERSION =1.3
BUILD_NUMBER_FILE = build-number.txt
BUILD_NUMBER = $$(cat $(BUILD_NUMBER_FILE))

View File

@ -250,3 +250,23 @@ body > section {
margin: 0;
padding: 0 } }
}
#main-buttons {
border-top: solid 2px $accent1;
ul {
list-style: none;
padding: 0;
margin: 0;
li {
display: inline-block;
margin: 0;
a {
border: $accent2 solid thin;
border-radius: 5px;
display: block;
cursor: pointer;
padding: 0.1rem 0.3rem; } } }
}

View File

@ -1,6 +1,7 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>What I am Doing</title>
<link rel="stylesheet" href="css/personal-display.css" type="text/css">
<link href='//fonts.googleapis.com/css?family=Play|Advent+Pro' rel='stylesheet' type='text/css'>
@ -20,6 +21,7 @@
<script src="js/personal-display.js" type="text/javascript" defer></script>
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta name=version content="1.3">
</head>
<body>
<section id=current-task>

View File

@ -2,6 +2,7 @@
var root = this;
var PD = root.PersonalDisplay = {};
PD.version = "1.3"
PD.hasHTML5LocalStorage = function() {
try {
@ -338,7 +339,7 @@
el: $("body"),
events: {
"click a.refresh" : "refresh"
"click a.refresh" : "refresh",
"click a.pause-continue" : "toggleSync" },
initialize: function() {
@ -373,7 +374,7 @@
PD.refreshIntervalId = setInterval(this.refresh, PD.refreshPeriod ? PD.refreshPeriod : 15000);
},
refresh: function() {
refresh: function(evt) {
// If the dialog is still open we skip this sync to give the user
// a chance to finish configuration.
if ($("#config-dialog").is(":visible")) { return; }
@ -496,9 +497,11 @@
collection.remove(model); }});
}
});
if (evt) evt.preventDefault();
},
toggleSync: function() {
toggleSync: function(evt) {
if (PD.refreshIntervalId == null) {
PD.refreshIntervalId = setInterval(this.refresh,
PD.refreshPeriod ? PD.refreshPeriod : 15000);
@ -506,7 +509,11 @@
else {
clearInterval(PD.refreshIntervalId);
PD.refreshIntervalId = null;
$('.pause-continue').text('Resume Monitoring'); } }
$('.pause-continue').text('Resume Monitoring'); }
if (evt) evt.preventDefault();
}
});
PD.main = new PD.Main();