Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions accessibility.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*jslint indent: 2, browser: true */

(function () {
'use strict';

if (document.addEventListener && document.documentElement.classList) {
document.addEventListener('click', function (event) {
var classes = event.target.classList;

if (classes.contains('color-change')) {
document.getElementById('accessibility').classList[classes.contains('wob') ? 'add' : 'remove']('inverted');
event.preventDefault();
}
});
}
}());
1 change: 1 addition & 0 deletions ca_nl_stjohns.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ <h3>The People</h3>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions ca_qc_montreal.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ <h3>Contacts</h3>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions de_berlin.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,6 @@ <h4><i>Die Gruppen</i></h4>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ <h4 id="groups">The Groups</h4>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>

1 change: 1 addition & 0 deletions new_groups.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@ <h1>Starting a Group</h1>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>
8 changes: 4 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ body {
background-color:black;
padding:0.2em;
}
#accessibility:target{
#accessibility:target, #accessibility.inverted {
color:white;
background-color:black;
}
#accessibility:target a{
#accessibility:target a, #accessibility.inverted a {
color:white;
}
#accessibility:target .wob{
#accessibility:target .wob, #accessibility.inverted .wob {
display:none;
}
#accessibility:target .bow{
#accessibility:target .bow, #accessibility.inverted .bow {
display:inline;
}
section {
Expand Down
1 change: 1 addition & 0 deletions uk_east_london.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@ <h3>The People</h3>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions uk_edinburgh.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,6 @@ <h4>People to contact:</h4>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions uk_manchester.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ <h2 id="venues">Potential Venues</h2>


</section>
<script src="accessibility.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions uk_oxford.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ <h4 id="location">The Date &amp; Location</h4>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>

1 change: 1 addition & 0 deletions uk_west_london.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ <h3>The People</h3>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions us_austin.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ <h3>The People</h3>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions us_boston.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ <h3>The People</h3>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions us_sanfrancisco.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,6 @@ <h3>The People</h3>
rights to this work.
</p>
</section>
<script src="accessibility.js"></script>
</body>
</html>