diff --git a/help-menu.html b/help-menu.html new file mode 100644 index 0000000..4de22c7 --- /dev/null +++ b/help-menu.html @@ -0,0 +1,12 @@ + + +
+

How to use this presentation

+ +
\ No newline at end of file diff --git a/helper.py b/helper.py index ff944cd..e8ad754 100644 --- a/helper.py +++ b/helper.py @@ -33,7 +33,7 @@ def get_modification_time(path): return os.stat(path)[stat.ST_MTIME] # Replace the "src" attribute on images by "data-src". -# Should be done after caching because fragments#defragmentize requires +# Should be done after caching because fragments#defragmentize requires # valid XHTML and data-src causes problems with that. # Also: Toggling lazyload is easier this way. def add_lazyload(source, lazyload_images): @@ -41,3 +41,11 @@ def add_lazyload(source, lazyload_images): return re.sub(r'`; let currentLevel = 1; @@ -352,6 +356,7 @@ function toggleTopicList() { if (topicList.style.visibility === 'visible') { hideTopicList(); } else { + hideHelpMenu(); topicListSearch.value = ''; onTopicListSearchInput(); topicList.style.visibility = 'visible'; @@ -371,4 +376,13 @@ function hideTopicList() { function reactToResizing() { goToSlide(currentSlide); +} + +function toggleHelpMenu() { + hideTopicList(); + document.getElementById('help-menu-toggle').click(); +} + +function hideHelpMenu() { + document.getElementById('help-menu-checkbox').checked = false; } \ No newline at end of file