Skip to content

Commit

Permalink
fixing a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHeeryTNA committed Feb 10, 2023
1 parent 255a47e commit e957f0b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = function(grunt) {
'js/image-caption.js',
'js/tna-global.js',
'js/run-on-page-load.js',
'js/hid-search-box.js'
'js/hide-search-box.js'
],
dest: 'js/compiled/tna-base.js'
}
Expand Down
16 changes: 16 additions & 0 deletions js/compiled/tna-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,19 @@ $('.mega-menu > ul > li > a').mega_menu_enhancements();
$(document).ready(function () {
$.moreLinkFocusManager();
});
;// The process for adding JavaScript to this repository is as follows:

// (1) If it involves the use of a third-party plugin or library, place the required file within the /lib directory
// (2) Task specific scripts should be added to this directory
// (3) Any generic, reusable utilities should be placed within generic-utilities.js
// (4) The newly created file should be added to the 'uglify' task within Gruntfile.js
/*
* The National Archives
* Author: John Heery - WEB TEAM
* Hiding the search box in the header for the /webarchives pages
* */

if (window.location.href.indexOf("/webarchive") != -1) {
document.getElementById("global-search-desktop-component").style.display = "none";
document.getElementById("global-search-mobile-component").style.display = "none";
}
2 changes: 1 addition & 1 deletion js/compiled/tna-base.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e957f0b

Please sign in to comment.