Changeset 27922
- Timestamp:
- 01/05/09 01:33:27 (4 years ago)
- Files:
-
- 1 modified
-
lang/javascript/vimperator-plugins/trunk/alert.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/alert.js
r27701 r27922 12 12 <name>Alert</name> 13 13 <name lang="ja">アラート</name> 14 <description>Display an alert after the specified time.</description>14 <description>Displays an alert after the specified time.</description> 15 15 <description lang="ja">指定時間後にアラートダイアログを出したりする。タイマー。</description> 16 16 <version>1.01</version> … … 276 276 277 277 let defaults = { 278 methods: (gv.alert_default_methods || 'alert').split(/ [^\w]+/),278 methods: (gv.alert_default_methods || 'alert').split(/\W+/), 279 279 time: parseFloat(gv.alert_default_time || '3'), 280 280 message: gv.alert_default_message || 'Time out!', … … 359 359 let colors = ['red', 'blue', 'yellow']; 360 360 let elem = content.document.body; 361 let indicator = elem. ownerDocument.createElement('div');361 let indicator = elem.appendChild(elem.ownerDocument.createElement('div')); 362 362 let rect = elem.getBoundingClientRect(); 363 363 indicator.id = 'nyantoro-element-indicator'; 364 364 let style = 'background-color: ' + colors[0] + ';' + 365 365 'opacity: 0.5; z-index: 999;' + 366 'position: fixed; ' +367 'top: ' +0 + 'px;' +368 'height: ' + content.innerHeight+ 'px;' +369 'left: ' +0 + 'px;' +370 'width: ' + content.innerWidth+ 'px';366 'position: fixed;' + 367 'top: ' + 0 + 'px;' + 368 'height: ' + content.innerHeight + 'px;' + 369 'left: ' + 0 + 'px;' + 370 'width: ' + content.innerWidth + 'px'; 371 371 indicator.setAttribute('style', style); 372 elem.appendChild(indicator);373 372 let (count = 0) { 374 373 let handle = setInterval(
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)