Trying to get a working, simple example of using splitjs.
Last active
April 1, 2019 16:27
-
-
Save fgeorges/b2f7a007a30395b54715df8c5eaf7dda to your computer and use it in GitHub Desktop.
Testing splitjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Split panels</title> | |
<script type="text/javascript" src="https://unpkg.com/split.js/dist/split.min.js"></script> | |
</head> | |
<body> | |
<div> | |
<div id="one">content one</div> | |
<div id="two">content two</div> | |
<div id="three">content three</div> | |
</div> | |
</body> | |
<script type="text/javascript"> | |
window.onload = function() { | |
Split(['#one', '#two'], { | |
sizes: [25, 75], | |
minSize: 200 | |
}); | |
}; | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment