Skip to content

Commit

Permalink
remove ui.js, use :target + CSS transitions instead (warning: scrollb…
Browse files Browse the repository at this point in the history
…ar bug)
  • Loading branch information
fabi1cazenave committed Mar 9, 2012
1 parent 8313439 commit 6a12e58
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 384 deletions.
13 changes: 13 additions & 0 deletions apps/settings/js/settings.js
Expand Up @@ -97,3 +97,16 @@ window.addEventListener('load', function loadSettings(evt) {
window.addEventListener('click', Settings);
Settings.init();
});

// ensure the root page is visible at startup
window.addEventListener('DOMContentLoaded', function() {
document.location.hash = '#root';
document.querySelector('#root').classList.remove('active');
}, false);

// back button = back to the root page
window.addEventListener('keyup', function(event) {
if (event.keyCode === event.DOM_VK_ESCAPE) {
document.location.hash = '#root';
}
}, false);
327 changes: 0 additions & 327 deletions apps/settings/js/ui.js

This file was deleted.

0 comments on commit 6a12e58

Please sign in to comment.