Browse Source

En mode non-accessible, rendez les images non "draggable" (supprimer effet de ghosting sur images)

master v1.16.0
ARNO* 7 months ago
parent
commit
905dd2e853
  1. 6
      html5_responsive.php
  2. 2
      paquet.xml

6
html5_responsive.php

@ -37,9 +37,13 @@ function html5_responsive_insert_head_css($flux) {
// Bloquer zoom, bloquer slide "back"
$flux .= "<style>
html {touch-action:none;}
html, body {overscroll-behavior-x: none;}
html, body {overscroll-behavior-x: none;}
</style>
<script>
document.addEventListener('DOMContentLoaded', function(){
var allImages = document.getElementsByTagName('img');
for (element of allImages) { element.draggable = false; }
}, false);
window.addEventListener('contextmenu', function (e) { e.preventDefault(); }, false);
</script>";
}

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="html5_responsive"
categorie="outil"
version="1.15.1"
version="1.16.0"
etat="stable"
compatibilite="[3.0.0;4.1.*]"
logo="html5_responsive-64.png"

Loading…
Cancel
Save