From 2e1dc91c5963e725f0b07f5625a3516541f2f797 Mon Sep 17 00:00:00 2001 From: samuelfrederico <36976068+samuelfrederico@users.noreply.github.com> Date: Tue, 7 Jul 2020 16:17:23 -0300 Subject: [PATCH] Added showPrev option Added option to hide previous button. Default is visible, when param showPrev is equal to false, hides the previous button. --- enjoyhint.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/enjoyhint.js b/enjoyhint.js index f3d034f..88d9374 100644 --- a/enjoyhint.js +++ b/enjoyhint.js @@ -191,6 +191,9 @@ $body.enjoyhint("show_prev"); } + if (step_data.showPrev == false) { + $body.enjoyhint("hide_prev"); + } if (step_data.showSkip == false) { $body.enjoyhint("hide_skip");