I'd like to use the following code:
function popModal() {
// code to pop up modal dialog
}
var hash = window.location.hash;
if (hash.substring(1) == 'modal1') {
popModal();
}
How would I use it with the following Modal example:
<a href="#" data-target=".bs-nps-modal" data-toggle="modal">