@ -177,7 +177,7 @@ function getCookie(name) {
$(".name-elements").append("< li > < img class = 'listed-images' src = '/files/"+ledocument+"' > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");
$(".name-elements").append("< li > < img class = 'listed-images' src = '/files/"+ledocument+"' > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");
}
}
else if (extension=="pdf") {
else if (extension=="pdf") {
$(".name-elements").append("< li > < object class = 'listed-pdf' data = 'files/"+ledocument+"' / > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");
$(".name-elements").append("< span clas = 'mobile-pdf' > The PDF cannot be displayed on mobile. Please download the file to see it.< / span > "+"< li > < object class = 'listed-pdf' data = 'files/"+ledocument+"' / > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");
}
}
else if ((extension=="mp3") || (extension=="wav") || (extension=="m4a")) {
else if ((extension=="mp3") || (extension=="wav") || (extension=="m4a")) {
$(".name-elements").append("< li > < audio class = 'listed-audio' controls > < source src = 'files/"+ledocument+"' > < / audio > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");
$(".name-elements").append("< li > < audio class = 'listed-audio' controls > < source src = 'files/"+ledocument+"' > < / audio > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");
@ -228,7 +228,7 @@ var flag = true;
$(".name-elements").append("< li > < img class = 'listed-images' src = '/files/"+ledocument+"' > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");
$(".name-elements").append("< li > < img class = 'listed-images' src = '/files/"+ledocument+"' > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");
}
}
else if (extension=="pdf") {
else if (extension=="pdf") {
$(".name-elements").append("< li > < object class = 'listed-pdf' data = 'files/"+ledocument+"' / > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");
$(".name-elements").append("< span clas = 'mobile-pdf' > The PDF cannot be displayed on mobile. Please download the file to see it.< / span > "+"< li > < object class = 'listed-pdf' data = 'files/"+ledocument+"' / > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");
}
}
else if ((extension=="mp3") || (extension=="wav") || (extension=="m4a")) {
else if ((extension=="mp3") || (extension=="wav") || (extension=="m4a")) {
$(".name-elements").append("< li > < audio class = 'listed-audio' controls > < source src = 'files/"+ledocument+"' > < / audio > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");
$(".name-elements").append("< li > < audio class = 'listed-audio' controls > < source src = 'files/"+ledocument+"' > < / audio > < br > < br > < span class = 'librarians-label' > < b > Librarian(s):< / b > "+librarianstring+"< / span > < br > < span class = 'method-label' > < b > Method:< / b > "+methodstring+"< / span > < br > < br > < a href = '/files/"+ledocument+"' download > < button class = 'download' > Download file< / button > < / a > < / li > ");