check if the URL contains a given string and open modal
if (window.location.href.indexOf("lector-modal--") > -1) {
var lector = window.location.hash;
if (lector.length > 0) {
$(lector).modal('show');
}
}