Skip to content

Commit

Permalink
Merge pull request #4400 from galaxyproject/crocodile-humboldt
Browse files Browse the repository at this point in the history
remove invalid js
  • Loading branch information
hexylena authored Oct 11, 2023
2 parents c9e1e93 + 29387a9 commit aa8b33b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions news/_posts/2023-10-05-wendi.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,4 @@ You can embed this workflow listing by using the following code, just swap out y
height="300px" width="100%" class="gtn-embed" frameborder="0"></iframe>
```

## Javascript

Do you not like how you have to scroll those `iframes` above? Well there's a
fix for that! Simply add the javascript snippet below somewhere in the page.

```html
<script>
document.querySelectorAll("iframe.gtn-embed").forEach(e => { e.height = e.contentWindow.document.body.scrollHeight + 60 });
</script>
```

<button class="btn btn-primary" onclick="javascript:document.querySelectorAll('iframe.gtn-embed').forEach(e => { e.height = e.contentWindow.document.body.scrollHeight + 60 });">Click to Try It</button>

If you have any ideas for new features or improvements, please [open an issue on GitHub](https://github.com/galaxyproject/training-material/issues/)

0 comments on commit aa8b33b

Please sign in to comment.