diff --git a/static/viewer.html b/static/viewer.html
index 0da1f40e1..3fe39e88d 100644
--- a/static/viewer.html
+++ b/static/viewer.html
@@ -32,10 +32,12 @@
title="Go to the main page of the current book"
aria-label="Go to the main page of the current book"
onclick="gotoMainPageOfCurrentBook()">
-
+
+
+
@@ -93,6 +95,10 @@
location.hash = currentBook + '/';
}
+ function gotoRandomPage() {
+ cf.src = `${root}/random?content=${currentBook}`;
+ }
+
function setCurrentBook(book, title) {
currentBook = book;
currentBookTitle = title;