Changeset 20435 for websites

Show
Ignore:
Timestamp:
10/02/08 03:54:04 (2 months ago)
Author:
NeoCat
Message:

fix subtle bugs in Opera

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/twicli/twicli.html

    r20084 r20435  
    4141#popup a:hover { background-color: #33f; color: #fff; text-decoration: none; } 
    4242#popup a.row2 { background-color: #eee; } 
    43 #popup_hide { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.1; background-color: black; z-index: 5; } 
     43#popup_hide { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.2; background-color: black; z-index: 5; } 
    4444#user_info { margin: 1px; border: 1px solid #888; } 
    4545#user_info td { font-size: small; } 
     
    213213 
    214214<script type="text/javascript"> 
    215 var pluginstr = readCookie('tw_plugins') || 'search.js\nfavotter.js'; 
     215var cookieVer = readCookie('ver') || 0; 
     216var pluginstr = (cookieVer>0) && readCookie('tw_plugins') || 'search.js\nfavotter.js'; 
    216217var nr_limit = readCookie('limit') || 500;                              // 表示する発言数の上限 
    217218var max_count = readCookie('max_count') || 50; 
     
    333334        $('popup').style.left = pos[0] <  $('popup').offsetWidth - ele.offsetWidth ? 0 : pos[0] - $('popup').offsetWidth + ele.offsetWidth; 
    334335        $('popup').style.top = popup_top = pos[1] + 20; 
    335         $('popup_hide').style.height = document.body.scrollHeight; 
     336        $('popup_hide').style.height = Math.max(document.body.scrollHeight, $("tw").offsetHeight+$("control").offsetHeight); 
    336337        $('popup_hide').style.display = "block"; 
    337338} 
     
    377378                (tw.in_reply_to_status_id ? ' <a class="button" href="#" onClick="dispReply(\'' + un + '\',' + tw.in_reply_to_status_id + ',this); return false;">☞</a>' : '') + 
    378379                //popupメニュー表示 
    379                 ' <a class="button popup" href="#" onClick="popup(\'' + un + "'," + tw.id + ', this); return false;"><small><small>▼</small></small></a>' + 
     380                '&nbsp;&nbsp;&nbsp;<a class="button popup" href="#" onClick="popup(\'' + un + "'," + tw.id + ', this); return false;"><small><small>▼</small></small></a>' + 
    380381                '</span><br clear="left">'; 
    381382} 
     
    642643} 
    643644function setPreps(limit, maxc, maxu, plugin_list, style) { 
     645        writeCookie('ver', 0.1, 3652); 
    644646        writeCookie('limit', limit, 3652); 
    645647        writeCookie('max_count', maxc, 3652); 
     
    670672        // 初回アップデート 
    671673        setTimeout(update, 0); 
    672         setInterval(update, 30*1000); 
     674        setInterval(update, 60*1000); 
    673675        // ログインしていなかったときなどに20秒で本家にリダイレクト 
    674676        failover_timeout = setTimeout(function(){ switchTo("misc"); $("tw2c").innerHTML = '<iframe style="display:block" src="http://twitter.com/home" width="100%" height="400"></iframe>' }, 20*1000); 
     
    693695if (window.addEventListener) window.addEventListener('DOMMouseScroll', wheel, false); 
    694696window.onmousewheel = document.onmousewheel = wheel; 
     697 
    695698loadXDomainScript('http://twitter.com/statuses/user_timeline.json?count=1&callback=twUser'); 
    696699</script>