diff --git a/code/boot.js b/code/boot.js
index 3f90fb63..2e91471d 100644
--- a/code/boot.js
+++ b/code/boot.js
@@ -161,7 +161,7 @@ window.setupPlayerStat = function() {
+ '\n\nNote: your player stats can only be updated by a full reload (F5)';
$('#playerstat').html(''
- + '
';
+ return tooltip;
+ }
+ else {
+ return title.replace(/\n/g, ' ');
+ }
+ }
+ }
+ });
+}
+
// BOOTING ///////////////////////////////////////////////////////////
@@ -204,6 +254,7 @@ function boot() {
window.setupSidebarToggle();
window.updateGameScore();
window.setupPlayerStat();
+ window.setupTooltips();
window.chat.setup();
// read here ONCE, so the URL is only evaluated one time after the
// necessary data has been loaded.
@@ -232,10 +283,11 @@ function asyncLoadScript(a){return function(b,c){var d=document.createElement("s
// contains the default Ingress map style.
var LLGMAPS = 'http://breunigs.github.com/ingress-intel-total-conversion/dist/leaflet_google.js';
var JQUERY = 'https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js';
+var JQUERYUI = 'http://code.jquery.com/ui/1.10.0/jquery-ui.js';
var LEAFLET = 'http://cdn.leafletjs.com/leaflet-0.5/leaflet.js';
var AUTOLINK = 'http://breunigs.github.com/ingress-intel-total-conversion/dist/autolink.js';
// after all scripts have loaded, boot the actual app
-load(JQUERY, LEAFLET, AUTOLINK).then(LLGMAPS).onError(function (err) {
+load(JQUERY, LEAFLET, AUTOLINK).then(LLGMAPS, JQUERYUI).onError(function (err) {
alert('Could not all resources, the script likely won’t work.\n\nIf this happend the first time for you, it’s probably a temporary issue. Just wait a bit and try again.\n\nIf you installed the script for the first time and this happens:\n– try disabling NoScript if you have it installed\n– press CTRL+SHIFT+K in Firefox or CTRL+SHIFT+I in Chrome/Opera and reload the page. Additional info may be available in the console.\n– Open an issue at https://github.com/breunigs/ingress-intel-total-conversion/issues');
}).thenRun(boot);
diff --git a/code/chat.js b/code/chat.js
index 7b091552..61bd1ffd 100644
--- a/code/chat.js
+++ b/code/chat.js
@@ -336,7 +336,7 @@ window.chat.handlePublicAutomated = function(data) {
case 'PORTAL':
var latlng = [part[1].latE6/1E6, part[1].lngE6/1E6];
var js = 'window.zoomToAndShowPortal(\''+part[1].guid+'\', ['+latlng[0]+', '+latlng[1]+'])';
- tmpmsg += ''+part[1].name+'';
+ tmpmsg += ''+part[1].name+'';
break;
}
});
@@ -453,9 +453,9 @@ window.chat.renderMsg = function(msg, nick, time, team) {
var ta = unixTimeToHHmm(time);
var tb = unixTimeToString(time, true);
// help cursor via “#chat time”
- var t = '';
+ var t = '';
var s = 'style="color:'+COLORS[team]+'"';
- var title = nick.length >= 8 ? 'title="'+nick+'" class="help"' : '';
+ var title = nick.length >= 8 ? 'title="'+nick+'" class="help" data-tooltip="title"' : '';
return '
'+t+' <'+nick+'> '+msg+'
';
}
diff --git a/code/debugging.js b/code/debugging.js
index b3f12ecc..7156ddda 100644
--- a/code/debugging.js
+++ b/code/debugging.js
@@ -72,7 +72,7 @@ window.debug.console.renderLine = function(text, errorType) {
var d = new Date();
var ta = d.toLocaleTimeString(); // print line instead maybe?
var tb = d.toLocaleString();
- var t = '';
+ var t = '';
var s = 'style="color:'+color+'"';
var l = '