// JavaScript Document function log(){ /* alert('URLチェック');*/ /* 使用中止 window.open('/log.php?ref='+document.referrer); */ } function showLength(str,maxLenght,showId) { document.getElementById(showId).innerHTML = maxLenght - str.length; } function toggleView(){ c = document.getElementById('list').className; if(c == 'box'){ c = listView(); }else{ c = boxView(); } var manager = new CookieManager({shelfLife:30}); manager.setCookie("FeedAvCookie[listView]", c); return false; } function listView(){ document.getElementById('list').className = 'list'; document.getElementById('listBtn').className = 'icon application_view_tile'; document.getElementById('listBtn').getElementsByTagName('a')[0].innerHTML = 'ボックス表示'; return 'list'; } function boxView(){ document.getElementById('list').className = 'box'; document.getElementById('listBtn').className = 'icon application_view_list'; document.getElementById('listBtn').getElementsByTagName('a')[0].innerHTML = 'リスト表示'; return 'box'; } function codeForcus(){ code = document.getElementById('code'); code.focus(); code.select(); } function getUrl(number,url){ document.getElementById('checkf').src = '/checks?t='+parseInt((new Date)/1000)+'&n='+number; if(url){ window.open(url,'new'); } } function getLog(number){ document.getElementById('logf').src = '/logs?n='+number+'&t='+parseInt((new Date)/1000); }