From 58514668410cb902dab613221a8e7f963cc36317 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 26 Jul 2026 19:29:53 +0200 Subject: versioning fichiers CSS et JS --- public/js/inversion.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 public/js/inversion.js (limited to 'public/js/inversion.js') diff --git a/public/js/inversion.js b/public/js/inversion.js new file mode 100644 index 0000000..77c3151 --- /dev/null +++ b/public/js/inversion.js @@ -0,0 +1,16 @@ +// public/js/inversion.js + +// inverser la position de deux "articles" ou albums d'une page +function inversion() +{ + var page = ''; + var action = ''; // monter ou descendre + var fileCode = ''; // fileList[$i]['fileCode'] ?> + var position = ''; // fileList[$i]['position'] ?> + + const xhr = new XMLHttpRequest(); + url = 'index.php?page='+page+'&action='+action+'&file_code='+fileCode+'&position='+position+'#'+fileCode; + url = 'index.php?action=restauration&file_name='+fileInfos.name+'&file_size='+fileInfos.size; + xhr.open("GET", url); + xhr.send(); +} \ No newline at end of file -- cgit v1.2.3