diff options
author | trapezoid | 2008-04-23 13:16:53 +0000 |
---|---|---|
committer | trapezoid | 2008-04-23 13:16:53 +0000 |
commit | 68cbffde0b096ec928e1c9905ff91beb6a19a9c1 (patch) | |
tree | 468df9a60bc5d58d6650f427280ad90325a7ef76 | |
parent | a480ec05b0686d6b42e6195d206e00807a0b4f6e (diff) | |
download | vimperator-plugins-68cbffde0b096ec928e1c9905ff91beb6a19a9c1.tar.bz2 |
lang/javascript/vimperator-plugins/trunk/twitterView.js: textbox -> label
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@10207 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | twitterView.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/twitterView.js b/twitterView.js index e9f5786..cbd27d6 100644 --- a/twitterView.js +++ b/twitterView.js @@ -1,5 +1,5 @@ // Vimperator plugin: 'Statusbar Twitter'
-// Last Change: 26-Mar-2008. Jan 2008
+// Last Change: 23-Apr-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
//
@@ -8,7 +8,6 @@ (function(){
var checkTime = 90 * 1000;
var updateTime = 10 * 1000;
- var maxWidth = '500px';
var lastestId = 0;
var lastestStatus;
@@ -30,9 +29,9 @@ var hbox = document.createElement('hbox');
var iconPanel = document.createElement('image');
- var statusPanel = document.createElement('textbox');
+ var statusPanel = document.createElement('label');
- //hbox.style.overflow = "hidden";
+ var commandline = document.getElementById('liberator-commandline');
iconPanel.setAttribute('id','statusbar-twitter-timeline-icon');
iconPanel.style.width = "16px";
@@ -40,15 +39,14 @@ statusPanel.setAttribute('id','statusbar-twitter-timeline-status');
statusPanel.setAttribute('class','plain');
- statusPanel.style.width = maxWidth;
hbox.appendChild(iconPanel);
hbox.appendChild(statusPanel);
hbox.setAttribute('id','statusbar-twitter-timeline');
- //document.getElementById('status-bar').insertBefore(hbox,document.getElementById('statusbar-display'));
- //document.getElementById('liberator-commandline').appendChild(hbox);
- document.getElementById('liberator-commandline').insertBefore(hbox,document.getElementById('liberator-commandline-command'));
+
+ commandline.style.overflow = "hidden";
+ commandline.insertBefore(hbox,document.getElementById('liberator-commandline-command'));
document.getElementById('liberator-commandline-command').style.textAlign = "right";
document.getElementById('liberator-commandline-command').addEventListener("focus",function(e){
|