Skip to content

Commit

Permalink
Fix previous commit - use correct target attribute value
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Dec 8, 2024
1 parent 78c1f8d commit 9afb81c
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/basicUsage.html
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/dynamic_tables.html
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/ecephys.html
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/icephys.html
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/images.html
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/ogen.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/ophys.html
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/read_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/remote_read.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/html/tutorials/scratch.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "top");
link.setAttribute("target", "_top");
});
});
</script>
Expand Down
9 changes: 9 additions & 0 deletions tools/documentation/private/update_link_target_js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script>
// Update all links with href starting with "https:" to have target="_top"
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="https:"]');
links.forEach(link => {
link.setAttribute("target", "_top");
});
});
</script>

0 comments on commit 9afb81c

Please sign in to comment.