Simple use, just define the class you want to open the modal: Google can be loaded externally
$('.call-to-google').modalLoadContent();
Try to load Google.com
Open a external page. Opening a GitHub page: Using a target .page-header to load
$('.call-to-git').modalLoadContent();
Open Checkbox Switch
Trying to open a page that not exist: Check your browser console
$('.call-to-error').modalLoadContent({
debugMode: true
});
Try to load Error page
Opening a content from a button element: Without a target defined.
$('.call-to-button').modalLoadContent({
closeButtonIcon: 'CLOSE',
closeButtonText: 'Click to close'
});