adding flasher button and initial file structure

10.3.x-maintenance
cTn 2013-11-13 08:55:29 +01:00
parent 2d08fcca3c
commit 5033273773
5 changed files with 35 additions and 0 deletions

View File

@ -28,6 +28,7 @@
<script type="text/javascript" src="./tabs/motor_outputs.js"></script>
<script type="text/javascript" src="./tabs/sensors.js"></script>
<script type="text/javascript" src="./tabs/cli.js"></script>
<script type="text/javascript" src="./tabs/firmware_flasher.js"></script>
</head>
<body>
<div id="main-wrapper">

View File

@ -50,6 +50,8 @@
margin-bottom: 5px;
}
.donate {
float: left;
width: 504px;
padding: 0 0 5px 0;
@ -77,6 +79,24 @@
margin: auto;
}
.firmware_flasher {
display: block;
float: right;
height: 28px;
line-height: 28px;
padding: 0 15px 0 15px;
text-align: center;
font-weight: bold;
border: 1px solid silver;
background-color: #ececec;
}
.firmware_flasher:hover {
background-color: #dedcdc;
}
.created {
position: absolute;
@ -111,6 +131,7 @@
</p>
<a href="http://goo.gl/xQMKN" target="_blank" title="Donate"><img src="./images/btn_donate_SM.gif" alt="Paypal" /></a>
</div>
<a class="firmware_flasher" href="#">Firmware Flasher</a>
<p class="created">
created for <strong>baseflight</strong> by <strong>cTn</strong> &copy;
</p>

View File

@ -4,5 +4,10 @@ function tab_initialize_default() {
// load changelog content
$('div.changelog.configurator .wrapper').load('./changelog.html');
// UI Hooks
$('a.firmware_flasher').click(function() {
tab_initialize_firmware_flasher();
});
});
}

View File

8
tabs/firmware_flasher.js Normal file
View File

@ -0,0 +1,8 @@
function tab_initialize_firmware_flasher() {
ga_tracker.sendAppView('Firmware Flasher');
GUI.active_tab = 'firmware_flasher';
$('#content').load("./tabs/firmware_flasher.html", function() {
// empty for now
});
}