2019-01-02 23:24:07 +01:00
/ *
# === === === === === === === === === === === === === === === === === === === === === === == #
# TITLE #
2022-10-05 09:12:22 +02:00
# AMR : An R Package for Working with Antimicrobial Resistance Data #
2019-01-02 23:24:07 +01:00
# #
# SOURCE #
2020-07-08 14:48:06 +02:00
# https : //github.com/msberends/AMR #
2019-01-02 23:24:07 +01:00
# #
2022-10-05 09:12:22 +02:00
# CITE AS #
# Berends MS , Luz CF , Friedrich AW , Sinha BNM , Albers CJ , Glasner C #
# ( 2022 ) . AMR : An R Package for Working with Antimicrobial Resistance #
# Data . Journal of Statistical Software , 104 ( 3 ) , 1 - 31. #
# doi : 10.18637 / jss . v104 . i03 #
# #
2022-12-27 15:16:15 +01:00
# Developed at the University of Groningen and the University Medical #
# Center Groningen in The Netherlands , in collaboration with many #
# colleagues from around the world , see our website . #
2019-01-02 23:24:07 +01:00
# #
# 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 . #
2020-01-05 17:22:09 +01:00
# 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 . #
2020-10-08 11:16:03 +02:00
# #
# Visit our website for the full manual and a complete tutorial about #
2021-02-02 23:57:35 +01:00
# how to conduct AMR data analysis : https : //msberends.github.io/AMR/ #
2019-01-02 23:24:07 +01:00
# === === === === === === === === === === === === === === === === === === === === === === == #
* /
2020-07-22 10:24:23 +02:00
$ ( document ) . ready ( function ( ) {
2019-01-21 15:53:01 +01:00
2022-10-21 21:56:54 +02:00
// Replace 'Developers' with 'Maintainers' on the main page, and "Contributors" on the Authors page
2022-08-27 20:49:37 +02:00
$ ( ".developers h2" ) . text ( "Maintainers" ) ;
2023-01-14 19:50:25 +01:00
$ ( ".citation h2:nth(0)" ) . text ( "All contributors" ) ;
$ ( ".citation h2:nth(1)" ) . text ( "How to Cite" ) ;
2022-08-27 20:49:37 +02:00
2023-01-14 17:10:10 +01:00
// remove \donttest and \dontrun texts in Examples
2022-08-21 17:22:34 +02:00
if ( $ ( "#ref-examples ~ div pre" ) . length > 0 ) {
2023-01-14 19:50:25 +01:00
$ ( "#ref-examples ~ div pre" ) . html ( $ ( "#ref-examples ~ div pre" ) . html ( ) . replaceAll ( "# \\donttest{" , "" ) ) ;
$ ( "#ref-examples ~ div pre" ) . html ( $ ( "#ref-examples ~ div pre" ) . html ( ) . replaceAll ( "# \\dontrun{" , "" ) ) ;
$ ( "#ref-examples ~ div pre" ) . html ( $ ( "#ref-examples ~ div pre" ) . html ( ) . replaceAll ( "# }" , "" ) ) ;
2021-04-30 13:18:48 +02:00
}
2023-01-12 23:16:05 +01:00
2021-05-03 10:47:32 +02:00
// remove leading newline in code examples on changelog
2021-05-05 15:47:39 +02:00
if ( $ ( "body .template-news" ) . length > 0 ) {
$ ( "body .template-news" ) . html ( $ ( "body .template-news" ) . html ( ) . replaceAll ( 'sourceCode R">\n<span' , 'sourceCode R"><span' ) ) ;
2022-08-21 17:22:34 +02:00
$ ( "body .template-news" ) . html ( $ ( "body .template-news" ) . html ( ) . replaceAll ( 'sourceCode R"><span></span>\n<span' , 'sourceCode R"><span' ) ) ;
2021-05-05 15:47:39 +02:00
}
2019-01-02 23:24:07 +01:00
2022-08-21 16:37:20 +02:00
// add doctoral titles to authors
2019-02-14 15:18:17 +01:00
function doct _tit ( x ) {
if ( typeof ( x ) != "undefined" ) {
2022-08-21 16:37:20 +02:00
x = x . replace ( /Author, maintainer/g , "Principle developer" ) ;
x = x . replace ( /Author, contributor/g , "Contributing maintainer" ) ;
2022-10-21 21:56:54 +02:00
x = x . replace ( /Thesis advisor/g , "(former) Doctoral advisor" ) ;
// contributors
x = x . replace ( "Alex" , "Prof. Alex" ) ;
2023-01-12 23:16:05 +01:00
x = x . replace ( "Andrew" , "Dr. Andrew" ) ;
2022-08-21 16:37:20 +02:00
x = x . replace ( "Anthony" , "Dr. Anthony" ) ;
2022-11-10 22:07:35 +01:00
x = x . replace ( "Annick" , "Dr. Annick" ) ;
2022-08-21 16:37:20 +02:00
x = x . replace ( "Bart" , "Dr. Bart" ) ;
2022-10-21 21:56:54 +02:00
x = x . replace ( "Bhanu" , "Prof. Bhanu" ) ;
x = x . replace ( "Casper" , "Prof. Casper" ) ;
2022-08-21 16:37:20 +02:00
x = x . replace ( "Christian" , "Dr. Christian" ) ;
x = x . replace ( "Corinna" , "Dr. Corinna" ) ;
x = x . replace ( "Dennis" , "Dr. Dennis" ) ;
x = x . replace ( "Gwen" , "Dr. Gwen" ) ;
2022-10-21 21:56:54 +02:00
x = x . replace ( "Jonas" , "Dr. Jonas" ) ;
2022-08-21 16:37:20 +02:00
x = x . replace ( "Judith" , "Dr. Judith" ) ;
x = x . replace ( "Matthijs" , "Dr. Matthijs" ) ;
x = x . replace ( "Peter" , "Dr. Peter" ) ;
x = x . replace ( "Rogier" , "Dr. Rogier" ) ;
x = x . replace ( "Sofia" , "Dr. Sofia" ) ;
2019-02-14 15:18:17 +01:00
}
return ( x ) ;
}
$ ( ".template-authors" ) . html ( doct _tit ( $ ( ".template-authors" ) . html ( ) ) ) ;
2019-12-27 11:56:54 +01:00
$ ( ".template-citation-authors" ) . html ( doct _tit ( $ ( ".template-citation-authors" ) . html ( ) ) ) ;
2019-02-14 15:18:17 +01:00
$ ( ".developers" ) . html ( doct _tit ( $ ( ".developers" ) . html ( ) ) ) ;
2020-07-29 12:47:58 +02:00
$ ( ".developers a[href='authors.html']" ) . text ( "All contributors..." ) ;
2018-12-30 10:27:28 +01:00
} ) ;
2019-01-08 16:23:45 +01:00
2020-07-09 14:12:11 +02:00
$ ( 'head' ) . append ( "<!-- Global site tag (gtag.js) - Google Analytics --> <script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-172114740-1\"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-172114740-1'); </script><!-- Matomo --><script type='text/javascript'> var _paq = _paq || []; /* tracker methods like 'setCustomDimension' should be called before 'trackPageView' */ _paq.push(['setDomains', ['*.msberends.github.io/AMR']]); _paq.push(['enableCrossDomainLinking']); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u='https://analyse.uscloud.nl/'; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', '3']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })();</script><!-- End Matomo Code -->" ) ;