krapan
6/26/2018 - 3:33 PM

open modal by hash in url

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');
        }
    }