MediaWiki:Common.js: Difference between revisions

Rebrand: hero logo no longer recolored (BigBro wordmark already correct)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 316: Line 316:


/* ================================================ */
/* ================================================ */
/* ADMIN CONTROL PANEL - AlphaX Wiki               */
/* ADMIN CONTROL PANEL - BigBro Know               */
/* ================================================ */
/* ================================================ */
(function() {
(function() {
Line 439: Line 439:
       h+='<div class="axcp-hdr">';
       h+='<div class="axcp-hdr">';
       h+='<div class="axcp-ttl">&#9881; Admin Control Panel</div>';
       h+='<div class="axcp-ttl">&#9881; Admin Control Panel</div>';
       h+='<div class="axcp-sub">AlphaX Wiki &bull; Article Database &bull; Live Data</div>';
       h+='<div class="axcp-sub">BigBro Know &bull; Article Database &bull; Live Data</div>';
       h+='<div class="axcp-sr">';
       h+='<div class="axcp-sr">';
       h+='<div class="axcp-sc"><div class="axcp-sv">'+fd.length+'</div><div class="axcp-sl">Articles</div></div>';
       h+='<div class="axcp-sc"><div class="axcp-sv">'+fd.length+'</div><div class="axcp-sl">Articles</div></div>';
Line 478: Line 478:
         var bp=mxW>0?Math.round(((r.words||0)/mxW)*60):0;
         var bp=mxW>0?Math.round(((r.words||0)/mxW)*60):0;
         h+='<tr>';
         h+='<tr>';
         h+='<td><a class="axcp-al" href="/wiki/'+encodeURIComponent((r.title||'').replace(/ /g,'_'))+'" target="_blank">'+esc(r.title)+'</a></td>';
         h+='<td><a class="axcp-al" href="/'+encodeURIComponent((r.title||'').replace(/ /g,'_'))+'" target="_blank">'+esc(r.title)+'</a></td>';
         h+='<td>'+(r.cat?'<span class="axcp-cp" style="'+catSty(r.cat)+'">'+esc(r.cat)+'</span>':'<span class="axcp-z">-</span>')+'</td>';
         h+='<td>'+(r.cat?'<span class="axcp-cp" style="'+catSty(r.cat)+'">'+esc(r.cat)+'</span>':'<span class="axcp-z">-</span>')+'</td>';
         h+='<td style="color:#555;font-size:12px">'+esc(r.subcat||'-')+'</td>';
         h+='<td style="color:#555;font-size:12px">'+esc(r.subcat||'-')+'</td>';
Line 1,283: Line 1,283:
     setTimeout(boot, 100);
     setTimeout(boot, 100);
   }
   }
})();
// Override favicon with BigBro favicon (BigBro mark icon)
(function() {
  var faviconUrl = '/images/8/80/BigBro_mark.png';
  var existingFavicons = document.querySelectorAll('link[rel*="icon"]');
  existingFavicons.forEach(function(el) { el.parentNode.removeChild(el); });
  var link = document.createElement('link');
  link.rel = 'icon';
  link.type = 'image/png';
  link.href = faviconUrl;
  document.head.appendChild(link);
})();
})();