Scheduling a java script / web widget to appear on WP page only during opening hours

I created a neat widget (Trengo customer service) which offers multiple ways for customers to take contact. Its a java, it works by just dumbing the installation script on web page. Works amazingly well.

BUT!

I want it to be scheduled, so it appears only during office times. It can of course be “closed” but i want this one to appear when people work and disappear after work. After work i want to have another java based script/widget to be run.

​

So, how do i schedule a java script to be run for example between only 8 am and 5 pm.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer