Skip to content
Browse files

[minor] Removed unnecessary public folder

  • Loading branch information...
1 parent 7c208bb commit e3d8d2ce2efc57afe860b7e5da8d18eb680a1f03 @pksunkara pksunkara committed Sep 22, 2011
Showing with 3 additions and 92 deletions.
  1. +3 −2 .gitignore
  2. +0 −1 public/README
  3. +0 −89 public/js/index.js
  4. 0 {public → theme}/google0da5b084b7cd31af.html
View
5 .gitignore
@@ -1,3 +1,4 @@
.DS_Store
-node_modules/*
-public/*
+node_modules
+public
+npm-debug.log
View
1 public/README
@@ -1 +0,0 @@
-run: node bin/generate to generate the contents of this folder
View
89 public/js/index.js
@@ -1,89 +0,0 @@
-$(function() {
-
- var selectingTopicTimer,
- selectingSubtopicTimer,
- selected;
-
- //
- // When the user clicks on a topic,
- // assume the intent is top open the ToC
- //
- $('#toc > ul > li > a').click(function(e) {
-
- clearTimeout(selectingTopicTimer);
-
- var topic = this;
-
- //
- // Don't re-open the same topic twice
- //
- if($(topic).hasClass('selected')) {
- // console.log('already selected, dont reopen');
- return false;
- }
-
- openTopic(topic);
- return false;
-
- });
-
- //
- // Touch support. Since there is no mouse out on
- // touch devices, we need to have an event to hide
- // the toc.
- //
- $('#article').click(function() {
- $('#toc').mouseleave();
- });
-
- //
- // When the user's mouse leaves the ToC,
- // assume the intent is to close the ToC
- //
- $('#toc').mouseleave(function(e){
- clearTimeout(selectingTopicTimer);
- selectingTopicTimer = setTimeout(function() {
- closeTopic();
- }, 400);
- });
-
- //
- // For users with an impatient intent,
- // instantly close ToC if they click anywhere outside the ToC
- //
- $('body').click(function(e){
- if($(e.target).get(0).tagName !== 'UL'){
- if(isTopicSelected()){
- closeTopic();
- }
- }
- });
-
- //
- // Opens the Table Of Contents
- //
- function openTopic(topic) {
- $('#toc > ul > li > ul').hide();
- $(topic).next('ul').show();
- $('#toc > ul > li > a').removeClass('selected');
- $(topic).addClass('selected');
- $('#mask').fadeIn('fast');
- }
-
- //
- // Closes the Table Of Contents
- //
- function closeTopic() {
- $('#toc > ul > li > ul').hide();
- $('#mask').fadeOut('fast');
- $('a').removeClass('selected');
- }
-
- function isTopicSelected() {
- if($('#toc > ul > li > a.selected').length === 1) {
- return true;
- }
- return false
- }
-
-});
View
0 public/google0da5b084b7cd31af.html → theme/google0da5b084b7cd31af.html
File renamed without changes.

0 comments on commit e3d8d2c

Please sign in to comment.
Something went wrong with that request. Please try again.