Skip to Content

JavaScript File

URL: https://www.w3.org/WAI/demos/bad/js/reportTable.js
HTTP Status: 200 OK
MIME Type: text/javascript
Last Modified: Thu, 26 Jan 2012 09:01:50 GMT
Download Time: Less than a second
Cookies: __cf_bm=KaO4iLgHzY4AulWrQD2b2
Size: 14 KB
HTTP Headers:  16 headers
Links In:  5 pages
OK Issues: No issues found

1var reportTable = function ()

2{

3

4 /**

5 * bool of DOM compatability

6 * @private

7 */

8 var _dom = document.getElementById && document.createElement

9

10 /**

11 * Table element

12 * @private

13 */

14 var _table;

15

16 /**

17 * default option container

18 * @private

19 */

20 var _defaultOptions = {

21 rowControles: true

22 , rowMouseHandler: true

23 , textCollapse: true

24 , textCollapseDefault: true

25 , textCollapseClass: ['expand', 'collapse']

26 , textCollapseText: ['Show full description', 'Hide full description']

27 , openButtonSrc: { principle : '../../img/minus_icon.png'

28 , guideline: '../../img/minus_guideline_icon.png'

29 , criterion: '../../img/minus_criterion_icon.png' }

30 , openButtonAlt: 'Opened'

31 , closeButtonSrc: { principle : '../../img/plus_icon.png'

32 , guideline: '../../img/plus_guideline_icon.png'

33 , criterion: '../../img/plus_criterion_icon.png' }

34 , closeButtonAlt: 'Closed'

35 , reportLevelDefault: true

36 , reportLevels: ['principle', 'guideline', 'criterion', 'evaluation']

37 , foldAllButtons: true

38 }

39

40 /**

...

</html>