commit 27be78f2c935458628f26683d440a17c150c1849
parent fde6b2c33910fca8dbfa3f56683bf9cd10691bce
Author: Beau Hilton <beau.hilton@vumc.org>
Date: Thu, 5 Aug 2021 12:59:19 -0500
replace dashes w spaces
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/_header.html b/_header.html
@@ -10,6 +10,7 @@
var str = url.substring(url.lastIndexOf('/')+1); // removes everything before the filename
str = str.substring(0, str.length - 5); // removes the extension
var filename = str.replace(/%20/g, " "); // if the filename has multiple words separated by spaces, browsers do not like that and replace each space with a %20. This replace %20 with a space.
+ var filename = str.replace(/-/g, " "); // replace dashes with spaces
document.getElementById("title").innerHTML = filename;
</script>
</head>