jQuery(document).ready(function() {
// Parse the URL
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^]*)"),
results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
// Give the URL parameters variable names
var access = getParameterByName('access');
// if access does not equal 'yes', then display the popup
if (access !== 'yes') {
var popupConfig = {
items: {
src: 'https://www2.riskonnect.com/l/29712/2023-10-24/9pdgwk'
},
type: 'iframe',
modal: true
};
// Open Magnific Popup
jQuery.magnificPopup.open(popupConfig);
}
});