Update index.js

This commit is contained in:
Erwan Kessler 2020-09-02 10:40:20 +02:00 committed by GitHub
parent 90db59ad1f
commit 00b755efbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ var $sitehead = $('#site-head');
}, 1000);
}
function srcToAnchorWithTitle (str) {
var $el = $('#' + str);
var $el = $('#' + str.replace("'","\\\'"));
if ($el.length) {
srcTo($el);
}