ImageGrid/ui/experiments/panels.html

78 lines
1.2 KiB
HTML
Raw Normal View History

<html>
<link rel="stylesheet" type="text/css" href="../css/editor.css">
<style>
.docked-panels {
background: gray;
width: 100%;
height: 100%;
}
.viewer {
background: white;
width: 100%;
height: 100%;
}
</style>
<script src="../ext-lib/jquery.js"></script>
<script src="../ext-lib/jquery-ui.js"></script>
<script src="../lib/panels.js"></script>
<script src="../lib/editor.js"></script>
<script>
$(function(){
var panel = makePanel('Test Panel A', true)
.css({
top: 50,
left: 50,
})
makeSubPanel('Test Sub Panel A', true, panel)
.find('.content')
.html('<h1>Panel A</h1>')
makeSubPanel('Test Sub Panel B', true, panel)
.find('.content')
.html('<h2>Panel B</h2>')
makeSubPanel('Test Sub Panel C', true, panel)
.find('.content')
.html('<h3>Panel C</h3>')
/*
$('.docked-panels')
.sortable({
cancel: '.viewer',
connectWith: '.panel-content',
})
*/
$('body')
.append(panel)
//.append(makePanel('Test Panel B', true))
//.append(makePanel('Test Panel C', true))
})
</script>
<body>
<div class="docked-panels panel-content">
<div class="viewer">
</div>
</div>
</body>
</html>
<!-- vim:set ts=4 sw=4 : -->