//アカウントマネージャ //最初に読むやつ 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 = [{ at: localStorage.getItem("acct_0_at"), name: localStorage.getItem("name_0"), domain: localStorage.getItem("domain_0"), user: localStorage.getItem("user_0"), prof: localStorage.getItem("prof_0"), id: localStorage.getItem("user-id_0") }]; var json = JSON.stringify(obj); localStorage.setItem("multi", json); } else { var obj = JSON.parse(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="" } templete = '