forked from Botanical/BotanJS
Fixed broken archive buttons
This commit is contained in:
@@ -53,6 +53,23 @@
|
||||
initTopButton();
|
||||
navControl();
|
||||
initBackgroundParallax();
|
||||
initArchiveButtons();
|
||||
};
|
||||
|
||||
var initArchiveButtons = function()
|
||||
{
|
||||
Dand.id( "archive-save" )
|
||||
.setAttribute(
|
||||
"href", "https://archive.today/?run=1&url=" + encodeURIComponent( document.location )
|
||||
);
|
||||
Dand.id( "archive-view" )
|
||||
.setAttribute(
|
||||
"href", "https://archive.today/" + document.location.href
|
||||
);
|
||||
Dand.id( "archive-list" )
|
||||
.setAttribute(
|
||||
"href", "https://archive.today/" + encodeURIComponent( document.location.hostname )
|
||||
);
|
||||
};
|
||||
|
||||
var topButtons = [];
|
||||
|
Reference in New Issue
Block a user