Auto-set input/keyboard focus on slideshow.

This commit is contained in:
David Russell 2017-03-02 10:47:40 +07:00
parent 787d2cc27b
commit 030fc8e765

View File

@ -89,5 +89,14 @@
@LandingSocialDependencies(deps, offline)
}
<script src="@deps.gitpitchjs(offline)/adjuster.js"></script>
<script>
function focusOnSlides() {
var iframes = $("#slideshow");
if(iframes.length > 0) {
iframes[0].contentWindow.focus();
}
};
window.setInterval(focusOnSlides, 250);
</script>
</body>
</html>