Fixed broken archive buttons

This commit is contained in:
2022-04-19 19:12:02 +09:00
parent fc0ff969e9
commit 856f1fae88
2 changed files with 19 additions and 2 deletions

View File

@@ -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 = [];