Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Commit #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions task-4/submissions/Unicode/Website Habit Tracker/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
11 changes: 11 additions & 0 deletions task-4/submissions/Unicode/Website Habit Tracker/popup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!doctype html>
<html>
<head>
<title>Website Habit Tracker</title>
</head>
<body>
<h1>Website Habit Tracker</h1>
<button id="clickme">Click me</button>
<script type="text/javascript" src="popup.js"></script>
</body>
</html>
9 changes: 9 additions & 0 deletions task-4/submissions/Unicode/Website Habit Tracker/popup.js
Original file line number Diff line number Diff line change
@@ -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);


16 changes: 16 additions & 0 deletions task-4/submissions/Unicode/readme.md
Original file line number Diff line number Diff line change
@@ -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)

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

<h4>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.

</h4>