Skip to content

Instantly share code, notes, and snippets.

@7shi
Created Aug 24, 2022
Embed
What would you like to do?
[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