Streaming live at 10am (PST)

Webflow Custom Code Problem DIV

Hey Guys, i did this custom code:


var d = new Date();
var n = d.getHours();
$( document ).ready(function() {
  if (n > 15) {
} else {
  $('.TEST').show(); }

What it should do:

If Current time is under 3pm and lower than 10pm, hide div "TEST"
If Current time is more than 10pm and lower than 3pm, show div "TEST"

Pretty simple but i failed… :frowning:

Any help?

Try using lowercase on your selector.

thank you so much sir