Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
js:accl_info [2024/08/28 17:15] – créée avillepreux | js:accl_info [2024/08/28 17:30] (Version actuelle) – avillepreux | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | <CSS> | ||
+ | .wrap_aclinfo ul { display: none } | ||
+ | .dokuwiki .plugin_wrap.wrap_aclinfo { display: inline-block; | ||
+ | </ | ||
<JS> | <JS> | ||
- | jQuery(function() { | + | |
+ | jQuery(function() { if (typeof(aclinfo) === ' | ||
console.log(" | console.log(" | ||
var found = false; | var found = false; | ||
jQuery(" | jQuery(" | ||
var info = jQuery(this).text(); | var info = jQuery(this).text(); | ||
+ | console.log(" | ||
var search = " | var search = " | ||
if (info == search) { found = true; return false; } | if (info == search) { found = true; return false; } | ||
Ligne 11: | Ligne 18: | ||
jQuery(" | jQuery(" | ||
if (!found) { jQuery(" | if (!found) { jQuery(" | ||
- | }); | + | |
+ | } }); | ||
</JS> | </JS> |