adds zoom notification

This commit is contained in:
buttle 2021-04-18 12:12:26 +02:00
parent 5380048734
commit dc9790e413
2 changed files with 13 additions and 6 deletions

View File

@ -14,9 +14,8 @@ unzip main.zip
## LISENCE ## LISENCE
The module is released under the [MIT] License. The module is released under the [MIT] License.
[arc-hive]: https://arc-hive.zone/ [arc-hive]: https://arc-hive.zone/
[wheelzoom]: https://github.com/jackmoore/wheelzoom [wheelzoom]: https://github.com/jackmoore/wheelzoom
[Omeka S]: https://omeka.org/s [Omeka S]: https://omeka.org/s
[Archive.org]: https://archive.org [ImageViewer]: https://git.hangar.org/arcHIVE-tech/ImageViewer
[MIT]: http://opensource.org/licenses/MIT [MIT]: http://opensource.org/licenses/MIT

View File

@ -16,14 +16,22 @@
?> ?>
<style> <style>
#<?= $id ?> { .archive-img {
width: <?= $width ?>px; width: <?= $width ?>px;
} }
</style> </style>
<img id="<?= $id ?>" <div class="archive-img">
src="<?= $image ?>" <img id="<?= $id ?>"
/> src="<?= $image ?>"
/>
<?php if ($zoom == true) { ?>
<div
style="font-size: 0.75em; color:white; background-color: gray; padding-left: 1em">
You can zoom this image
</div>
<?php } ?>
</div>
<?php if ($zoom == true) { ?> <?php if ($zoom == true) { ?>
<script> <script>