JavaScript code implementing a custom jQuery selector to identify external links and add functionality to them. It defines a custom selector `:external` for links with a different hostname than the current location. An event listener is attached to elements with the class `external`, displaying a confirmation dialog when clicked. The dialog informs users they are leaving the Department of Homeland Security webpage and asks for confirmation to proceed, with options to open the link in a new tab or cancel. The dialog includes a semi-transparent black overlay.
documents/EFTA01171864.pdf
{}