mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Auto-set input/keyboard focus on slideshow.
This commit is contained in:
parent
787d2cc27b
commit
030fc8e765
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user