Explorar el Código

Scroll upon page load

master
Fen Dweller hace 5 años
padre
commit
d7ed7ee387
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. +6
    -2
      templates/changelog.html

+ 6
- 2
templates/changelog.html Ver fichero

@@ -5,9 +5,13 @@
<title>crux.sexy</title>
<link rel="stylesheet" type="text/css" href="changelog.css">
<script>
window.addEventListener("hashchange", function scroll() {
window.onload = () => {
window.scrollTo(0, -500);
});
window.addEventListener("hashchange", function scroll() {
window.scrollTo(0, -500);
});
};
</script>
</head>



Cargando…
Cancelar
Guardar