This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
forked from 1EdTech/casa-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
160 lines (134 loc) · 6.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en">
<head>
<title>CASA</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="asset/vendor/jquery.js"></script>
<script type="text/javascript" src="asset/vendor/jquery.ba-hashchange.js"></script>
<script type="text/javascript" src="asset/vendor/jquery.ariaMapper.js"></script>
<script type="text/javascript" src="asset/vendor/jquery.ariaMapperHelper.js"></script>
<script type="text/javascript" src="asset/vendor/ejs.js"></script>
<script type="text/javascript" src="asset/vendor/ejs_views.js"></script>
<script type="text/javascript" src="asset/vendor/prettify/prettify.js"></script>
<script type="text/javascript" src="asset/viewer.js"></script>
<link rel="stylesheet" href="asset/vendor/prettify/prettify.css">
<link rel="stylesheet" href="asset/outline.css">
<link rel="stylesheet" href="asset/style.css">
<script type="text/javascript" src="asset/style.js"></script>
</head>
<body>
<div id="nav-suite-container">
<nav id="nav-suite" role="navigation">
<header>
<h1>CASA</h1>
</header>
<ul>
<li><a href="#Core">Core</a></li>
<li>
<h1>Modules</h1>
<ul>
<li><a href="#Module/Payload">Payload</a></li>
<li><a href="#Module/Publisher">Publisher</a></li>
<li><a href="#Module/Receiver">Receiver</a></li>
<li><a href="#Module/Relay">Relay</a></li>
<li><a href="#Module/Local">Local</a></li>
</ul>
</li>
<li>
<h1>Attributes</h1>
<ul>
<li><a href="#Attributes/Accessibility">Accessibility</a></li>
<li><a href="#Attributes/Features">Browser Features</a></li>
<li><a href="#Attributes/Education">Education</a></li>
<li><a href="#Attributes/Foundation">Foundational</a></li>
<li><a href="#Attributes/Interoperability">Interoperability</a></li>
<li><a href="#Attributes/Licensing">Licensing</a></li>
<li><a href="#Attributes/Privacy">Privacy</a></li>
<li><a href="#Attributes/Security">Security</a></li>
<li><a href="#Attributes/Student_Data">Student Data</a></li>
</ul>
</li>
</ul>
</nav>
</div>
<div id="content">
</div>
<div id="controls-container">
<form id="controls">
<h1>View Options</h1>
<label><input type="checkbox" id="hide_non-normative"> Hide Non-normative Sections</label>
<label><input type="checkbox" id="show_issues-only"> Only Show Issues</label>
<label><input type="checkbox" id="hide_status-notices"> Hide Status Notices</label>
<label><input type="checkbox" id="hide_code"> Hide Code Blocks</label>
</form>
</div>
<script type="text/javascript">
$(window).hashchange( function(){
var hash = location.hash,
page = hash.substring(1)
if(hash == '')
page = 'Core'
$('#nav-suite-container .active-menu').removeClass('active-menu')
VIEWER.go(page, VIEWER.page ? 200 : 0)
$('#menu a').each(function(){
var that = $(this);
that[ that.attr( 'href' ) === hash.split('/')[0] ? 'addClass' : 'removeClass' ]('active');
})
})
$(window).hashchange();
$('#hide_non-normative').change(function(){
var fn = $(this).prop('checked') ? 'addClass' : 'removeClass';
$('#content')[fn]('hide_non-normative');
})
$('#hide_status-notices').change(function(){
var fn = $(this).prop('checked') ? 'addClass' : 'removeClass';
$('#content')[fn]('hide_status-notices');
})
$('#show_issues-only').change(function(){
//var fn = $(this).prop('checked') ? 'hide' : 'show';
var ele = $('#content *').filter(function(){
if($(this).hasClass('issue') || $(this).closest('.issue').length || $(this).find('.issue').length)
return false;
if($(this).is('header') || $(this).closest('header').length)
return false;
if($(this).is('h1') && $(this).siblings('.issue'))
return false;
return true;
});
if($(this).prop('checked')){
ele.hide();
}else{
ele.css('display','')
}
})
$('#hide_code').change(function(){
var checked = $(this).prop('checked');
$('pre.prettyprint').each(function(){
if(checked){
$(this).hide();
}else{
$(this).css('display','')
}
if($(this).parent().children(':not(pre.prettyprint):not(h1):not(.status_message)').length === 0){
if(checked){
$(this).parent().hide();
}else{
$(this).parent().css('display','')
}
}
})
})
$('#nav-suite-container h1').click(function(){
var $dropdown = $(this).siblings('ul').first(),
isActive = $dropdown.hasClass('active-menu');
$('#nav-suite-container .active-menu').removeClass('active-menu');
if(isActive){
$dropdown.removeClass('active-menu');
}else{
$dropdown.addClass('active-menu');
}
})
</script>
</body>
</html>