Kore Web UI
by salitrapraveen
HTML
<h1>KoreManager Console</h1>
<div id="content">
<div id="testbeds">
<h2>Test Beds</h2>
</div>
<div id="vmbox">
<h2>Virtual Machines</h2>
<button type="button" id="show">Show Templates</button>
</div>
</div>
CSS
body {
margin: 0px;
padding: 0px;
font-size: 14px;
font-family: Arial,Helvetica,sans-serif;
}
h1 {
color: #fff;
font-weight: bold;
font-size: 16px;
margin: 0px 0 10px 0;
padding: 4px;
min-width: 500px;
background-color: #3A5157;
position: relative;
overflow: hidden;
}
h2{
text-align: left;
color: #fff;
font-weight: bold;
font-size: 14px;
background-color: #35799C;
position: relative;
box-shadow: 0px 2px 4px #587C85;
margin: 0px 0px 20px 0px;
padding: 4px;
}
#content {
position: absolute;
padding: 0px;
top: 34px;
bottom: 10px;
left: 10px;
right: 10px;
min-height: 200px;
min-width: 500px;
border: 1px solid #CFCFCF;
box-shadow: 2px 2px 4px #999999;
border-radius: 4px;
overflow: auto;
}
#testbeds {
position: relative;
float: left;
width: 200px;
height: 100%;
border-right: 2px solid #CFCFCF;
border-radius: 2px;
overflow: auto;
}
#vmbox {
position: absolute;
left: 202px;
right: 0px;
min-width: 200px;
height: 100%;
border-radius: 2px;
overflow: auto;
}
#templatebox {
position: absolute;
right: 0px;
width: 200px;
height: 100%;
border-radius: 2px;
border-left: 2px solid #CFCFCF;
overflow: auto;
}
JavaScript
$(function (){
var showTemplate = function(){
var $box = $('<div/>').attr('id', 'templatebox');
$('<h2/>').text('VM Templates').appendTo($box);
$($box).slideUp(function(){
$(this).appendTo($('#content'))
});
};
$('#show').click(showTemplate);
});