-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
//= require govuk_tech_docs | ||
//= require ./copy.js | ||
//= require ./prototype-banner.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
(function () { | ||
const h1 = document.querySelector('h1'); | ||
|
||
const banner = document.createElement('div'); | ||
|
||
banner.innerHTML = | ||
'<div class="govuk-notification-banner" role="region" aria-labelledby="prototype-banner-title">' + | ||
'<div class="govuk-notification-banner__header">' + | ||
'<h2 class="govuk-notification-banner__title" id="prototype-banner-title">' + | ||
'Warning' + | ||
'</h2>' + | ||
'</div>' + | ||
'<div class="govuk-notification-banner__content">' + | ||
'<p class="govuk-notification-banner__heading">' + | ||
'This documentation is under development and should not be used.' + | ||
'</p>' + | ||
'<p>If you\'re interested in using the API in the future, please contact ' + | ||
'<a href="mailto:[email protected]">[email protected]</a>.' + | ||
'</p>' + | ||
'</div>' + | ||
'</div>'; | ||
|
||
h1.insertAdjacentElement('afterend', banner); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters