diff --git a/task-4/submissions/Unicode/Website Habit Tracker/icon.png b/task-4/submissions/Unicode/Website Habit Tracker/icon.png new file mode 100755 index 0000000..65dc056 Binary files /dev/null and b/task-4/submissions/Unicode/Website Habit Tracker/icon.png differ diff --git a/task-4/submissions/Unicode/Website Habit Tracker/manifest.json b/task-4/submissions/Unicode/Website Habit Tracker/manifest.json new file mode 100755 index 0000000..d78295a --- /dev/null +++ b/task-4/submissions/Unicode/Website Habit Tracker/manifest.json @@ -0,0 +1,15 @@ +{ + "manifest_version": 2, + + "name": "Website Habit Tracker", + "description": "This extension will help you to track the number of times you visit a website.", + "version": "1.1", + + "browser_action": { + "default_icon": "icon.png", + "default_popup": "popup.html" + }, + "permissions": [ + "history" + ] + } \ No newline at end of file diff --git a/task-4/submissions/Unicode/Website Habit Tracker/popup.html b/task-4/submissions/Unicode/Website Habit Tracker/popup.html new file mode 100755 index 0000000..72371b2 --- /dev/null +++ b/task-4/submissions/Unicode/Website Habit Tracker/popup.html @@ -0,0 +1,11 @@ + + + + Website Habit Tracker + + +

Website Habit Tracker

+ + + + \ No newline at end of file diff --git a/task-4/submissions/Unicode/Website Habit Tracker/popup.js b/task-4/submissions/Unicode/Website Habit Tracker/popup.js new file mode 100755 index 0000000..1823531 --- /dev/null +++ b/task-4/submissions/Unicode/Website Habit Tracker/popup.js @@ -0,0 +1,9 @@ +function hello() { + var link = prompt("Please enter the desired url:"); + chrome.history.getVisits({url: link}, function(visitItems){ + alert("The number of times you visited "+link+" : "+visitItems.length); + }); + } + document.getElementById('clickme').addEventListener('click', hello); + + diff --git a/task-4/submissions/Unicode/readme.md b/task-4/submissions/Unicode/readme.md new file mode 100644 index 0000000..f1a8dd7 --- /dev/null +++ b/task-4/submissions/Unicode/readme.md @@ -0,0 +1,16 @@ +# Website Habit Tracker + +A simple web habit tracker which tracks the webpages you visit depending upon your history. + +## Team- Unicode + +* Member 1- [Aditya Raj Singh](https://github.com/AdityaRajSingh) +* Member 2- [Manya Mansi](https://github.com/manya1998) + +

Link of the extension :- https://chrome.google.com/webstore/detail/website-habit-tracker/gmokhooacleeagjgnikkkaefkcabfocp

+ +

This extension is made using html and javascript. + +It shows the no. of times you visited a particular website. Just enter the URL of the website and hit OK. + +

\ No newline at end of file