Skip to content

Instantly share code, notes, and snippets.

@7shi
Created August 24, 2022 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 7shi/7cc85cdb9d77c49373fcf9a37798d0d7 to your computer and use it in GitHub Desktop.
Save 7shi/7cc85cdb9d77c49373fcf9a37798d0d7 to your computer and use it in GitHub Desktop.
[HTML]Splitter & PDF
<!DOCTYPE html>
<html lang="ja" style="height:100%">
<head>
<meta charset="utf-8">
<style>
.gutter {
background-color: #eee;
}
.gutter.gutter-vertical {
cursor: row-resize;
}
</style>
</head>
<body style="height:100%; margin:0; padding:0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/split.js/1.6.5/split.min.js"></script>
<div class="split" style="height:100%">
<div id="split-0">
<embed src="Heliand-1a.pdf" type="application/pdf" style="width:100%; height:100%" />
</div>
<div id="split-1">
<embed src="Heliand-1c.pdf" type="application/pdf" style="width:100%; height:100%" />
</div>
<div id="split-2">
<embed src="Heliand-1b.pdf" type="application/pdf" style="width:100%; height:calc(100% - 8px)" />
</div>
</div>
<script>
Split(["#split-0", "#split-1", "#split-2"], {
direction: "vertical",
minSize: 10
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment