summaryrefslogtreecommitdiffstats
path: root/templates/includes
diff options
context:
space:
mode:
Diffstat (limited to 'templates/includes')
-rw-r--r--templates/includes/book/header.html20
1 files changed, 1 insertions, 19 deletions
diff --git a/templates/includes/book/header.html b/templates/includes/book/header.html
index c1b6518..bb8c2da 100644
--- a/templates/includes/book/header.html
+++ b/templates/includes/book/header.html
@@ -10,22 +10,4 @@
<!-- Title -->
<h1><a href="{{ basePath }}/README.html" >{{ title }}</a></h1>
-</div>
-<script>
-$(document).ready(function() {
- var $book = $(".book");
-
- // Toggle summary
- $book.find(".book-header .toggle-summary").click(function(e) {
- e.preventDefault();
- $book.toggleClass("with-summary");
- });
-
- // Star and watch count
- $.getJSON("https://api.github.com/repos/{{ githubId }}")
- .done(function(repo) {
- $book.find(".count-star span").text(repo.stargazers_count);
- $book.find(".count-watch span").text(repo.subscribers_count);
- });
-});
-</script> \ No newline at end of file
+</div> \ No newline at end of file