css:wrap_avillepreux

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
css:wrap_avillepreux [2024/07/02 16:51] avillepreuxcss:wrap_avillepreux [2024/12/12 17:40] (Version actuelle) avillepreux
Ligne 23: Ligne 23:
     gap: 0.3em;     gap: 0.3em;
     padding: 0 0.3em;     padding: 0 0.3em;
 +    vertical-align: bottom;
 } }
 .wrap_username:before { .wrap_username:before {
Ligne 51: Ligne 52:
 } }
 span.wrap_username:before { span.wrap_username:before {
-    width: 16px+    width: 18px
-    height: 16px;+    height: 18px;
 } }
  
Ligne 117: Ligne 118:
  
     console.log("Init usernames...");     console.log("Init usernames...");
 +    
 +    function is_valid_username(username) {
 +    
 +    if (jQuery.isNumeric(username)) return false;    
 +    username = username.trim().toLowerCase();
 +    if (jQuery.isNumeric(username)) return false;
 +    if (username.length < 2) return false;
 +
 +    if (jQuery.inArray(username,
 +
 + "must", "must", "should", "could", "wont",
 + "collapsed", "block", "plugin_wrap", "column", "lexicon", "title", "nav", "nav_group", "filters", "toc",
 + "img-grid", "note", "node", "fetch", "1-2", "1-3", "1-4", "2-1", "2-2", "2-3", "2-4"
 +
 + ]) >= 0) return false;
 +
 + return true;
 +    }
          
     jQuery('.plugin_wrap, [class*="wrap_"]:not([class*="plugin_include_"])').each(function() {      jQuery('.plugin_wrap, [class*="wrap_"]:not([class*="plugin_include_"])').each(function() { 
Ligne 126: Ligne 145:
         if (typeof id !== "undefined")         if (typeof id !== "undefined")
  {  {
- if (id.length >= 2 && !jQuery.isNumeric(id)) {+ if (is_valid_username(id)) {
         init_username_wrap(wrap_element, id);         init_username_wrap(wrap_element, id);
         }         }
Ligne 138: Ligne 157:
           var username = className.replace("wrap_", "");           var username = className.replace("wrap_", "");
                      
-          init_username_wrap(wrap_element, username); +          if (is_valid_username(username)) { 
 + 
 +          init_username_wrap(wrap_element, username);  
 +          }
           } );           } );
         }         }
  • css/wrap_avillepreux.1719931888.txt.gz
  • Dernière modification : 2024/07/02 16:51
  • de avillepreux