<script> window.addEventListener("load", function(){ var currentTime = new Date(); var hours = currentTime.getHours(); var minutes = currentTime.getMinutes(); var t =currentTime.getHours() + ":" + currentTime.getMinutes(); var newButton = document.getElementById("submit"); if(t >= 10:25 && t <= 11:25) { newButton.style.display = "none"; } else { newButton.style.display = "block"; } }, false); </script>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter