Skip to content

Commit

Permalink
add2
Browse files Browse the repository at this point in the history
  • Loading branch information
yufree committed Jul 4, 2017
1 parent 95d915a commit 4b0e9ef
Show file tree
Hide file tree
Showing 152 changed files with 39 additions and 9 deletions.
3 changes: 3 additions & 0 deletions _book/libs/gitbook-2.6.7/css/plugin-bookdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,6 @@ div.proof:after {
content: "\25a2";
float: right;
}
.header-section-number {
padding-right: .5em;
}
3 changes: 2 additions & 1 deletion _book/libs/gitbook-2.6.7/css/plugin-search.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
.book .book-summary .book-search input:hover {
width: 100%;
background: transparent;
border: 1px solid transparent;
border: 1px solid #ccc;
box-shadow: none;
outline: none;
line-height: 22px;
padding: 7px 4px;
color: inherit;
box-sizing: border-box;
}
.book.with-search .book-summary .book-search {
top: 0px;
Expand Down
2 changes: 1 addition & 1 deletion _book/libs/gitbook-2.6.7/css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _book/libs/gitbook-2.6.7/js/lunr.js

Large diffs are not rendered by default.

18 changes: 13 additions & 5 deletions _book/libs/gitbook-2.6.7/js/plugin-bookdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,19 @@ require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {
});

var bookBody = $('.book-body'), bookInner = bookBody.find('.body-inner');
var chapterTitle = function() {
return bookInner.find('.page-inner').find('h1,h2').first().text();
};
var bookTitle = function() {
return bookInner.find('.book-header > h1').first().text();
};
var saveScrollPos = function(e) {
// save scroll position before page is reloaded
gs.set('bodyScrollTop', {
body: bookBody.scrollTop(),
inner: bookInner.scrollTop(),
focused: document.hasFocus(),
title: bookInner.find('.page-inner').find('h1,h2').first().text()
title: chapterTitle()
});
};
$(document).on('servr:reload', saveScrollPos);
Expand All @@ -192,14 +198,16 @@ require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {
try { inIframe = window.self !== window.top; } catch (e) {}
return inIframe;
};
if (inIFrame()) {
$(window).on('blur unload', saveScrollPos);
}
$(window).on('blur unload', function(e) {
if (inIFrame()) saveScrollPos(e);
gs.set('bookTitle', bookTitle());
});

$(function(e) {
if (gs.get('bookTitle', '') !== bookTitle()) localStorage.clear();
var pos = gs.get('bodyScrollTop');
if (pos) {
if (pos.title === bookInner.find('.page-inner').find('h1,h2').first().text()) {
if (pos.title === chapterTitle()) {
if (pos.body !== 0) bookBody.scrollTop(pos.body);
if (pos.inner !== 0) bookInner.scrollTop(pos.inner);
}
Expand Down
2 changes: 1 addition & 1 deletion _book/libs/gitbook-2.6.7/js/plugin-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {
scrollToHighlighted();
}
}).on("input", ".book-search input", function(e) {
var q = $(this).val();
var q = $(this).val().trim();
if (q.length === 0) {
gitbook.sidebar.filter(null);
gitbook.storage.remove("keyword");
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 18 additions & 0 deletions _bookdown_files/Notes_cache/html/__packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
base
RColorBrewer
knitr
ggplot2
dplyr
tidyr
Lahman
bindrcpp
broom
gamlss.data
MASS
gamlss.dist
nlme
gamlss
VGAM
purrr
ebbr
scales
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file modified _bookdown_files/Notes_files/figure-html/ci-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _bookdown_files/Notes_files/figure-html/ci-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _bookdown_files/Notes_files/figure-html/unnamed-chunk-55-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b0e9ef

Please sign in to comment.