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 <rohandebsarkar@gmail.com>
  • Loading branch information
2 people authored and GeorgeVern committed Feb 1, 2023
1 parent b386f55 commit 1a93bee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion _bibliography/papers.bib
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ @book{einstein1956investigations
author={Einstein, Albert},
year={1956},
publisher={Courier Corporation,},
<<<<<<< HEAD
preview={brownian-motion.gif},
>>>>>>> 9411786 (Adds support for preview images for publications (#730))
=======
preview={brownian-motion.gif}
>>>>>>> 24a5084 (fix more authors bug (#758))
}

@inproceedings{smala,
Expand Down Expand Up @@ -84,5 +88,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 1a93bee

Please sign in to comment.