folk-canvas/demo/cross-iframe-sticky-html-ar...

47 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Iframe Arrows</title>
<style>
html {
height: 100%;
}
body {
min-height: 100%;
position: relative;
margin: 0;
}
folk-shape {
border: 1px solid black;
border-radius: 3px;
}
iframe {
width: 100%;
height: 100%;
/* margins cause infinite resize loops */
box-sizing: border-box;
}
</style>
</head>
<body>
<folk-shape x="10" y="100" width="250" height="400">
<iframe id="frame1" src="./sticky-html-arrow.html"></iframe>
</folk-shape>
<folk-shape x="300" y="100" width="250" height="400">
<iframe id="frame2" src="./sticky-html-arrow.html"></iframe>
</folk-shape>
<folk-rope source="#frame1 >>> #box1" target="#frame2 >>> #box2"></folk-rope>
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-rope.ts';
</script>
</body>
</html>