//アカウントマネージャ //最初に読むやつ function load() { $("#acct-list").html(""); var prof = localStorage.getItem("prof"); $(".my-prof").attr("src", prof); var name = localStorage.getItem("name"); $("#now-name").text(name); var user = localStorage.getItem("user"); $("#now-user").text(user); var domain = localStorage.getItem("domain"); $(".now-domain").text(domain); var multi = localStorage.getItem("multi"); if (!multi) { var obj = []; } else { var obj = JSON.parse(multi); } if(obj[0]){ if(!obj[0].at){ obj=[]; localStorage.removeItem("multi"); } } console.log(obj); var templete; Object.keys(obj).forEach(function(key) { var acct = obj[key]; var list = key * 1 + 1; if(acct.background!="def" && acct.text!="def"){ var style='style="background-color:#'+acct.background+'; color:'+acct.text+';"' }else{ var style="" } if(acct.name){ var name=acct.name; }else{ var name=acct.user; } templete = '