préparation code pour 19/02, essai js pour base de données

This commit is contained in:
2022-02-18 09:28:59 +01:00
parent 55e008e03b
commit d76bb506dc
7 changed files with 62 additions and 5 deletions
+26
View File
@@ -132,6 +132,32 @@ jQuery(function($) {
});
/////////////////////////////////////////
// masquer bouton proposer une ressource pour collection 50 ans
// jQuery(function($) {
// var path = window.location.href; // because the 'href' property of the DOM element is the absolute path
// console.log(path);
// $ (function bouton() {
// if (path.indexOf("/ressources/bdd/29") > -1) {
// (".block-block-content82917d0c-5004-4bfb-af66-ce334782d82d").addClass('.notdisplaid');
// }
// });
// });
// jQuery(function($) {
// var path = window.location.href; // because the 'href' property of the DOM element is the absolute path
// console.log(path);
// $(".block-block-content82917d0c-5004-4bfb-af66-ce334782d82d").each(function() {
// if (this.href === path) {
// $(this).parent().closest('.field--name-field-lien').addClass('notdisplaid');
// }
// });
// });
// /////////////////