Changeset 225:80ae3df02781
- Timestamp:
- 08/28/09 17:07:03 (4 years ago)
- Author:
- tgambet
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@226
- Message:
-
updated result page for javascript
- Location:
- WebContent
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r214
|
r225
|
|
| 25 | 25 | <h2> |
| 26 | 26 | <span class="icons"> |
| 27 | | #if ($infoCount && $infoCount > 0)<img src="images/icone_info.png" alt="info icon" /><span>$infoCount</span> #end |
| 28 | | #if ($errorCount && $errorCount > 0)<img src="images/icone_error.png" alt="error icon" /><span>$errorCount</span> #end |
| 29 | | #if ($warningCount && $warningCount > 0)<img src="images/icone_warning.png" alt="warning icon" /><span>$warningCount</span> #end |
| | 27 | #if ($infoCount && $infoCount > 0)<img src="images/icone_info.png" alt="Infos" title="Infos" /><span>$infoCount</span> #end |
| | 28 | #if ($errorCount && $errorCount > 0)<img src="images/icone_error.png" alt="Errors" title="Errors" /><span>$errorCount</span> #end |
| | 29 | #if ($warningCount && $warningCount > 0)<img src="images/icone_warning.png" alt="Warnings" title="Warnings" /><span>$warningCount</span> #end |
| 30 | 30 | </span> |
| 31 | 31 | #if($observation.isPassed()) |
-
|
r214
|
r225
|
|
| 6 | 6 | W3C.Links.each(function(link) { |
| 7 | 7 | link.addClass('pointer'); |
| 8 | | }); |
| 9 | | |
| 10 | | //$merge($$('h2'), $$('h3')).addClass('pointer'); |
| 11 | | |
| 12 | | W3C.Observers = $$('div.observer'); |
| 13 | | |
| 14 | | W3C.Observers.each(function(observer) { |
| 15 | | observer.getElement('h2').addEvent('click', function(event) { |
| 16 | | observer.getElement('div.results').slide('toggle'); |
| 17 | | }); |
| | 8 | link.addClass('toggles'); |
| 18 | 9 | }); |
| 19 | 10 | |
| … |
… |
|
| 21 | 12 | if ($$('div.observer.invalid').length > 0) |
| 22 | 13 | $$('div.observer.valid').getElement('div.results').slide('hide'); |
| | 14 | else |
| | 15 | $$('div.observer.valid').getElement('h2').addClass('toggled'); |
| | 16 | |
| | 17 | $$('div.observer.invalid').getElement('h2').addClass('toggled'); |
| | 18 | $$('div.errors').getElement('h3').addClass('toggled'); |
| | 19 | $$('div.infos').getElement('h3').addClass('toggled'); |
| | 20 | |
| | 21 | $$('div.observer').each(function(observer) { |
| | 22 | observer.getElement('h2').addEvent('click', function(event) { |
| | 23 | observer.getElement('div.results').slide('toggle'); |
| | 24 | this.toggleClass('toggled'); |
| | 25 | }); |
| | 26 | }); |
| 23 | 27 | |
| 24 | 28 | W3C.ResultBlock = $$('div.errors').concat($$('div.infos'), $$('div.warnings')); |
| 25 | | |
| 26 | 29 | W3C.ResultBlock.each(function(results) { |
| 27 | 30 | results.getElement('h3').addEvent('click', function(event){ |
| 28 | 31 | results.getElement('div.result').slide('toggle'); |
| 29 | 32 | results.getParent('div').getParent('div').setStyle('height', 'auto'); |
| | 33 | this.toggleClass('toggled'); |
| 30 | 34 | }); |
| 31 | 35 | }); |
| 32 | 36 | |
| 33 | | |
| 34 | 37 | } |
| 35 | | |
| 36 | 38 | }; |
| 37 | 39 | |
-
|
r222
|
r225
|
|
| 367 | 367 | .warnings h3 { |
| 368 | 368 | color: #b48700; |
| 369 | | |
| 370 | 369 | } |
| 371 | 370 | #observations h3 { |
| … |
… |
|
| 386 | 385 | #observations table { |
| 387 | 386 | border-collapse:collapse; |
| 388 | | /*border-right:1px solid #CCCCCC; |
| 389 | | border-top:1px solid #CCCCCC !important; |
| 390 | | line-height:100%;*/ |
| 391 | 387 | width:100%; |
| 392 | 388 | } |
| … |
… |
|
| 433 | 429 | clear:left; |
| 434 | 430 | padding:4.1em 10px; |
| 435 | | /*border-right:thin solid #DDDDDD;*/ |
| 436 | 431 | } |
| 437 | 432 | div.observer.css-validator div.infos code, div.observer.css1-validator div.infos code, div.observer.css2-validator div.infos code, div.observer.css21-validator div.infos code, div.observer.css3-validator div.infos code { |
| … |
… |
|
| 442 | 437 | } |
| 443 | 438 | |
| | 439 | div.errors h3.toggles { |
| | 440 | background: url(../images/arrow_red_closed.png) no-repeat left 4px ; |
| | 441 | padding-left:12px !important; |
| | 442 | } |
| | 443 | div.errors h3.toggled { |
| | 444 | background: url(../images/arrow_red_open.png) no-repeat left 4px ; |
| | 445 | padding-left:12px !important; |
| | 446 | } |
| | 447 | div.infos h3.toggles { |
| | 448 | background: url(../images/arrow_green_closed.png) no-repeat left 4px ; |
| | 449 | padding-left:12px !important; |
| | 450 | } |
| | 451 | div.infos h3.toggled { |
| | 452 | background: url(../images/arrow_green_open.png) no-repeat left 4px ; |
| | 453 | padding-left:12px !important; |
| | 454 | } |
| | 455 | div.warnings h3.toggles { |
| | 456 | background: url(../images/arrow_yellow_closed.png) no-repeat left 4px ; |
| | 457 | padding-left:12px !important; |
| | 458 | } |
| | 459 | div.warnings h3.toggled { |
| | 460 | background: url(../images/arrow_yellow_open.png) no-repeat left 4px; |
| | 461 | padding-left:12px !important; |
| | 462 | } |
| | 463 | div.observer h2.toggles { |
| | 464 | background: url(../images/arrow_white_closed.png) no-repeat 4px 12px; |
| | 465 | padding-left:15px !important; |
| | 466 | } |
| | 467 | div.observer h2.toggled { |
| | 468 | background: url(../images/arrow_white_open.png) no-repeat 4px 12px; |
| | 469 | padding-left:15px !important; |
| | 470 | } |