Skip to content

Commit

Permalink
fixing license file and adding readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam Hathi committed May 18, 2017
1 parent 37c5f34 commit cae84f9
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 14 deletions.
35 changes: 21 additions & 14 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
document.body.innerHTML += "<dialog> This page may be based on content from: " + "<a href='" + response[0].source + "'>" + response[0].source + "</a> <br><button>Close</button></dialog>";
var dialog = document.querySelector("dialog");
dialog.querySelector("button").addEventListener("click", function() {
dialog.close();
dialog.parentNode.removeChild(dialog);
});

window.setTimeout(function () {
var dialogToClose = document.querySelector("dialog");
dialog.close();
dialog.parentNode.removeChild(dialog);
}, 3000);
dialog.style = "position: fixed; width: 400px; height: auto; border: 1px solid rgb(51, 102, 153); padding: 10px; background-color: rgb(255, 255, 255 ); z-index: 2001; overflow: hidden; text-align: center; top: 25px; left: calc(100% - 425px);";
dialog.show();
MIT License

Copyright (c) 2017 Duke Reporters' Lab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Story Tracer

Story Tracer is a Chrome extension that identifies the source information that web pages are based upon. Story Tracer uses the [ground-truth](https://github.com/ReportersLabDuke/ground-truth) node library.

## How it works

When you navigate to a webpage with Story Tracer added to Chrome, Story Tracer will try to identify the source behind the webpage by looking at the links on the page. If a likely source is identified, a popup will appear indicating that the page you are on might be based on content from another page:

![Story Tracer in action](https://pbs.twimg.com/media/DAJQwOAUQAA4eUc.jpg)


## Installation instructions

Story Tracer is not yet available on the Chrome webstore. This repository can be downloaded and then added to Chrome as an extension in developer mode.

## License and copyright

Copyright Duke Reporters' Lab

Story Tracer is made available under the MIT licence

0 comments on commit cae84f9

Please sign in to comment.