Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RoderickQiu committed Jul 5, 2019
1 parent 25ea7cb commit 7ff4469
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
<script>
var timecnt, myDate, h, min;
function sumGet() {
console.log('a')
timecnt = (Number($("#work-time").val()) + Number($("#rest-time").val())) * Number($("#loop").val());
$("#allsum-num").html(timecnt);
myDate = new Date();
Expand Down Expand Up @@ -169,8 +170,9 @@
$("#no-use-space").css("display", "none");
}
function allSet() {
if ((Number($("#work-time").val()) + Number($("#rest-time").val())) * Number($("#loop").val())) sumGet();
else {
if (Number($("#work-time").val()) != 0 && Number($("#rest-time").val()) != 0 && Number($("#loop").val()) != 0 && String(Number($("#work-time").val())).indexOf('e') == -1 && String(Number($("#rest-time").val())).indexOf('e') == -1 && String(Number($("#loop").val())).indexOf('e') == -1) {
if ((Number($("#work-time").val()) + Number($("#rest-time").val())) * Number($("#loop").val())) sumGet();
} else {
$("#allsum-num").html("---");
$("#to-num-h").html("--");
$("#to-num-min").html("--");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wnr",
"version": "1.5.1",
"description": "It's a timer app with strong expansibility for computers. The name is a abbr of \"Work and Rest\".",
"description": "It's a timer app with strong expansibility for computers. The name is an abbr of \"Work and Rest\".",
"main": "main.js",
"scripts": {
"start": "electron .",
Expand Down

0 comments on commit 7ff4469

Please sign in to comment.