forked from Botanical/BotanJS
Fixed broken archive buttons
This commit is contained in:
parent
fc0ff969e9
commit
856f1fae88
@ -53,6 +53,23 @@
|
|||||||
initTopButton();
|
initTopButton();
|
||||||
navControl();
|
navControl();
|
||||||
initBackgroundParallax();
|
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 = [];
|
var topButtons = [];
|
||||||
|
@ -26,7 +26,7 @@ spec:
|
|||||||
mountPath: "/app/cache"
|
mountPath: "/app/cache"
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: registry.k8s.astropenguin.net/astrojs:2022.04.10
|
image: registry.k8s.astropenguin.net/astrojs:2022.04.19
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsGroup: 1001
|
runAsGroup: 1001
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
@ -54,7 +54,7 @@ spec:
|
|||||||
- name: redis
|
- name: redis
|
||||||
image: redis:6.0.8-alpine
|
image: redis:6.0.8-alpine
|
||||||
- name: compiler
|
- name: compiler
|
||||||
image: registry.k8s.astropenguin.net/astrojs:2022.04.10
|
image: registry.k8s.astropenguin.net/astrojs:2022.04.19
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsGroup: 1001
|
runAsGroup: 1001
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
Loading…
Reference in New Issue
Block a user