Back to top

Banovallum School

// Reset site search form on focus function resetsearch () { $("#search-field").val(""); } $(document).ready(function() { // Finding an li inside the div var awb = $('.CMSawards li img').length; // If nothing added via CMS if (awb == 0) { $('.CMSawards').attr('class','hidden'); $('#awards').hide(); } // Add parent class to 2nd level links with children $("#dmenu li li a").each(function() { if ($(this).next().length > 0) { $(this).addClass("parent"); }; }); // Add doubleTapToGo to navigation links $("#dmenu li:has(ul)").doubleTapToGo(); /* touch device menus */ }); //RESPONSIVE CODE function checkWidth() { var windowSize = $(window).width(); if (windowSize < 770) { // If mobile: Insert sidebar after Content2Column $(".ColumnLeft").insertAfter(".Content2Column"); $(".ColumnRight").insertAfter(".Content2Column"); } else { // Otherwise reposition sidebar before Content2Column $(".ColumnLeft").insertBefore(".Content2Column"); $(".ColumnRight").insertBefore(".Content2Column"); } } checkWidth(); $(window).bind('resize orientationchange', function() { checkWidth(); }); //prevent # link from having action $('a[href="#"]:not(.auto-list-modal)').click(function(e) { e.preventDefault(); }); -->