Can preselect font from hash in url.

This commit is contained in:
Mattias Blom 2017-01-02 21:52:14 +01:00
parent 3c8bd225a7
commit 3c8cc2d8b4
1 changed files with 8 additions and 1 deletions

View File

@ -376,7 +376,14 @@ function updateGutters(cm) {
custom: { families: font_aliases }
});
$("#select-font").val('input'); // default to this awesome font
var hash = window.location.hash.substring(1);
if(hash){
$("#select-font").val(hash);
}
else {
$("#select-font").val('input'); // default to this awesome font
}
selectFont();
});
});