diff --git a/main.html b/main.html index db73f2e7..19b5ef63 100644 --- a/main.html +++ b/main.html @@ -28,6 +28,7 @@ +
diff --git a/tabs/default.html b/tabs/default.html index a6601ce4..98fe4afc 100644 --- a/tabs/default.html +++ b/tabs/default.html @@ -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 @@

Paypal
+ Firmware Flasher

created for baseflight by cTn ©

diff --git a/tabs/default.js b/tabs/default.js index b5374534..3452e6e3 100644 --- a/tabs/default.js +++ b/tabs/default.js @@ -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(); + }); }); } \ No newline at end of file diff --git a/tabs/firmware_flasher.html b/tabs/firmware_flasher.html new file mode 100644 index 00000000..e69de29b diff --git a/tabs/firmware_flasher.js b/tabs/firmware_flasher.js new file mode 100644 index 00000000..b4ba60a9 --- /dev/null +++ b/tabs/firmware_flasher.js @@ -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 + }); +} \ No newline at end of file