You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
inav-configurator/tabs/landing.js

32 lines
927 B
JavaScript

'use strict';
TABS.landing = {};
TABS.landing.initialize = function (callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'landing';
$('#content').load("./tabs/landing.html", function () {
//check_usb_permissions(); // temporary enabled in dev branch, should be commented out untill DFU support goes live
// translate to user-selected language
localize();
// load changelog content
$('div.changelog.configurator .wrapper').load('./changelog.html');
// UI Hooks
10 years ago
$('a.firmware_flasher').click(function () {
TABS.firmware_flasher.initialize();
});
10 years ago
$('div.welcome a, div.sponsors a').click(function () {
googleAnalytics.sendEvent('ExternalUrls', 'Click', $(this).prop('href'));
});
if (callback) callback();
});
};
TABS.landing.cleanup = function (callback) {
if (callback) callback();
};