/* # ==================================================================== # # TITLE # # Antimicrobial Resistance (AMR) Data Analysis for R # # # # SOURCE # # https://github.com/msberends/AMR # # # # LICENCE # # (c) 2018-2022 Berends MS, Luz CF et al. # # Developed at the University of Groningen, the Netherlands, in # # collaboration with non-profit organisations Certe Medical # # Diagnostics & Advice, and University Medical Center Groningen. # # # # This R package is free software; you can freely use and distribute # # it for both personal and commercial purposes under the terms of the # # GNU General Public License version 2.0 (GNU GPL-2), as published by # # the Free Software Foundation. # # We created this package for both routine data analysis and academic # # research and it was publicly released in the hope that it will be # # useful, but it comes WITHOUT ANY WARRANTY OR LIABILITY. # # # # Visit our website for the full manual and a complete tutorial about # # how to conduct AMR data analysis: https://msberends.github.io/AMR/ # # ==================================================================== # */ // Add updated Font Awesome 5.8.2 library $('head').append(''); $(document).ready(function() { // remove version label from header $(".version.label").remove(); // redirect GitLab to GitHub var url_old = window.location.href; var url_new = url_old.replace("gitlab", "github"); if (url_old != url_new) { window.location.replace(url_new); } // Edit title of manual $('.template-reference-index h1').text('Manual'); // replace 'Value' in manual with 'Returned value' $(".template-reference-topic h2#value").text("Returned value"); // replace \donttest and \dontrun texts in Examples if ($(".ref-examples pre").length > 0) { $(".ref-examples pre").html($(".ref-examples pre").html().replaceAll("# \\donttest{", "")); $(".ref-examples pre").html($(".ref-examples pre").html().replaceAll("# \\dontrun{", "")); $(".ref-examples pre").html($(".ref-examples pre").html().replaceAll("# }", "")); } // remove leading newline in code examples on changelog if ($("body .template-news").length > 0) { $("body .template-news").html($("body .template-news").html().replaceAll('sourceCode R">\n 0) { $('#pkgdown-sidebar').prepend( '
' + '
' + '

' + ' Learn R reading this great book: R for Data Science.' + '

' + ' ' + ' Click to read it online - it was published for free.' + ' ' + '

' + '
' + '
' + ' ' + ' ' + ' ' + '
' + '
'); } // edit footer $('footer').html( '
' + '

AMR (for R). Developed at the University of Groningen in collaboration with non-profit organisations
Certe Medical Diagnostics and Advice Foundation and University Medical Center Groningen.

' + '' + '
'); // doctoral titles of authors function doct_tit(x) { if (typeof(x) != "undefined") { // authors x = x.replace(/Author, maintainer/g, "Maintainer"); x = x.replace(/Author, contributor/g, "Maintainer"); x = x.replace(/Author, thesis advisor/g, "Doctoral advisor"); x = x.replace(/Thesis advisor/g, "Doctoral advisor"); x = x.replace("Matthijs", "Dr Matthijs"); x = x.replace("Christian", "Dr Christian"); x = x.replace("Alex", "Prof. Alex"); x = x.replace("Bhanu", "Prof. Bhanu"); x = x.replace("Casper", "Prof. Casper"); x = x.replace("Corinna", "Dr Corinna"); // others x = x.replace("Bart", "Dr Bart"); x = x.replace("Sofia", "Dr Sofia"); x = x.replace("Dennis", "Dr Dennis"); x = x.replace("Judith", "Dr Judith"); x = x.replace("Gwen", "Dr Gwen"); x = x.replace("Anthony", "Dr Anthony"); x = x.replace("Rogier", "Dr Rogier"); } return(x); } $(".template-authors").html(doct_tit($(".template-authors").html())); $(".template-citation-authors").html(doct_tit($(".template-citation-authors").html())); $('.template-citation-authors h1').eq(0).html("All contributors of the AMR package"); $('.template-citation-authors h1').eq(1).html("How to cite the AMR package"); $(".developers").html(doct_tit($(".developers").html())); $(".developers a[href='authors.html']").text("All contributors..."); }); $('head').append(" ");