VermontDepartmentOfHealth / covid-bot

A knowledge base & automated chatbot from the Vermont Department of Health with info for the COVID-19 response
https://vermontdepartmentofhealth.github.io/covid-bot/
MIT License
3 stars 2 forks source link

Add popover for web chat client #11

Open KyleMit opened 4 years ago

KyleMit commented 4 years ago

Add persistent chat icon to the page that expands to client when clicked

Simple implementation

function popupFunction() {
    var x = document.getElementById('chatFrame');
    if (x.style.visibility == 'hidden') {
        x.style.visibility = 'visible';
    }
    else {
        x.style.visibility = 'hidden';
    }
}