Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[minor] Removed unnecessary public folder

  • Loading branch information...
commit e3d8d2ce2efc57afe860b7e5da8d18eb680a1f03 1 parent 7c208bb
Pavan Kumar Sunkara authored
5  .gitignore
... ...
@@ -1,3 +1,4 @@
1 1
 .DS_Store
2  
-node_modules/*
3  
-public/*
  2
+node_modules
  3
+public
  4
+npm-debug.log
1  public/README
... ...
@@ -1 +0,0 @@
1  
-run: node bin/generate to generate the contents of this folder
89  public/js/index.js
... ...
@@ -1,89 +0,0 @@
1  
-$(function() {
2  
-  
3  
-  var selectingTopicTimer,
4  
-      selectingSubtopicTimer,
5  
-      selected;
6  
-
7  
-  //
8  
-  // When the user clicks on a topic,
9  
-  // assume the intent is top open the ToC
10  
-  //
11  
-  $('#toc > ul > li > a').click(function(e) {
12  
-
13  
-    clearTimeout(selectingTopicTimer);
14  
-
15  
-    var topic = this;
16  
-
17  
-    //
18  
-    // Don't re-open the same topic twice
19  
-    //
20  
-    if($(topic).hasClass('selected')) {
21  
-      // console.log('already selected, dont reopen');
22  
-      return false;
23  
-    }
24  
-
25  
-    openTopic(topic);
26  
-    return false;
27  
-
28  
-  });
29  
-
30  
-  //
31  
-  // Touch support. Since there is no mouse out on
32  
-  // touch devices, we need to have an event to hide
33  
-  // the toc.
34  
-  //
35  
-  $('#article').click(function() {
36  
-    $('#toc').mouseleave();
37  
-  });
38  
-
39  
-  //
40  
-  // When the user's mouse leaves the ToC,
41  
-  // assume the intent is to close the ToC
42  
-  //
43  
-  $('#toc').mouseleave(function(e){
44  
-    clearTimeout(selectingTopicTimer);
45  
-    selectingTopicTimer = setTimeout(function() {
46  
-      closeTopic();
47  
-    }, 400);
48  
-  });
49  
-
50  
-  //
51  
-  // For users with an impatient intent,
52  
-  // instantly close ToC if they click anywhere outside the ToC
53  
-  //
54  
-  $('body').click(function(e){
55  
-    if($(e.target).get(0).tagName !== 'UL'){
56  
-      if(isTopicSelected()){
57  
-        closeTopic();
58  
-      }
59  
-    }
60  
-  });
61  
-
62  
-  //
63  
-  // Opens the Table Of Contents
64  
-  //
65  
-  function openTopic(topic) {
66  
-    $('#toc > ul > li > ul').hide();
67  
-    $(topic).next('ul').show();
68  
-    $('#toc > ul > li > a').removeClass('selected');
69  
-    $(topic).addClass('selected');
70  
-    $('#mask').fadeIn('fast');
71  
-  }
72  
-
73  
-  //
74  
-  // Closes the Table Of Contents
75  
-  //
76  
-  function closeTopic() {
77  
-    $('#toc > ul > li > ul').hide();
78  
-    $('#mask').fadeOut('fast');
79  
-    $('a').removeClass('selected');
80  
-  }
81  
-
82  
-  function isTopicSelected() {
83  
-    if($('#toc > ul > li > a.selected').length === 1) {
84  
-      return true;
85  
-    }
86  
-    return false
87  
-  }
88  
-
89  
-});
0  public/google0da5b084b7cd31af.html → theme/google0da5b084b7cd31af.html
File renamed without changes

0 notes on commit e3d8d2c

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