//アカウントマネージャ //最初に読むやつ function load() { $("#acct-list").html(""); if(location.search){ var m = location.search.match(/\?mode=([a-zA-Z-0-9]+)\&code=(.+)/); var mode=m[1]; var codex=m[2]; if(mode=="first" && codex=="true"){ $("body").addClass("first") }else{ } } 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 = '