TheDesk Miria (17.0.0)

This commit is contained in:
cutls
2018-12-09 03:46:01 +09:00
parent 8bb27aa8d5
commit bc197db0d5
32 changed files with 632 additions and 224 deletions

View File

@@ -43,7 +43,7 @@ function ck() {
if (at) {
$("#tl").show();
ticker();
parseColumn();
multiSelector();
} else {
@@ -512,3 +512,24 @@ function enc(ver){
var ver = ver.replace( /\]/g , "" );
return ver;
}
//インスタンスティッカー
function ticker() {
var start = "https://toot.app/toot/";
fetch(start, {
method: 'GET',
headers: {
'content-type': 'application/json'
},
}).then(function(response) {
return response.json();
}).catch(function(error) {
console.error(error);
}).then(function(json) {
if (json.error) {
return;
}
if(json){
localStorage.setItem("ticker", JSON.stringify(json));
}
});
}