updates towards more customization

This commit is contained in:
Ginger Wong
2020-06-18 10:24:54 -07:00
parent d15080db11
commit b39824b8c3
6 changed files with 78 additions and 44 deletions

View File

@@ -47,6 +47,15 @@ function addNewlines(str) {
return str.replace(/(?:\r\n|\r|\n)/g, '<br />');
}
function pluralize(string, count) {
if (count === 1) {
return string;
} else {
return string + "s";
}
}
// Trying to determine if browser is mobile/tablet.
// Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent
function hasTouchScreen() {