diff --git a/README.md b/README.md index 752f093..401c3a8 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,28 @@ -# Mirva - -A tool to create a web gallery from a single folder of images. -Also .mp4 files are included in the gallery - -## Installation - -Usage requires ImageMagick binaries! Make sure you have `convert` in PATH. - -Use pip or similar to install from source. - -ex. - -`pip3 install --user --upgrade https://bitbucket.org/MoonQ/mirva/get/master.zip` - -or `pipx install https://bitbucket.org/MoonQ/mirva/get/master.zip` - -## Usage - -Use the command line tool `mirva` to render web sites. - - -## Acknowledgements - -Thank you Mirva for being a lustrous source of inspiration - May you stay -full of joy and love! +# Mirva + +A tool to create a web gallery from a single folder of images. +Also .mp4 files are included in the gallery + +## Installation + +Usage requires ImageMagick binaries! Make sure you have `convert` in PATH. + +Use pip or similar to install from source. + +ex. + +`pip3 install --user --upgrade https://bitbucket.org/MoonQ/mirva/get/master.zip` + +or `pipx install https://bitbucket.org/MoonQ/mirva/get/master.zip` + +## Usage + +Use the command line tool `mirva` to render web sites. + +note: Arrow keys left/right on web page move between images. + + +## Acknowledgements + +Thank you Mirva for being a lustrous source of inspiration - May you stay +full of joy and love! diff --git a/mirva/__init__.py b/mirva/__init__.py index e969690..e91c25f 100644 --- a/mirva/__init__.py +++ b/mirva/__init__.py @@ -1,4 +1,5 @@ __version__ = "20220124.0" +__version__ = "20211114.0" def get_version(): diff --git a/mirva/mirva.py b/mirva/mirva.py index 6e1fc94..6077910 100755 --- a/mirva/mirva.py +++ b/mirva/mirva.py @@ -159,43 +159,7 @@ Released : 20110306 {page_title} - +
@@ -304,6 +268,7 @@ function create_button(direction, to) {{ "arrow_down.png", "banner.jpg", "mirva.ico", + "mirva.js", ): if os.path.exists(os.path.join(self.resource_dir, f)): continue diff --git a/mirva/resources/mirva.js b/mirva/resources/mirva.js new file mode 100644 index 0000000..9f09d31 --- /dev/null +++ b/mirva/resources/mirva.js @@ -0,0 +1,82 @@ +let current=-1; +function r(f){/in/.test(document.readyState)?setTimeout('r('+f+')',9):f()} +r(function(){ + create_nav(); + document.onkeydown = keyboard_entry; + document.onwheel = scroll_event; + +}); +function create_nav() { + let navis = document.getElementsByClassName("navigation"); + for (let i = 0; i= 0; +} +function scroll_event(ev) { + let navis = document.getElementsByClassName("navigation"); + for (let i = 0; i