adding flasher button and initial file structure
parent
2d08fcca3c
commit
5033273773
|
@ -28,6 +28,7 @@
|
||||||
<script type="text/javascript" src="./tabs/motor_outputs.js"></script>
|
<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/sensors.js"></script>
|
||||||
<script type="text/javascript" src="./tabs/cli.js"></script>
|
<script type="text/javascript" src="./tabs/cli.js"></script>
|
||||||
|
<script type="text/javascript" src="./tabs/firmware_flasher.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="main-wrapper">
|
<div id="main-wrapper">
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
.donate {
|
.donate {
|
||||||
|
float: left;
|
||||||
|
|
||||||
width: 504px;
|
width: 504px;
|
||||||
|
|
||||||
padding: 0 0 5px 0;
|
padding: 0 0 5px 0;
|
||||||
|
@ -77,6 +79,24 @@
|
||||||
|
|
||||||
margin: auto;
|
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 {
|
.created {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
|
@ -111,6 +131,7 @@
|
||||||
</p>
|
</p>
|
||||||
<a href="http://goo.gl/xQMKN" target="_blank" title="Donate"><img src="./images/btn_donate_SM.gif" alt="Paypal" /></a>
|
<a href="http://goo.gl/xQMKN" target="_blank" title="Donate"><img src="./images/btn_donate_SM.gif" alt="Paypal" /></a>
|
||||||
</div>
|
</div>
|
||||||
|
<a class="firmware_flasher" href="#">Firmware Flasher</a>
|
||||||
<p class="created">
|
<p class="created">
|
||||||
created for <strong>baseflight</strong> by <strong>cTn</strong> ©
|
created for <strong>baseflight</strong> by <strong>cTn</strong> ©
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -4,5 +4,10 @@ function tab_initialize_default() {
|
||||||
|
|
||||||
// load changelog content
|
// load changelog content
|
||||||
$('div.changelog.configurator .wrapper').load('./changelog.html');
|
$('div.changelog.configurator .wrapper').load('./changelog.html');
|
||||||
|
|
||||||
|
// UI Hooks
|
||||||
|
$('a.firmware_flasher').click(function() {
|
||||||
|
tab_initialize_firmware_flasher();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
|
@ -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
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in New Issue