Skip to content

Commit

Permalink
Some quick fixes to improve quality
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Yang committed Dec 30, 2014
1 parent e055e31 commit 309bcb2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.DS_Store
*.zip
6 changes: 5 additions & 1 deletion prioritab-bundle/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"name": "Prioritab",
"description": "A new tab page to remind you of your priorities",
"version": "0.0.1",
"version": "0.0.2",
"chrome_url_overrides" : {
"newtab": "prioritab.html"
},
"icons": {
"16": "prioritab_logo_v1_16.png",
"128": "prioritab_logo_v1_128.png"
},
"manifest_version": 2,
"permissions": ["storage"]
}
1 change: 1 addition & 0 deletions prioritab-bundle/prioritab.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ a {
ul li {
font-size: 1.2em;
line-height: 1.25em;
cursor: row-resize;
}

/* TOP ROW - DATETIME & COUNTDOWN */
Expand Down
4 changes: 2 additions & 2 deletions prioritab-bundle/prioritab.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ function CountdownMonthYear() {
totalMonthMS = moment().daysInMonth() * 24 * 60 * 60 * 1000,
monthProgressPCT = progressMonthMS / totalMonthMS * 100,
prettyMonthPCT = Math.round(monthProgressPCT),
yearStart = new Date(now.getFullYear(), 1, 1),
yearStart = new Date(now.getFullYear(), 0, 1),
progressYearMS = now - yearStart,
totalYearMS = 365 * 24 * 60 * 60 * 1000,
yearProgressPCT = progressYearMS / totalYearMS * 100,
prettyYearPCT = Math.round(yearProgressPCT);
prettyYearPCT = Math.floor(yearProgressPCT);

document.getElementById('countdown-month-amount').innerHTML = prettyMonthPCT + "%";
document.getElementById('countdown-year-amount').innerHTML = prettyYearPCT + "%";
Expand Down
Binary file added prioritab-bundle/prioritab_logo_v1_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prioritab-bundle/prioritab_logo_v1_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 309bcb2

Please sign in to comment.