diff --git a/index.html b/index.html
index 3d0f4e2..ceb32bc 100644
--- a/index.html
+++ b/index.html
@@ -95,7 +95,12 @@ Enter your own program into the array of RAM
diff --git a/wires.js b/wires.js
index 231073b..6e23972 100644
--- a/wires.js
+++ b/wires.js
@@ -340,6 +340,7 @@ function recenter(){
top: top+'px',
left: left+'px',
});
+ document.getElementById('linkHere').href=location.pathname+"?"+whereAmIAsQuery();
}
function handleClick(e){
@@ -440,6 +441,10 @@ function setupChipLayoutGraphics(){
}
// utility function to save graphics pan and zoom
+function whereAmIAsQuery(){
+ var w=whereAmI();
+ return "panx="+w[0]+"&pany="+w[1]+"&zoom="+w[2]
+}
function whereAmI(){
return [centerx, centery, zoom];
}