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
The module is released under the [MIT] License.
[arc-hive]: https://arc-hive.zone/
[wheelzoom]: https://github.com/jackmoore/wheelzoom
[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

View File

@ -16,14 +16,22 @@
?>
<style>
#<?= $id ?> {
.archive-img {
width: <?= $width ?>px;
}
</style>
<img id="<?= $id ?>"
src="<?= $image ?>"
/>
<div class="archive-img">
<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) { ?>
<script>