Skip to content

Commit

Permalink
macos bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
RoderickQiu committed Nov 10, 2019
1 parent 68b1db2 commit 0a553e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wnr",
"version": "1.6.0",
"version": "1.6.1",
"description": "It's a timer app with strong expansibility for computers. The name is an abbr of \"Work and Rest\".",
"main": "main.js",
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -229,17 +229,16 @@ li {
width: 90%;
}

#controller, #time-bar {
#controller, #time-bar, #time-bar-macos {
position: absolute;
top: 5px;
right: 8px;
font-size: 18px;
-webkit-app-region: no-drag;
/* let it clickable */
-webkit-user-select: none;
}

#controller {
#controller, #time-bar-macos {
right: 8px;
}

Expand Down
8 changes: 4 additions & 4 deletions timer.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
<body>
<script src="supporter.js"></script>
<div class="d-flex mx-auto justify-content-center align-items-center text-dark" id="main">
<div id="time-bar" class="text-muted">
00:00
</div>
<div id="time-bar" class="text-muted"></div>
<div id="time-bar-macos" class="text-muted"></div><!-- time-bar for systems -->
<div id="controller">
<a href="javascript:call('winhider')" class="small work" id="win-hider"><i class="fa fa-sort-desc fa-fw"
id="winhider"></i></a><span id="no-use-space">&nbsp;&nbsp;</span>
Expand Down Expand Up @@ -232,7 +231,8 @@
seconds = seconds - hours * 3600 - minutes * 60;
$("#now-timing").text(hours + h + minutes + min + seconds + s);
timeget = fnW(dt.getHours()) + ":" + fnW(dt.getMinutes());
$("#time-bar").html(timeget);//显示时间
if (process.platform != "darwin") $("#time-bar").html(timeget);
else $("#time-bar-macos").html(timeget);//显示时间
if (minutes == 0 && morethan1 && hours == 0) {
if (store.get("onemintip") != false) ipc.send("1min");
morethan1 = 0;
Expand Down

0 comments on commit 0a553e4

Please sign in to comment.