Our School

document.addEventListener('DOMContentLoaded', function() { setTimeout(function() { jQuery(function($){ let desktoptitles = $('.elementor-tab-desktop-title'); let mobiletitles = $('.elementor-tab-mobile-title'); let strings = ['?enrol', '?strat', '?bot', '?prospectus', '?ero', '?policy', '?bus', '?finance' ]; strings.forEach( (string,i) => { if (window.location.href.indexOf(string) > -1) { desktoptitles.eq(i).click(); mobiletitles.eq(i).click(); $('html, body').animate({ scrollTop: desktoptitles.eq(i).offset().top - 100 },'slow'); } } ); }); }, 1200); });