Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
js:accl_info [2024/08/28 17:24] – avillepreux | js:accl_info [2024/08/28 17:30] (Version actuelle) – avillepreux | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
<CSS> | <CSS> | ||
.wrap_aclinfo ul { display: none } | .wrap_aclinfo ul { display: none } | ||
- | .dokuwiki .plugin_wrap.wrap_aclinfo { display: inline-block } | + | .dokuwiki .plugin_wrap.wrap_aclinfo { display: inline-block; float: right; |
</ | </ | ||
<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 15: | Ligne 18: | ||
jQuery(" | jQuery(" | ||
if (!found) { jQuery(" | if (!found) { jQuery(" | ||
- | }); | + | |
+ | } }); | ||
</JS> | </JS> |