-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more complex application.js to test
- Loading branch information
1 parent
c6a064c
commit 40f2d4e
Showing
4 changed files
with
33 additions
and
23 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
15 changes: 13 additions & 2 deletions
15
__tests__/fixtures/test-v11-prototype/app/assets/javascripts/application.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 |
---|---|---|
@@ -1,11 +1,22 @@ | ||
/* global $ */ | ||
/* global GOVUK */ | ||
|
||
// Warn about using the kit in production | ||
if (window.console && window.console.info) { | ||
window.console.info('GOV.UK Prototype Kit - do not use for production') | ||
} | ||
|
||
$(document).ready(function () { | ||
window.GOVUKFrontend.initAll() | ||
console.log('Hello') | ||
// Use GOV.UK shim-links-with-button-role.js to trigger a link styled to look like a button, | ||
// with role="button" when the space key is pressed. | ||
GOVUK.shimLinksWithButtonRole.init() | ||
|
||
// Details/summary polyfill from frontend toolkit | ||
GOVUK.details.init() | ||
|
||
// Show and hide toggled content | ||
// Where .multiple-choice uses the data-target attribute | ||
// to toggle hidden content | ||
var showHideContent = new GOVUK.ShowHideContent() | ||
showHideContent.init() | ||
}) |
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
This file was deleted.
Oops, something went wrong.