Mercurial > hg > digilib-old
comparison xul/menu.js @ 105:ecee3ff2f4d0 vendor
XUL
Digilib Buttons in chrome
| author | engler |
|---|---|
| date | Tue, 13 May 2003 20:59:47 +0200 |
| parents | 7b5d0ff8f93f |
| children |
comparison
equal
deleted
inserted
replaced
| 98:7b5d0ff8f93f | 105:ecee3ff2f4d0 |
|---|---|
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 function color_multiply() { | 46 function color_multiply() { |
| 47 | 47 |
| 48 value = prompt("Enter the values you like to multiply with the different color channels.\n\nFormat is R/G/B, where R,G,B are floating numbers bigger than 0."); | 48 value = prompt("Enter the values you like to multiply with the different color channels.\n\nFormat is R/G/B, where R,G,B are floating numbers."); |
| 49 | 49 |
| 50 if (value) { | 50 if (value) { |
| 51 | 51 |
| 52 values = value.split("/"); | 52 values = value.split("/"); |
| 53 | 53 |
| 54 if (values.length != 3) alert("Illegal format"); | 54 if (values.length != 3) alert("Illegal format"); |
| 55 else if (values[0] < 0) alert("Illegal value for red"); | |
| 56 else if (values[1] < 0) alert("Illegal value for green"); | |
| 57 else if (values[2] < 0) alert("Illegal value for blue"); | |
| 58 | 55 |
| 59 else window.content.rgbm(value); | 56 else window.content.rgbm(value); |
| 60 | 57 |
| 61 } | 58 } |
| 62 } | 59 } |
