* **index_l** - int - 0 - init, left image - is the index of the images array, starting from 0
| `showtoggle` | bool | false | - | show/hide button - switch between left and right image
* **index_r** - int - 1 - init, right image - is the index of the images array, starting from 0
| `index_l` | int | 0 | - | init, left image - is the index of the images array, starting from 0
* **zoom** - float - 0 - init, zoom, 0 - fit to view window, 1.0 - 100%
| `index_r` | int | 1 | - | init, right image - is the index of the images array, starting from 0
* **center_x** - int - 0 - init, x coordinate of the original image to be placed in the center of the view window
| `zoom` | float | 0 | - | init, zoom, 0 - fit to view window, 1.0 - 100%
* **center_y** - int - 0 - init, y coordinate of the original image to be placed in the center of the view window
| `center_x` | int | 0 | - | init, x coordinate of the original image to be placed in the center of the view window
| `center_y` | int | 0 | - | init, y coordinate of the original image to be placed in the center of the view window
== Installation ==
== Installation ==
...
@@ -61,13 +62,9 @@ Sravnitel is a WordPress plugin by Elphel Inc. based on a jQuery plugin *jquery.
...
@@ -61,13 +62,9 @@ Sravnitel is a WordPress plugin by Elphel Inc. based on a jQuery plugin *jquery.
== Frequently Asked Questions ==
== Frequently Asked Questions ==
= A question that someone might have =
An answer to that question.
= How is it implemented? =
= How is it implemented? =
Same as Twenty20 plugin - stacks two selected images on top of each other. As the slider moves the compared images are displayed on the opposite sides of the divider.
Same as Twenty20 plugin - stacks two selected images so they are displayed as if one is lying on top of another. As the slider moves the compared images are displayed on the opposite sides of the divider.
Image titles are taken from description or title (if description is empty) of the attached image.
Image titles are taken from description or title (if description is empty) of the attached image.
...
@@ -78,29 +75,27 @@ It's an integer number. Insert an image into a post and look for "wp-image-NN".
...
@@ -78,29 +75,27 @@ It's an integer number. Insert an image into a post and look for "wp-image-NN".