Add log to footer
This commit is contained in:
parent
12b6f72c43
commit
83a464b23c
|
@ -10,8 +10,13 @@
|
||||||
<link href="./css/app.css" rel="stylesheet">
|
<link href="./css/app.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body onload="init();">
|
<body onload="init();">
|
||||||
<nav id="toolbar">
|
<nav id="toolbar"></nav>
|
||||||
</nav>
|
<div id="screens">
|
||||||
|
</div>
|
||||||
|
<footer id="footer">
|
||||||
|
<div id="log"></div>
|
||||||
|
</div id="status"></div>
|
||||||
|
</footer>
|
||||||
<script src="./js/app.js"></script>
|
<script src="./js/app.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -70,10 +70,32 @@ var init = function () {
|
||||||
$('#toolbar').w2toolbar({
|
$('#toolbar').w2toolbar({
|
||||||
name: 'toolbar',
|
name: 'toolbar',
|
||||||
items: [
|
items: [
|
||||||
{ type: 'radio', id: 'item3', group: '1', caption: 'Radio 1', icon: 'fa-star', checked: true },
|
{ type: 'radio', id: 'item1', group: '1', caption: 'Sequence', icon: 'fa-star', checked: true },
|
||||||
{ type: 'radio', id: 'item4', group: '1', caption: 'Radio 2', icon: 'fa-star-empty' },
|
{ type: 'radio', id: 'item2', group: '1', caption: 'Script', icon: 'fa-star-empty' },
|
||||||
|
{ type: 'radio', id: 'item3', group: '1', caption: 'Controls', icon: 'fa-star-empty' },
|
||||||
|
{ type: 'radio', id: 'item4', group: '1', caption: 'Light', icon: 'fa-star-empty' },
|
||||||
{ type: 'spacer' },
|
{ type: 'spacer' },
|
||||||
{ type: 'button', id: 'item5', caption: 'Item 5', icon: 'fa-home' }
|
{ type: 'button', id: 'item5', group: '1', caption: 'Settings', icon: 'fa-home' }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
$('#log').w2grid({
|
||||||
|
name : 'myGrid',
|
||||||
|
columns: [
|
||||||
|
{ field: 'fname', caption: 'First Name', size: '30%' },
|
||||||
|
{ field: 'lname', caption: 'Last Name', size: '30%' },
|
||||||
|
{ field: 'email', caption: 'Email', size: '40%' },
|
||||||
|
{ field: 'sdate', caption: 'Start Date', size: '120px' },
|
||||||
|
],
|
||||||
|
records: [
|
||||||
|
{ recid: 1, fname: 'John', lname: 'Doe', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 2, fname: 'Stuart', lname: 'Motzart', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 3, fname: 'Jin', lname: 'Franson', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 4, fname: 'Susan', lname: 'Ottie', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 5, fname: 'Kelly', lname: 'Silver', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 6, fname: 'Francis', lname: 'Gatos', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 7, fname: 'Mark', lname: 'Welldo', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 8, fname: 'Thomas', lname: 'Bahh', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 9, fname: 'Sergei', lname: 'Rachmaninov', email: 'jdoe@gmail.com', sdate: '4/3/2012' }
|
||||||
|
]
|
||||||
|
});
|
||||||
};
|
};
|
|
@ -15,10 +15,32 @@ var init = function () {
|
||||||
$('#toolbar').w2toolbar({
|
$('#toolbar').w2toolbar({
|
||||||
name: 'toolbar',
|
name: 'toolbar',
|
||||||
items: [
|
items: [
|
||||||
{ type: 'radio', id: 'item3', group: '1', caption: 'Radio 1', icon: 'fa-star', checked: true },
|
{ type: 'radio', id: 'item1', group: '1', caption: 'Sequence', icon: 'fa-star', checked: true },
|
||||||
{ type: 'radio', id: 'item4', group: '1', caption: 'Radio 2', icon: 'fa-star-empty' },
|
{ type: 'radio', id: 'item2', group: '1', caption: 'Script', icon: 'fa-star-empty' },
|
||||||
|
{ type: 'radio', id: 'item3', group: '1', caption: 'Controls', icon: 'fa-star-empty' },
|
||||||
|
{ type: 'radio', id: 'item4', group: '1', caption: 'Light', icon: 'fa-star-empty' },
|
||||||
{ type: 'spacer' },
|
{ type: 'spacer' },
|
||||||
{ type: 'button', id: 'item5', caption: 'Item 5', icon: 'fa-home' }
|
{ type: 'button', id: 'item5', group: '1', caption: 'Settings', icon: 'fa-home' }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
$('#log').w2grid({
|
||||||
|
name : 'myGrid',
|
||||||
|
columns: [
|
||||||
|
{ field: 'fname', caption: 'First Name', size: '30%' },
|
||||||
|
{ field: 'lname', caption: 'Last Name', size: '30%' },
|
||||||
|
{ field: 'email', caption: 'Email', size: '40%' },
|
||||||
|
{ field: 'sdate', caption: 'Start Date', size: '120px' },
|
||||||
|
],
|
||||||
|
records: [
|
||||||
|
{ recid: 1, fname: 'John', lname: 'Doe', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 2, fname: 'Stuart', lname: 'Motzart', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 3, fname: 'Jin', lname: 'Franson', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 4, fname: 'Susan', lname: 'Ottie', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 5, fname: 'Kelly', lname: 'Silver', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 6, fname: 'Francis', lname: 'Gatos', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 7, fname: 'Mark', lname: 'Welldo', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 8, fname: 'Thomas', lname: 'Bahh', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
|
||||||
|
{ recid: 9, fname: 'Sergei', lname: 'Rachmaninov', email: 'jdoe@gmail.com', sdate: '4/3/2012' }
|
||||||
|
]
|
||||||
|
});
|
||||||
};
|
};
|
Loading…
Reference in New Issue