Giter Club home page Giter Club logo

wayback-machine-versions's Introduction

Wayback Links

Development

To build, simply run the following commands:

  • npm install
  • gulp compile

Add Wayback Links To Your Webpages

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

<link rel="stylesheet" type="text/css" href="http://rawgit.com/Eagle19243/Wayback-Links/master/build/css/wayback-links.min.css" />
<script type="text/javascript" src="http://rawgit.com/Eagle19243/Wayback-Links/master/build/js/wayback-links.min.js"></script>

WaybackLinks Menu

After adding the WaybackLinks javascript and css to your HTML file, a new link icon will appear next to all the decorated links in the page. Clicking the down arrow in this link icon will pop up a menu with one or more of the following items, depending on the decoration attributes provided in each of the links.

  • Get near link date ...: When clicking this menu item, the javascript library will use the datetime provided in the data-version-date attribute along with the original url and redirect you to the closest archived playback page.

  • Get from ...: Clicking this menu item will redirect you to the playback page url provided in the data-version-url attribute.

  • Get at current date: Clicking this menu item will take you to the original url provided in the data-original-url attribute.

  • Get near page creation date ...: This menu item is similar to the Get near link date ..., except it uses the Schema.org attribute date-published, if provided in the linking HTML page.

  • Get near page modified date ...: This menu item is similar to the Get near link date ..., except it uses the Schema.org attribute date-modified, if provided in the linking HTML page.

Exclude URLs from Wayback Links

You can exclude certain URLs in your webpage from showing the wayback links drop down menu by adding following script before appending wayback-links.min.js

Add urls that should be excluded from wayback links. Accepts full urls or valid regular expression patterns of urls.

<script>
var WLuriPatternsToExclude = [
    "https?://archive.org*",
    "https?://blog.archive.org*"
];
</script>

Example

wayback-machine-versions's People

Contributors

eagle19243 avatar

Watchers

 avatar

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.