Giter Club home page Giter Club logo

robustlinks's Introduction

Robust Links

Are you an author of web pages and you don't want your links to die? Here is a really easy way to achieve just that:

  • Include the Robust Links JavaScript and CSS files into your pages as shown below.
  • Robustify your links by adding HTML elements as explained in the Robustifying Links document.
  • You can read about the motivations for using Robust Links here.
  • The result will be that each link is augmented with the ability to see the linked resource as it was at or around the time the link was created. This is achieved by resolving links using the Memento Time Travel infrastructure that aggregates web archives from around the world. At any time, even when a link breaks, the Robust Link will lead to archived content.

Add Robust Links To Your Webpages

Simply append the following lines to the <head> section of your HTML source:

<!-- RobustLinks CSS -->
<link rel="stylesheet" type="text/css" href="https://doi.org/10.25776/z58z-r575" />
<!-- RobustLinks Javascript -->
<script type="text/javascript" src="https://doi.org/10.25776/h1fa-7a28"></script>

RobustLinks Menu

After adding the Robust Links JavaScript source to your HTML file, a new link icon will appear next to all the robustified links in the page. Clicking the down arrow in this icon will pop up a menu with the following items:

  • Current version of page: Clicking this menu item will take you to the original url provided in the data-originalurl attribute.

  • Version archived on <date>: Clicking this menu item will redirect you to the memento url provided in the data-versionurl attribute.

  • Version archived near <date>: When clicking this menu item, the JavaScript library will use the datetime provided in the data-versiondate attribute along with the original url and redirect you to the closest memento around that datetime using the Memento Time Travel service.

Example

License

See the license.

robustlinks's People

Contributors

hariharshankar avatar martinklein0815 avatar shawnmjones avatar yorickc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

robustlinks's Issues

Use the publication date of objects within the page

If an object in the page (e.g. an <article>) has a datePublished property, make use of that date when building links inside it, alongside the page's datePublished date and the data-versiondate date.

This is the date used by my jquery-archival plugin to construct archive links.

switch to HTTPS

timetravel.mementoweb.org supports HTTPS, the script should be updated to reflect that. The script currently introduces mixed content vulnerabilities into secure pages, and thus can't be deployed on websites that deliver over 60% of the web's traffic.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.