diff --git a/changes/26.feature b/changes/26.feature new file mode 100644 index 0000000..1e88214 --- /dev/null +++ b/changes/26.feature @@ -0,0 +1 @@ +Globally loads the `/data/static/js/alert_exit.js` script to alert users when they are leaving the canada.ca or gc.ca domain space. diff --git a/gcweb.info.yml b/gcweb.info.yml index 4d0deca..8211338 100755 --- a/gcweb.info.yml +++ b/gcweb.info.yml @@ -22,3 +22,4 @@ regions: libraries: - 'gcweb/global-styling' + - 'gcweb/exit-alert' diff --git a/gcweb.libraries.yml b/gcweb.libraries.yml index a4e1ddd..82a6bb4 100755 --- a/gcweb.libraries.yml +++ b/gcweb.libraries.yml @@ -4,6 +4,11 @@ global-styling: theme: css/style.min.css: { minified: true, attributes: { defer: true } } +# Library for exit alert +exit-alert: + js: + /data/static/js/alert_exit.js: {} + # Library for loading WET-BOEW CDTS template scripts wet-load: js: