Skip to content

Commit

Permalink
Merge pull request #1 from alshedivat/master
Browse files Browse the repository at this point in the history
fix more authors bug (alshedivat#758)
  • Loading branch information
xiaosu-zhu authored Jul 11, 2022
2 parents d0c1ec3 + 24a5084 commit 159e781
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions _bibliography/papers.bib
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ @book{einstein1956investigations
author={Einstein, Albert},
year={1956},
publisher={Courier Corporation,},
preview={brownian-motion.gif},
preview={brownian-motion.gif}
}

@article{einstein1950meaning,
Expand Down Expand Up @@ -77,5 +77,6 @@ @book{przibram1967letters
title={Letters on wave mechanics},
author={Einstein, Albert and Schrödinger, Erwin and Planck, Max and Lorentz, Hendrik Antoon and Przibram, Karl},
year={1967},
publisher={Vision}
publisher={Vision},
preview={wave-mechanics.gif}
}
4 changes: 2 additions & 2 deletions _layouts/bib.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@
class="more-authors"
title="click to view {{more_authors_hide}}"
onclick="
var element = $('span.more-authors');
var element = $(this);
element.attr('title', '');
var more_authors_text = element.text() == '{{more_authors_hide}}' ? '{{more_authors_show}}' : '{{more_authors_hide}}';
var cursorPosition = 0;
var textAdder = setInterval(function(){
element.text(more_authors_text.substring(0, cursorPosition + 1));
element.attr('title', '');
if (++cursorPosition == more_authors_text.length){
clearInterval(textAdder);
}
Expand Down
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 159e781

Please sign in to comment.