/* global businessStoreScreenReaderText */ /** * Theme functions file. * * Contains handlers for navigation and widget area. */ (function( $ ) { var modal = document.getElementById('myModal'); $(document).ready(function() { $("#myBtn").click(function(){ modal.style.display = "block"; }); // When the user clicks on (x), close the modal $("#search-close").click(function(){ modal.style.display = "none"; }); }); // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { // Get the modal if (event.target == modal) { modal.style.display = "none"; } } var masthead, menuToggle, siteNavContain, siteNavigation; function initMainNavigation( container ) { // Add dropdown toggle that displays child menu items. var dropdownToggle = $( '