function goTo (selector) {
const element = document.querySelector(selector);
if (element) {
element.scrollIntoView({behavior: 'smooth', block: 'start'});
}
}
function show(selector) {
const element = document.querySelector(selector);
if (element) element.style.display = 'block';
}
function showSpan(selector) {
const element = document.querySelector(selector);
if (element) element.style.display = 'inline';
}
function showFlex(selector) {
const element = document.querySelector(selector);
if (element) element.style.display = 'flex';
}
function hide(selector) {
const element = document.querySelector(selector);
if (element) element.style.display = 'none';
}
function html(element, html) {
elements = document.querySelectorAll(element);
if (elements) elements.forEach(function (element) { element.innerHTML = html; });
}
html('#airportparkingtool', `
Airport Parking: Comparison of Comparisons
Beta
We check all the major parking comparison sites to find the cheapest deals - including special MSE discounts