Changeset 24724 for lang/javascript
- Timestamp:
- 11/24/08 06:51:04 (5 years ago)
- Location:
- lang/javascript/vimperator-plugins/trunk
- Files:
-
- 2 modified
-
blinkelement.js (modified) (3 diffs)
-
mouseinspect.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/blinkelement.js
r24716 r24724 39 39 * */ 40 40 41 ( function () { 41 // use setTimeout to synchronize ( wait to process highlight.js ) 42 // "liberator.modules.plugins.highlighterFactory" is build by highlight.js . 43 // it is the factory that build highlight object. 44 setTimeout( function () { 45 46 if (!plugins.highlighterFactory) { 47 liberator.log('blinkelement.js needs highlight.js', 0); 48 return; 49 } 42 50 43 51 // default settings … … 46 54 const defaultInterval = 800; 47 55 48 // use setTimeout to synchronize ( wait to process highlight.js ) 49 // "liberator.modules.plugins.highlighterFactory" is build by highlight.js . 50 // it is the factory that build highlight object. 51 let highlighter; 52 setTimeout( function () { 53 highlighter = liberator.modules.plugins.highlighterFactory({ 54 color: liberator.globalVariables.blink_element_color || defaultColor, 55 opacity: liberator.globalVariables.blink_element_opacity || defaultOpacity, 56 interval: liberator.globalVariables.blink_element_interval || defaultInterval, 57 }); 58 }, 0); 56 let highlighter = liberator.modules.plugins.highlighterFactory({ 57 color: liberator.globalVariables.blink_element_color || defaultColor, 58 opacity: liberator.globalVariables.blink_element_opacity || defaultOpacity, 59 interval: liberator.globalVariables.blink_element_interval || defaultInterval, 60 }); 59 61 60 62 // register commands … … 115 117 ); 116 118 117 } )()119 }, 0); // setTimeout 118 120 119 121 // vim: set sw=4 ts=4 et; -
lang/javascript/vimperator-plugins/trunk/mouseinspect.js
r24716 r24724 33 33 * */ 34 34 35 ( function () { 35 // use setTimeout to synchronize ( wait to process highlight.js ) 36 // "liberator.modules.plugins.highlighterFactory" is build by highlight.js . 37 // it is the factory that build highlight object. 38 setTimeout( function () { 39 40 if (!plugins.highlighterFactory) { 41 liberator.log('mouseinspect.js needs highlight.js', 0); 42 return; 43 } 36 44 37 45 // default settings … … 60 68 'mouse', 61 69 function () { 62 elementInfo.highlighter = liberator.modules.plugins.highlighterFactory({70 elementInfo.highlighter = plugins.highlighterFactory({ 63 71 color: liberator.globalVariables.mouse_inspect_color || defaultColor, 64 72 opacity: liberator.globalVariables.mouse_inspect_opacity || defaultOpacity, … … 79 87 {} 80 88 ); 81 } )() 89 90 }, 0); // setTimeout 82 91 83 92 // vim: set sw=4 ts=4 et;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)