Changeset 24578
- Timestamp:
- 11/21/08 22:49:51 (7 weeks ago)
- Location:
- lang/javascript/vimperator-plugins/trunk
- Files:
-
- 3 modified
-
blinkelement.js (modified) (1 diff)
-
hidecritter.js (modified) (1 diff)
-
walk-input.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/blinkelement.js
r24576 r24578 1 1 /* 2 2 * ==VimperatorPlugin== 3 * @name nicontroller.js3 * @name blinkelement.js 4 4 * @description blink specified elements. 5 5 * @description-ja 指定した要素を点滅させる。 -
lang/javascript/vimperator-plugins/trunk/hidecritter.js
r24576 r24578 1 1 /* 2 2 * ==VimperatorPlugin== 3 * @name nicontroller.js3 * @name hidecritter.js 4 4 * @description hide specified elements. 5 5 * @description-ja 指定した要素を隠す。 -
lang/javascript/vimperator-plugins/trunk/walk-input.js
r24334 r24578 19 19 // </html> 20 20 21 (function () {21 (function () { 22 22 23 23 var xpath = '//input[@type="text" or @type="password" or @type="search" or not(@type)] | //textarea'; 24 24 25 var walkinput = function (forward) {25 var walkinput = function (forward) { 26 26 var focused = document.commandDispatcher.focusedElement; 27 27 var current = null; … … 33 33 var doc = frame.document; 34 34 if (doc.body.localName.toLowerCase() == 'body') { 35 varr = doc.evaluate(xpath, doc, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);35 let r = doc.evaluate(xpath, doc, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); 36 36 for (let i = 0, l = r.snapshotLength; i < l; ++i) { 37 37 let e = r.snapshotItem(i); … … 53 53 return; 54 54 55 letelem = forward ? (next || list[0])55 var elem = forward ? (next || list[0]) 56 56 : (prev || list[list.length - 1]); 57 57 elem.focus();
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)