|
|
@@ -25,6 +25,32 @@ function load_ver() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+function do_skin_ver_check() {
|
|
|
+ var url = "/api/skin_info?all=true";
|
|
|
+ var xhr = new XMLHttpRequest();
|
|
|
+ xhr.open("GET", url, true);
|
|
|
+ xhr.send(null);
|
|
|
+
|
|
|
+ xhr.onreadystatechange = function() {
|
|
|
+ if(this.readyState === 4 && this.status === 200) {
|
|
|
+ var json_data = JSON.parse(this.responseText);
|
|
|
+ var all_need_update = [];
|
|
|
+ for(var key in json_data) {
|
|
|
+ if(json_data[key]['lastest_version']) {
|
|
|
+ var new_skin_ver = json_data[key]['lastest_version']['skin_ver'];
|
|
|
+ var old_skin_ver = json_data[key]['skin_ver'];
|
|
|
+ var skin_name = json_data[key]['name'];
|
|
|
+ if(new_skin_ver !== old_skin_ver) {
|
|
|
+ all_need_update.push(skin_name);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ document.getElementById('need_skin_update').innerHTML += ' (' + (all_need_update.join(', ')) + ')';
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
function do_twofa_check(init = 0) {
|
|
|
var data_check = document.getElementById('twofa_check_input').checked;
|
|
|
document.getElementById('fa_plus_content').style.display = data_check === true ? "block" : "none";
|