1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-25 21:26:11 +01:00

Update extra.js

This commit is contained in:
Matthijs Berends 2024-09-30 23:15:28 +02:00 committed by GitHub
parent 91415462c0
commit 88740b6f11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,6 +49,12 @@ $(document).ready(function() {
$("body .template-news").html($("body .template-news").html().replaceAll('sourceCode R"><span></span>\n<span', 'sourceCode R"><span')); $("body .template-news").html($("body .template-news").html().replaceAll('sourceCode R"><span></span>\n<span', 'sourceCode R"><span'));
} }
// make Python part more fancy - prepare for CSS
if (window.location.href.includes('AMR_for_Python')) {
$('body').addClass('amr-for-python');
$('img[src="logo.svg"]').attr('src', 'logo_python.svg');
}
// add doctoral titles to authors // add doctoral titles to authors
function doct_tit(x) { function doct_tit(x) {
if (typeof(x) != "undefined") { if (typeof(x) != "undefined") {
@ -71,6 +77,7 @@ $(document).ready(function() {
x = x.replace("Javier", "Prof. Javier"); x = x.replace("Javier", "Prof. Javier");
x = x.replace("Jonas", "Dr. Jonas"); x = x.replace("Jonas", "Dr. Jonas");
x = x.replace("Judith", "Dr. Judith"); x = x.replace("Judith", "Dr. Judith");
x = x.replace("Larisse", "Dr. Larisse");
x = x.replace("Matthijs", "Dr. Matthijs"); x = x.replace("Matthijs", "Dr. Matthijs");
x = x.replace("Peter", "Dr. Peter"); x = x.replace("Peter", "Dr. Peter");
x = x.replace("Rogier", "Dr. Rogier"); x = x.replace("Rogier", "Dr. Rogier");