From e23135261746b40a46d5910306b568d35d99d05c Mon Sep 17 00:00:00 2001 From: Matthijs Berends Date: Mon, 9 Dec 2024 18:42:47 +0100 Subject: [PATCH] website update --- pkgdown/extra.js | 56 +++++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/pkgdown/extra.js b/pkgdown/extra.js index dd87ec24..86c7cb24 100644 --- a/pkgdown/extra.js +++ b/pkgdown/extra.js @@ -65,34 +65,36 @@ $(document).ready(function() { } // add country flags - function country_flag(x) { + function country_flag(x) { if (typeof(x) != "undefined") { - x = x.replace("Alex", ' Alex'); - x = x.replace("Andrew", ' Andrew'); - x = x.replace("Anita", ' Anita'); - x = x.replace("Annick", ' Annick'); - x = x.replace("Anthony", ' Anthony'); - x = x.replace("Anton", ' Anton'); - x = x.replace("Bart", ' Bart'); - x = x.replace("Bhanu", ' Bhanu'); - x = x.replace("Casper", ' Casper'); - x = x.replace("Christian", ' Christian'); - x = x.replace("Corinna", ' Corinna'); - x = x.replace("Dennis", ' Dennis'); - x = x.replace("Dmytro", ' Dmytro'); - x = x.replace("Eric", ' Eric'); - x = x.replace("Erwin", ' Erwin'); - x = x.replace("Gwen", ' Gwen'); - x = x.replace("Jason", ' Jason'); - x = x.replace("Javier", ' Javier'); - x = x.replace("Jonas", ' Jonas'); - x = x.replace("Judith", ' Judith'); - x = x.replace("Larisse", ' Larisse'); - x = x.replace("Matthew", ' Matthew'); - x = x.replace("Matthijs", ' Matthijs'); - x = x.replace("Peter", ' Peter'); - x = x.replace("Rogier", ' Rogier'); - x = x.replace("Sofia", ' Sofia'); + const prefix = ' '; + x = x.replace("Alex", prefix + "de" + suffix + "Alex"); + x = x.replace("Andrew", prefix + "us" + suffix + "Andrew"); + x = x.replace("Anita", prefix + "au" + suffix + "Anita"); + x = x.replace("Annick", prefix + "nl" + suffix + "Annick"); + x = x.replace("Anthony", prefix + "en" + suffix + "Anthony"); + x = x.replace("Anton", prefix + "uk" + suffix + "Anton"); + x = x.replace("Bart", prefix + "nl" + suffix + "Bart"); + x = x.replace("Bhanu", prefix + "nl" + suffix + "Bhanu"); + x = x.replace("Casper", prefix + "nl" + suffix + "Casper"); + x = x.replace("Christian", prefix + "de" + suffix + "Christian"); + x = x.replace("Corinna", prefix + "nl" + suffix + "Corinna"); + x = x.replace("Dennis", prefix + "nl" + suffix + "Dennis"); + x = x.replace("Dmytro", prefix + "uk" + suffix + "Dmytro"); + x = x.replace("Eric", prefix + "nl" + suffix + "Eric"); + x = x.replace("Erwin", prefix + "nl" + suffix + "Erwin"); + x = x.replace("Gwen", prefix + "en" + suffix + "Gwen"); + x = x.replace("Jason", prefix + "ca" + suffix + "Jason"); + x = x.replace("Javier", prefix + "ca" + suffix + "Javier"); + x = x.replace("Jonas", prefix + "de" + suffix + "Jonas"); + x = x.replace("Judith", prefix + "nl" + suffix + "Judith"); + x = x.replace("Larisse", prefix + "sa" + suffix + "Larisse"); + x = x.replace("Matthew", prefix + "ca" + suffix + "Matthew"); + x = x.replace("Matthijs", prefix + "nl" + suffix + "Matthijs"); + x = x.replace("Peter", prefix + "en" + suffix + "Peter"); + x = x.replace("Rogier", prefix + "nl" + suffix + "Rogier"); + x = x.replace("Sofia", prefix + "sv" + suffix + "Sofia"); } return(x); }