Dialog tests
The following two examples can auto-load a dialog on page view. Only a single modal dialog can auto-load at a time, as multiple open dialogs should not be allowed.
Modal Dialog Test 1 Auto-loaded from URL hash
Manually Launch Modal 1
Auto-loaded test 1
This dialog will open automatically if the URL fragment "#modal_1" is present.
If a URL contains the ID of a dialog, this method will take precedent over other auto-loading methods.
Modal Dialog Test 2 Auto-loaded from data-modal-auto attribute
Auto-load test 2
This modal dialog opens by default because the dialog container has the attribute "data-modal-auto". This attribute could have been placed on the button to manually open this dialog, instead, and it would have produced the same auto-load effect.