diff --git a/index.html b/index.html
index a9c042e..636fa89 100644
--- a/index.html
+++ b/index.html
@@ -61,7 +61,13 @@
document.querySelector("body").style.fontSize = fs+"px";
}
window.onresize = setFontSize;
-
+ // when pressing escape scroll up and remove hash
+ document.onkeyup = function(e) {
+ if (e.key === "Escape") {
+ window.scrollTo({ top: 0, left: 0, behavior: 'smooth' });
+ history.pushState("", document.title, window.location.pathname);
+ }
+ }
setFontSize();
fetch('data.md')
.then(data => data.text())
diff --git a/js/data.js b/js/data.js
index 3901612..3cbd939 100644
--- a/js/data.js
+++ b/js/data.js
@@ -86,7 +86,7 @@ function updateItemPosition(item) {
item.x = item.left ? window.innerWidth * 0.05 + item.varianz : window.innerWidth * 0.95 + item.varianz
item.domObject.style.top = item.y + "px";
- item.domObject.style.transform = 'translate(${item.varianz}px,0)'
+ item.domObject.style.transform = `translate(${item.varianz}px,0)`
}
function updateItemBase(item, session,itemIndex) {
item.type = item.markdown ? 'content' : 'actor'