Links on the web break all the time, robustify them!
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:
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>
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.
See the license.