var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; var today = new Date(); var abc = today.toLocaleDateString("en-US", options); document.getElementById("rtp-date").textContent = abc; var slides = document.getElementsByClassName("mySlides"); var slideIndex = 1; showSlides(slideIndex); function plusSlides(n) { var slides = document.getElementsByClassName("mySlides"); if (slideIndex <= slides.length - 4 || slideIndex >= 1) { showSlides(slideIndex += n); } } function currentSlide(n) { showSlides(slideIndex = n); } function showSlides(n) { var i; if (n > slides.length) { slideIndex = 1 } if (n < 1) { slideIndex = slides.length } for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } slides[slideIndex - 1].style.display = "block"; } document.onkeydown = function(e) { if(e.keyCode == 123) { return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)){ return false; } }