minor cleanups to the #toolbox

- ensure each added item in plugins has a space before
- use   in links so they're not split over lines
- make case consistant between core IITC and plugins
This commit is contained in:
Jon Atkins 2013-04-12 14:55:08 +01:00
parent 278fdfae61
commit 04b5e3e52b
5 changed files with 6 additions and 6 deletions

View File

@ -89,8 +89,8 @@ document.getElementsByTagName('body')[0].innerHTML = ''
+ ' <div id="portaldetails"></div>' + ' <div id="portaldetails"></div>'
+ ' <input id="redeem" placeholder="Redeem code…" type="text"/>' + ' <input id="redeem" placeholder="Redeem code…" type="text"/>'
+ ' <div id="toolbox">' + ' <div id="toolbox">'
+ ' <a onmouseover="setPermaLink(this)" onclick="setPermaLink(this);return androidCopy(this.href)" >permalink</a>' + ' <a onmouseover="setPermaLink(this)" onclick="setPermaLink(this);return androidCopy(this.href)" >Permalink</a>'
+ ' <a onclick="window.aboutIITC()" style="cursor: help">About IITC</a></div>' + ' <a onclick="window.aboutIITC()" style="cursor: help">About&nbsp;IITC</a></div>'
+ ' </div>' + ' </div>'
+ '</div>' + '</div>'
+ '<div id="updatestatus"></div>' + '<div id="updatestatus"></div>'

View File

@ -23,7 +23,7 @@ if(typeof window.plugin !== 'function') window.plugin = function() {};
window.plugin.guessPlayerLevels = function() {}; window.plugin.guessPlayerLevels = function() {};
window.plugin.guessPlayerLevels.setupCallback = function() { window.plugin.guessPlayerLevels.setupCallback = function() {
$('#toolbox').append('<a onclick="window.plugin.guessPlayerLevels.guess()">guess player levels</a> '); $('#toolbox').append(' <a onclick="window.plugin.guessPlayerLevels.guess()">Guess&nbsp;player&nbsp;levels</a>');
addHook('portalAdded', window.plugin.guessPlayerLevels.extractPortalData); addHook('portalAdded', window.plugin.guessPlayerLevels.extractPortalData);
} }

View File

@ -99,7 +99,7 @@ window.plugin.portalcounts.getPortals = function(){
} }
var setup = function() { var setup = function() {
$('#toolbox').append('<a onclick="window.plugin.portalcounts.getPortals()">Portalcounts</a>'); $('#toolbox').append(' <a onclick="window.plugin.portalcounts.getPortals()">Portal&sbsp;counts</a>');
$('head').append('<style>' + $('head').append('<style>' +
'#portalcounts table {margin-top:5px; border-collapse: collapse; empty-cells: show; width:100%; clear: both;}' + '#portalcounts table {margin-top:5px; border-collapse: collapse; empty-cells: show; width:100%; clear: both;}' +
'#portalcounts table td, #portalcounts table th {border-bottom: 1px solid #0b314e; padding:3px; color:white; background-color:#1b415e}' + '#portalcounts table td, #portalcounts table th {border-bottom: 1px solid #0b314e; padding:3px; color:white; background-color:#1b415e}' +

View File

@ -403,7 +403,7 @@ window.plugin.portalslist.getPortalLink = function(portal,guid) {
} }
var setup = function() { var setup = function() {
$('#toolbox').append('<a onclick="window.plugin.portalslist.displayPL(0)">Portals List</a>'); $('#toolbox').append(' <a onclick="window.plugin.portalslist.displayPL(0)">Portals&nbsp;list</a>');
$('head').append('<style>' + $('head').append('<style>' +
'.ui-dialog-portalslist {position: absolute !important; top: 10px !important; left: 30px !important;max-width:800px !important; width:733px !important;}' + '.ui-dialog-portalslist {position: absolute !important; top: 10px !important; left: 30px !important;max-width:800px !important; width:733px !important;}' +
'#portalslist table {margin-top:5px; border-collapse: collapse; empty-cells: show; width:100%; clear: both;}' + '#portalslist table {margin-top:5px; border-collapse: collapse; empty-cells: show; width:100%; clear: both;}' +

View File

@ -389,7 +389,7 @@ window.plugin.scoreboard.fieldArea = function(field) {
} }
var setup = function() { var setup = function() {
$('#toolbox').append('<a onclick="window.plugin.scoreboard.display()">scoreboard</a>'); $('#toolbox').append(' <a onclick="window.plugin.scoreboard.display()">Scoreboard</a>');
$('head').append('<style>' + $('head').append('<style>' +
'.ui-dialog-scoreboard {max-width:600px !important; width:600px !important;}' + '.ui-dialog-scoreboard {max-width:600px !important; width:600px !important;}' +
'#scoreboard table {margin-top:10px; border-collapse: collapse; empty-cells: show; width:100%; clear: both;}' + '#scoreboard table {margin-top:10px; border-collapse: collapse; empty-cells: show; width:100%; clear: both;}' +