Skip to content

Commit 19be72f

Browse files
author
Trishul Goel
committed
Date diff addon demo
1 parent 757eab7 commit 19be72f

File tree

6 files changed

+123
-0
lines changed

6 files changed

+123
-0
lines changed

dateDiff/icons/icon_32.png

961 Bytes
Loading

dateDiff/icons/icon_48.png

1.14 KB
Loading

dateDiff/manifest.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
3+
"description": "Days diffence finder - Find number of days between two given dates (For explicitly lazy souls[like me] who think counting days is much hassle)",
4+
"manifest_version": 2,
5+
"name": "Date diff",
6+
"version": "1.0",
7+
"homepage_url": "https://github.com/tsl143/jsDemos/dateDiff",
8+
"icons": {
9+
"48": "icons/icon_48.png"
10+
},
11+
12+
"browser_action": {
13+
"default_icon": "icons/icon_32.png",
14+
"default_title": "Date Diff finder",
15+
"default_popup": "popup/date.html"
16+
}
17+
18+
}

dateDiff/popup/date.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
3+
<html>
4+
<head>
5+
<meta charset="utf-8">
6+
<link rel="stylesheet" href="flatpickr.min.css">
7+
</head>
8+
<body>
9+
<center>
10+
<input id="fromDate" class="flatpickr flatpickr-input" placeholder="From Date" data-id="datetime" readonly="readonly" type="text">
11+
<input id="toDate" class="flatpickr flatpickr-input" placeholder="To Date" data-id="datetime" readonly="readonly" type="text">
12+
<br>
13+
<a class="buttonOps" id="calculater">CALCULATE</a>&nbsp;<a class="buttonOps" id="reset">RESET</a><br>
14+
<label id="results"></label>
15+
</center>
16+
17+
</body>
18+
<script src="flatpickr.js"></script>
19+
20+
</html>

dateDiff/popup/flatpickr.js

+50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dateDiff/popup/flatpickr.min.css

+35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)