2019-01-02 23:24:07 +01:00
|
|
|
/*
|
|
|
|
# ==================================================================== #
|
|
|
|
# TITLE #
|
|
|
|
# Antimicrobial Resistance (AMR) Analysis #
|
|
|
|
# #
|
|
|
|
# SOURCE #
|
|
|
|
# https://gitlab.com/msberends/AMR #
|
|
|
|
# #
|
|
|
|
# LICENCE #
|
|
|
|
# (c) 2019 Berends MS (m.s.berends@umcg.nl), Luz CF (c.f.luz@umcg.nl) #
|
|
|
|
# #
|
|
|
|
# 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. #
|
|
|
|
# #
|
|
|
|
# This R package was created for academic research and was publicly #
|
|
|
|
# released in the hope that it will be useful, but it comes WITHOUT #
|
|
|
|
# ANY WARRANTY OR LIABILITY. #
|
|
|
|
# Visit our website for more info: https://msberends.gitab.io/AMR. #
|
|
|
|
# ==================================================================== #
|
|
|
|
*/
|
|
|
|
|
2018-12-29 22:24:19 +01:00
|
|
|
// Add updated Font Awesome 5.6.3 library
|
|
|
|
$('head').append('<!-- Updated Font Awesome library --><link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">');
|
|
|
|
|
2019-01-02 23:24:07 +01:00
|
|
|
// Edit footer
|
2018-12-30 10:27:28 +01:00
|
|
|
$( document ).ready(function() {
|
2019-01-21 15:53:01 +01:00
|
|
|
|
|
|
|
// redirect to GitLab
|
|
|
|
var url_old = window.location.href;
|
|
|
|
var url_new = url_old.replace("github", "gitlab");
|
|
|
|
if (url_old != url_new) {
|
2019-01-21 21:24:40 +01:00
|
|
|
window.location.replace(url_new);
|
2019-01-21 15:53:01 +01:00
|
|
|
}
|
|
|
|
|
2019-02-11 10:27:10 +01:00
|
|
|
// PR for 'R for Data Science' on How To pages
|
|
|
|
if ($(".template-article").length > 0) {
|
|
|
|
$('#sidebar').prepend(
|
|
|
|
'<div id="r4ds">' +
|
2019-02-13 17:14:59 +01:00
|
|
|
' <a target="_blank" href="https://r4ds.had.co.nz/">' +
|
|
|
|
' Learn R reading this great book: R for Data Science.' +
|
|
|
|
' <br><br>' +
|
2019-02-11 10:27:10 +01:00
|
|
|
' Click to read it online - it was published for free.' +
|
|
|
|
' <img src="../../AMR/cover_r4ds.png" height="100px">' +
|
|
|
|
' </a> ' +
|
|
|
|
' <hr>' +
|
|
|
|
'</div>');
|
|
|
|
}
|
2019-02-09 22:16:24 +01:00
|
|
|
|
2019-01-22 19:55:11 +01:00
|
|
|
$('footer').html(
|
|
|
|
'<div>' +
|
|
|
|
'<p>' + $('footer .copyright p').html().replace(
|
|
|
|
"Developed by",
|
|
|
|
'<code>AMR</code> (for R). Developed at the <a href="https://www.rug.nl" target="_blank">University of Groningen</a>.<br>Authors:') + '</p>' +
|
2019-01-25 20:47:57 +01:00
|
|
|
'<a href="https://www.rug.nl" target="_blank"><img src="../../AMR/logo_rug.png" class="footer_logo"></a>' +
|
2019-01-22 19:55:11 +01:00
|
|
|
'</div>');
|
2019-01-02 23:24:07 +01:00
|
|
|
|
2019-02-14 15:18:17 +01:00
|
|
|
// doctoral titles of authors
|
|
|
|
function doct_tit(x) {
|
|
|
|
if (typeof(x) != "undefined") {
|
|
|
|
x = x.replace("Corinna", "Dr Corinna");
|
|
|
|
x = x.replace("Alex", "Prof Dr Alex");
|
|
|
|
x = x.replace("Bhanu", "Prof Dr Bhanu");
|
|
|
|
x = x.replace(/Author, thesis advisor/g, "Doctoral advisor");
|
|
|
|
}
|
|
|
|
return(x);
|
|
|
|
}
|
|
|
|
$(".template-authors").html(doct_tit($(".template-authors").html()));
|
|
|
|
$(".developers").html(doct_tit($(".developers").html()));
|
|
|
|
$("footer").html(doct_tit($("footer").html()));
|
|
|
|
|
2019-01-02 23:24:07 +01:00
|
|
|
// Edit title of manual
|
|
|
|
$('.template-reference-index h1').text('Manual');
|
2018-12-30 10:27:28 +01:00
|
|
|
});
|
2019-01-08 16:23:45 +01:00
|
|
|
|
2019-01-21 21:24:40 +01:00
|
|
|
$('head').append("<!-- Matomo --><script type='text/javascript'> var _paq = _paq || []; /* tracker methods like 'setCustomDimension' should be called before 'trackPageView' */ _paq.push(['setDomains', ['*.msberends.gitlab.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 -->");
|