14 lines
310 B
JavaScript
14 lines
310 B
JavaScript
|
PDFJS.reader.MetaController = function(meta) {
|
|||
|
var title = meta.bookTitle,
|
|||
|
author = meta.creator;
|
|||
|
|
|||
|
var $title = $("#book-title"),
|
|||
|
$author = $("#chapter-title"),
|
|||
|
$dash = $("#title-seperator");
|
|||
|
|
|||
|
document.title = title+" – "+author;
|
|||
|
|
|||
|
$title.html(title);
|
|||
|
$author.html(author);
|
|||
|
$dash.show();
|
|||
|
};
|