Permalink
Browse files

NileViewer: switch to high contrast via the html filename

  • Loading branch information...
1 parent 2f1646a commit 3e96bd742c5a872b4f31cd5598af229b26008d20 @worrydream worrydream committed Jun 1, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 viz/NileViewer/high_contrast.html
  2. +1 −1 viz/NileViewer/index.html
@@ -21,7 +21,7 @@
<script type="text/javascript" src="Project/NVCanvasView.js"></script>
<!-- preferences -->
- <script type="text/javascript"> NVPreferences.isHighContrast = true; </script>
+ <script type="text/javascript"> NVPreferences.isHighContrast = /contrast\.html$/.test(window.location.pathname); </script>
</head>
@@ -21,7 +21,7 @@
<script type="text/javascript" src="Project/NVCanvasView.js"></script>
<!-- preferences -->
- <script type="text/javascript"> NVPreferences.isHighContrast = false; </script>
+ <script type="text/javascript"> NVPreferences.isHighContrast = /contrast\.html$/.test(window.location.pathname); </script>
</head>

0 comments on commit 3e96bd7

Please sign in to comment.