File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,13 @@ visibility:hidden;
2323 float : right;
2424}
2525
26+ .stale-warning {
27+ color : red;
28+ background-color : # fbc9c7 ;
29+ border : 1px solid red;
30+ padding : 10px ;
31+ }
32+
2633.tocset td a .tocviewselflink {
2734 color : black;
2835 text-decoration : underline;
Original file line number Diff line number Diff line change 11// Adds the web accessibility link to the bottom of every page
22
3+ // change to true to mark pages as stale
4+ var is_stale = false ;
5+
36function AddAccessibilityToMainDiv ( )
47{
58 var main_div = document . getElementsByClassName ( "main" ) [ 0 ] ;
69 var h = document . createElement ( 'div' ) ;
710 h . setAttribute ( "class" , "accessibility-link" ) ;
811 h . innerHTML = "<a href=\"https://www.umd.edu/web-accessibility\" title=\"UMD Web Accessibility\">Web Accessibility</a>" ;
912 main_div . insertBefore ( h , main_div . lastChild ) ;
13+
14+ if ( is_stale ) {
15+ var g = document . createElement ( 'div' ) ;
16+ g . setAttribute ( "class" , "stale-warning" ) ;
17+ g . innerHTML = "This is NOT the current webpage! See " +
18+ "<a href=\"http://www.cs.umd.edu/class/\">Class web pages</a> for curre
19+ nt listing . ";
20+ main_div . insertBefore ( g , main_div . firstChild ) ;
21+ } ;
1022}
1123AddOnLoad ( AddAccessibilityToMainDiv ) ;
You can’t perform that action at this time.
0 commit comments