Skip to content

Commit

Permalink
Merge branch 'hibbitts-design:docsify-this-v1' into docsify-this-v1
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhibbitts authored Dec 27, 2024
2 parents 3ead75c + 5c19587 commit 13d5352
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1376,9 +1376,11 @@

fontfamily = getURLParameterByName(['font-family', 'fontFamily'], null, null, window.location.href, true);
if (fontfamily) {
const urlParams = new URLSearchParams(window.location.search); // Get query string
const fontFamily = urlParams.get('font-family'); // Get the raw string of 'font-family'
document.getElementById('fontfamily').value = encodeURI(fontfamily);
const urlParams = new URLSearchParams(window.location.search);
const fontFamily = urlParams.get('font-family');
const plusToSpace = fontFamily.replace(/\+/g, '%20');
const decodedString = decodeURIComponent(plusToSpace);
document.getElementById('fontfamily').value = encodeURI(decodedString);
}

fontsize = getURLParameterByName(['font-size', 'fontSize'], null, null, window.location.href, true);
Expand Down

0 comments on commit 13d5352

Please sign in to comment.