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 --> <!-- 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/iconfont/style.css?f43dsf"; ?>" rel="stylesheet"/>
<link href="<?php echo get_template_directory_uri() . "/dep/viewerjs/viewer.min.css"; ?>" rel="stylesheet"/>
<!-- CSS --> <!-- CSS -->
<link href="<?php bloginfo('stylesheet_url'); ?>?f43dsf" rel="stylesheet"/> <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> </head>
<!-- Début du vrai HTML --> <!-- Début du vrai HTML -->

View file

@ -1,21 +1,7 @@
const viewer = new Viewer(document.getElementById('myarticle'), { const articleImg = document.querySelectorAll('#myarticle img')
inline: false,
navbar: true, for (let i = 0; i < articleImg.length; i++) {
title: false, articleImg[i].addEventListener("click", function () {
toolbar: { window.open(articleImg[i].src, "_blank");
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,
},
});