Commit fb5e8714 authored by Robert Knight's avatar Robert Knight

Remove "tall iframe" example from dev server

This was created to simulate a scenario in VitalSource's book reader,
but they changed their reader so that it no longer uses a tall frame.
parent de2f7dd4
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Tall iframe test</title>
<style>
body {
font-family: sans-serif;
}
iframe {
width: 80%;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<h1>Tall iframe test</h1>
<p>
The iframe below has an <code>enable-annotation</code> attribute so
that Hypothesis is injected into it by the parent frame.
</p>
<p>
This iframe resizes itself to fit the content, as opposed to being
scrollable. This mimics the way book content is presented in the
VitalSource Bookshelf reader. See <a href="https://github.com/hypothesis/client/issues/3590">
this GitHub issue</a>.
</p>
<iframe src="/document/injectable-frame" enable-annotation></iframe>
{{{hypothesisScript}}}
<script>
const frame = document.querySelector('iframe');
// Resize iframe to fit document content when it has loaded.
frame.contentWindow.addEventListener('DOMContentLoaded', () => {
frame.height = frame.contentDocument.documentElement.scrollHeight + 'px';
});
</script>
</body>
</html>
......@@ -30,7 +30,6 @@
<li><a href="/document/shadow-dom">Content in shadow DOM</a></li>
<li><a href="/document/host-in-shadow-root">Hypothesis loaded into frame in shadow root</a></li>
<li><a href="/document/parent-frame">Annotation-enabled iframe</a></li>
<li><a href="/document/tall-iframe">Tall iframe</a></li>
<li><a href="/document/sidebar-external-container">Sidebar in external container</a></li>
<li><a href="/document/multi-frames">Page containing multiple iframes with Hypothesis loaded</a></li>
<li><a href="/document/cross-origin-iframe">Page containing a cross-origin guest iframe</a></li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment