commit
f3bf30a99b
@ -20,7 +20,8 @@ window.artifact.setup = function() {
|
||||
|
||||
addResumeFunction(artifact.idleResume);
|
||||
|
||||
artifact.requestData();
|
||||
// move the initial data request onto a very short timer. prevents thrown exceptions causing IITC boot failures
|
||||
setTimeout (artifact.requestData, 1);
|
||||
|
||||
artifact._layer = new L.LayerGroup();
|
||||
addLayerGroup ('Artifacts (Jarvis shards)', artifact._layer, true);
|
||||
|
@ -106,7 +106,7 @@ window.chat.genPostData = function(isFaction, storageHash, getOlderMsgs) {
|
||||
// Currently this edge case is not handled. Let’s see if this is a
|
||||
// problem in crowded areas.
|
||||
$.extend(data, {minTimestampMs: min});
|
||||
// when requesting with an acutal minimum timestamp, request oldest rather than newest first.
|
||||
// when requesting with an actual minimum timestamp, request oldest rather than newest first.
|
||||
// this matches the stock intel site, and ensures no gaps when continuing after an extended idle period
|
||||
if (min > -1) $.extend(data, {ascendingTimestampOrder: true});
|
||||
}
|
||||
|
@ -6,7 +6,8 @@ window.updateGameScoreFailCount = 0;
|
||||
|
||||
window.updateGameScore = function(data) {
|
||||
if(!data) {
|
||||
window.postAjax('getGameScore', {}, window.updateGameScore);
|
||||
// move the postAjax call onto a very short timer. this way, if it throws an exception, it won't prevent IITC booting
|
||||
setTimeout (function() { window.postAjax('getGameScore', {}, window.updateGameScore); }, 1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -66,18 +66,19 @@ window.runHooks = function(event, data) {
|
||||
if(VALID_HOOKS.indexOf(event) === -1) throw('Unknown event type: ' + event);
|
||||
|
||||
if(!_hooks[event]) return true;
|
||||
var interupted = false;
|
||||
var interrupted = false;
|
||||
$.each(_hooks[event], function(ind, callback) {
|
||||
try {
|
||||
if (callback(data) === false) {
|
||||
interupted = true;
|
||||
interrupted = true;
|
||||
return false; //break from $.each
|
||||
}
|
||||
} catch(err) {
|
||||
console.error('error running hook '+event+', error: '+err);
|
||||
debugger;
|
||||
}
|
||||
});
|
||||
return !interupted;
|
||||
return !interrupted;
|
||||
}
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
window.renderPortalDetails = function(guid) {
|
||||
selectPortal(window.portals[guid] ? guid : null);
|
||||
|
||||
if (!portalDetail.isFresh(guid)) {
|
||||
if (guid && !portalDetail.isFresh(guid)) {
|
||||
portalDetail.request(guid);
|
||||
}
|
||||
|
||||
@ -178,7 +178,7 @@ window.getPortalMiscDetails = function(guid,d) {
|
||||
: null;
|
||||
var sinceText = time ? ['since', time] : null;
|
||||
|
||||
var linkedFields = ['fields', d.portalV2.linkedFields ? d.portalV2.linkedFields.length : 0];
|
||||
var linkedFields = ['fields', getPortalFields(guid).length];
|
||||
|
||||
// collect and html-ify random data
|
||||
var randDetailsData = [];
|
||||
|
@ -123,6 +123,9 @@ window.getAttackApGain = function(d) {
|
||||
});
|
||||
|
||||
var linkCount = d.portalV2.linkedEdges ? d.portalV2.linkedEdges.length : 0;
|
||||
|
||||
//FIXME: portalV2.linkedFields was never a piece of data from the server - it was something faked in IITC
|
||||
//with the portal guid, window.getPortalFields will return the count of linked fields - but no guid passed into here
|
||||
var fieldCount = d.portalV2.linkedFields ? d.portalV2.linkedFields.length : 0;
|
||||
|
||||
var resoAp = resoCount * DESTROY_RESONATOR;
|
||||
|
9
main.js
9
main.js
@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @id ingress-intel-total-conversion@jonatkins
|
||||
// @name IITC: Ingress intel map total conversion
|
||||
// @version 0.16.0.@@DATETIMEVERSION@@
|
||||
// @version 0.16.1.@@DATETIMEVERSION@@
|
||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||
// @updateURL @@UPDATEURL@@
|
||||
// @downloadURL @@DOWNLOADURL@@
|
||||
@ -39,8 +39,11 @@ if(!d) {
|
||||
// page doesn’t have a script tag with player information.
|
||||
if(document.getElementById('header_email')) {
|
||||
// however, we are logged in.
|
||||
setTimeout('location.reload();', 3*1000);
|
||||
throw("Page doesn't have player data, but you are logged in. Reloading in 3s.");
|
||||
// it used to be regularly common to get temporary 'account not enabled' messages from the intel site.
|
||||
// however, this is no longer common. more common is users getting account suspended/banned - and this
|
||||
// currently shows the 'not enabled' message. so it's safer to not repeatedly reload in this case
|
||||
// setTimeout('location.reload();', 3*1000);
|
||||
throw("Page doesn't have player data, but you are logged in.");
|
||||
}
|
||||
// FIXME: handle nia takedown in progress
|
||||
throw("Couldn't retrieve player data. Are you logged in?");
|
||||
|
@ -198,14 +198,14 @@ body {
|
||||
.linkdetails aside {
|
||||
padding: 5px;
|
||||
margin-top: 3px;
|
||||
margin-botton: 3px;
|
||||
margin-bottom: 3px;
|
||||
border: 2px outset #0e3d4e;
|
||||
}
|
||||
|
||||
#toolbox > a {
|
||||
padding: 5px;
|
||||
margin-top: 3px;
|
||||
margin-botton: 3px;
|
||||
margin-bottom: 3px;
|
||||
border: 2px outset #0e3d4e;
|
||||
}
|
||||
|
||||
|
@ -11,3 +11,17 @@ table tr.category_header {
|
||||
table .description {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.icon-chevron-desktop,
|
||||
.icon-chevron-mobile {
|
||||
background-image: url("../img/glyphicons-devices.png");
|
||||
background-position: 0 0;
|
||||
}
|
||||
.nav-list > .active > a > .icon-chevron-desktop,
|
||||
.nav-list > .active > a > .icon-chevron-mobile
|
||||
{
|
||||
background-image: url("../img/glyphicons-devices-white.png");
|
||||
}
|
||||
.icon-chevron-mobile {
|
||||
background-position: 0 -14px;
|
||||
}
|
||||
|
BIN
website/assets/img/glyphicons-devices-white.png
Normal file
BIN
website/assets/img/glyphicons-devices-white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 848 B |
BIN
website/assets/img/glyphicons-devices.png
Normal file
BIN
website/assets/img/glyphicons-devices.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 238 B |
@ -102,8 +102,8 @@ $pages = Array (
|
||||
'home' => '<i class="icon-home"></i> Home',
|
||||
'news' => '<i class="icon-list"></i> News',
|
||||
'faq' => '<i class="icon-question-sign"></i> FAQ',
|
||||
'desktop' => '<i class="icon-chevron-right"></i> Desktop',
|
||||
'mobile' => '<i class="icon-chevron-right"></i> Mobile',
|
||||
'desktop' => '<i class="icon-chevron-desktop"></i> Desktop',
|
||||
'mobile' => '<i class="icon-chevron-mobile"></i> Mobile',
|
||||
'test' => '<i class="icon-wrench"></i> Test Builds',
|
||||
'developer' => '<i class="icon-cog"></i> Developers',
|
||||
'about' => '<i class="icon-info-sign"></i> About',
|
||||
|
@ -2,23 +2,6 @@
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<h4 id="mobile-login">Login on mobile doesn't work!</h4>
|
||||
<p>
|
||||
Many users are seeing the error message <b>Error: Server Error</b> when attempting to log in on mobile.
|
||||
To get past this and log in successfully, you can try to
|
||||
<ol>
|
||||
<li>Exit IITC and try again. Some people have success after a number of tries, <i>or</i></li>
|
||||
<li>Cancel when asked to choose an account, and manually enter your email address and password into the web page</li>
|
||||
</ol>
|
||||
</p>
|
||||
<p>
|
||||
As far as we can tell this isn't an IITC Mobile issue - using the Chrome browser on android, which also supports
|
||||
Google login, can give similar issues. Further discussion on this is happening in
|
||||
<a href="https://github.com/jonatkins/ingress-intel-total-conversion/issues/497">github issue #497</a>.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<h4 id="not-activated">I get a message saying my account isn't activated</h4>
|
||||
<p>
|
||||
|
@ -24,12 +24,11 @@ install from the link below.
|
||||
<h3>Known issues</h3>
|
||||
|
||||
<p>
|
||||
IITC Mobile is still in the early stages of development. Many things do not yet work right. Major known issues are:
|
||||
IITC Mobile has some known problems, major issues are:
|
||||
<ol>
|
||||
<li>Some users get <b>Error: Server Error</b> when logging in. See the FAQ for possible workarounds.</li>
|
||||
<li>Some plugins do not work well, or at all, at this time.</li>
|
||||
<li>Serious issues exist on Android 4.0 devices.
|
||||
<a href="https://github.com/jonatkins/ingress-intel-total-conversion/issues/90">details</a>.</li>
|
||||
<li>Some plugins do not work well, or at all.</li>
|
||||
<li>Pinch zoom hangs on some devices.
|
||||
<a href="https://github.com/jonatkins/ingress-intel-total-conversion/issues/257">details</a>.</li>
|
||||
</ol>
|
||||
</p>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user