Skip to content

Commit

Permalink
fix more authors bug (alshedivat#758)
Browse files Browse the repository at this point in the history
* fix more authors bug

* fix

* add preview

Co-authored-by: Rohan Deb Sarkar <[email protected]>
  • Loading branch information
2 people authored and pecey committed Jan 27, 2023
1 parent df33cef commit 22c4b56
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 22c4b56

Please sign in to comment.