|
|
@ -22,6 +22,14 @@ var removeTrayMenu = function () {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var setAppTheme = function () {
|
|
|
|
|
|
|
|
if (localStorage.getItem("darktheme") == "true") {
|
|
|
|
|
|
|
|
$("#app").addClass("theme-dark");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#app").removeClass("theme-dark");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function initCordova() {
|
|
|
|
function initCordova() {
|
|
|
|
platform_type = "cordova";
|
|
|
|
platform_type = "cordova";
|
|
|
|
|
|
|
|
|
|
|
@ -46,6 +54,21 @@ function initCordova() {
|
|
|
|
openBrowser = function (url) {
|
|
|
|
openBrowser = function (url) {
|
|
|
|
cordova.InAppBrowser.open(url, '_blank', 'location=yes');
|
|
|
|
cordova.InAppBrowser.open(url, '_blank', 'location=yes');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setAppTheme = function () {
|
|
|
|
|
|
|
|
if (localStorage.getItem("darktheme") == "true") {
|
|
|
|
|
|
|
|
$("#app").addClass("theme-dark");
|
|
|
|
|
|
|
|
if (cordova.platformId == 'android') {
|
|
|
|
|
|
|
|
StatusBar.styleDefault();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#app").removeClass("theme-dark");
|
|
|
|
|
|
|
|
if (cordova.platformId == 'android') {
|
|
|
|
|
|
|
|
StatusBar.backgroundColorByHexString("#D32F2F");
|
|
|
|
|
|
|
|
StatusBar.styleLightContent();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function initNW() {
|
|
|
|
function initNW() {
|
|
|
|