Commit 65c111c3 authored by Narcon Nicolas's avatar Narcon Nicolas
Browse files

ENH: make click go to next slide + small style change

parent 80435a83
No related merge requests found
Pipeline #38622 passed with stages
in 1 minute and 46 seconds
Showing with 9 additions and 1 deletion
+9 -1
......@@ -232,6 +232,14 @@
pathSize: 2, // (optional) path size in px, default 4
}
});
window.addEventListener("mousedown", handleClick, false);
window.addEventListener("contextmenu", function(e) { e.preventDefault(); }, false);
function handleClick(e) {
e.preventDefault();
if(e.button === 0) Reveal.next();
if(e.button === 2) Reveal.prev();
}
</script>
</body>
</html>
......@@ -211,7 +211,7 @@ y {
.reveal pre code {
display: block;
font-size: 1.15em;
font-size: 1.35em;
background: #FFFFFF;
padding: 5px;
overflow: auto;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment