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