fix: remove viewer

This commit is contained in:
Kazhnuz 2023-11-18 10:19:13 +01:00
parent eca794983b
commit f1bcba25bc
2 changed files with 7 additions and 25 deletions

View file

@ -16,13 +16,9 @@
<!-- Dépendances -->
<link href="<?php echo get_template_directory_uri() . "/dep/iconfont/style.css?f43dsf"; ?>" rel="stylesheet"/>
<link href="<?php echo get_template_directory_uri() . "/dep/viewerjs/viewer.min.css"; ?>" rel="stylesheet"/>
<!-- CSS -->
<link href="<?php bloginfo('stylesheet_url'); ?>?f43dsf" rel="stylesheet"/>
<!-- Viewer -->
<script src="<?php echo get_template_directory_uri();?>/dep/viewerjs/viewer.min.js"></script>
</head>
<!-- Début du vrai HTML -->

View file

@ -1,21 +1,7 @@
const viewer = new Viewer(document.getElementById('myarticle'), {
inline: false,
navbar: true,
title: false,
toolbar: {
zoomIn: 4,
zoomOut: 4,
oneToOne: 4,
reset: 4,
prev: 1,
play: {
show: 0,
size: 'large',
},
next: 1,
rotateLeft: 0,
rotateRight: 0,
flipHorizontal: 0,
flipVertical: 0,
},
});
const articleImg = document.querySelectorAll('#myarticle img')
for (let i = 0; i < articleImg.length; i++) {
articleImg[i].addEventListener("click", function () {
window.open(articleImg[i].src, "_blank");
});
}