//レイアウトの設定 var websocketOld = []; var websocket = []; var websocketHome = []; var websocketLocal = []; var websocketNotf = []; //カラム追加ボックストグル function addToggle() { $("#add-box").toggleClass("hide"); $("#add-box").css("top",$('#add-tgl').offset().top+"px"); $("#add-box").css("left",$('#add-tgl').offset().left-410+"px"); $("#add-box").toggleClass("show"); } //最初、カラム変更時に発火 function parseColumn() { var size = localStorage.getItem("size"); if (size) { $("#timeline-container").css("font-size", size + "px"); $(".toot-reset").css("font-size", size + "px"); $(".cont-series").css("font-size", size + "px"); } tlCloser(); var multi = localStorage.getItem("multi"); if (!multi) { var obj = [{ at: localStorage.getItem(localStorage.getItem("domain_0") + "_at"), name: localStorage.getItem("name_0"), domain: localStorage.getItem("domain_0"), user: localStorage.getItem("user_0"), prof: localStorage.getItem("prof_0") }]; var json = JSON.stringify(obj); localStorage.setItem("multi", json); } else { var obj = JSON.parse(multi); var templete; Object.keys(obj).forEach(function(key) { var acct = obj[key]; localStorage.setItem("name_" + key, acct.name); localStorage.setItem("user_" + key, acct.user); localStorage.setItem("user-id_" + key, acct.id); localStorage.setItem("prof_" + key, acct.prof); localStorage.setItem("domain_" + key, acct.domain); localStorage.setItem(acct.domain + "_at", acct.at); notf(key, 0); ckdb(key); }); } var xed=localStorage.getItem("xed"); if(xed){ xpand(); } var col = localStorage.getItem("column"); if (!col) { var obj = [{ domain: 0, type: 'local' }]; var json = JSON.stringify(obj); localStorage.setItem("column", json); } else { var obj = JSON.parse(col); } if ($("#timeline-container").length) { $("#timeline-container").html(""); } Object.keys(obj).forEach(function(key) { var acct = obj[key]; if(acct.type=="notf"){ var notf_attr=' data-notf='+acct.domain; }else{ var notf_attr=''; } var html = '