Difference between revisions of "Widget:Pamela"

From Whitespace (Hackerspace Gent)
Jump to: navigation, search
m
m (make named people show up before ipz)
Line 30: Line 30:
  
 
     for (i = macs.length -1; i >= 0; i--) {
 
     for (i = macs.length -1; i >= 0; i--) {
         if (macs[i].indexOf('(') == -1) {
+
         if (macs[i].indexOf('(') != -1) {
 +
            services.push('<span style="color:darkgray">' + macs[i] + '</span>');
 +
        }
 +
        else if ( macs[i].split( ':' ).length == 8 ) {
 
             people.push(macs[i]);
 
             people.push(macs[i]);
 
         }
 
         }
 
         else {
 
         else {
             services.push('<span style="color:darkgray">' + macs[i] + '</span>');
+
             people.unshift(macs[i]);
 
         }
 
         }
 
     }
 
     }

Revision as of 18:42, 23 December 2010