From 65c111c38f60ab66b5bec2eb728179c2fbe14f9b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20Nar=C3=A7on?= <nicolas.narcon@inrae.fr>
Date: Thu, 25 Aug 2022 12:39:30 +0200
Subject: [PATCH] ENH: make click go to next slide + small style change

---
 slides/index.html | 8 ++++++++
 slides/otb.css    | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/slides/index.html b/slides/index.html
index 32f5533..19a48b5 100644
--- a/slides/index.html
+++ b/slides/index.html
@@ -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>
diff --git a/slides/otb.css b/slides/otb.css
index 82bfcd0..f241674 100644
--- a/slides/otb.css
+++ b/slides/otb.css
@@ -211,7 +211,7 @@ y {
 
 .reveal pre code {
   display: block;
-  font-size: 1.15em;
+  font-size: 1.35em;
   background: #FFFFFF;
   padding: 5px;
   overflow: auto;
-- 
GitLab