passcode redemption: enable/disable the passcode entry box based on the stock intel site flag. this way, if Niantic turn it off, IITC will follow automatically
This commit is contained in:
parent
a58238158f
commit
a122dacf70
10
main.js
10
main.js
@ -67,6 +67,14 @@ document.getElementsByTagName('head')[0].innerHTML = ''
|
|||||||
//note: smartphone.css injection moved into code/smartphone.js
|
//note: smartphone.css injection moved into code/smartphone.js
|
||||||
+ '<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Roboto:100,100italic,300,300italic,400,400italic,500,500italic,700,700italic&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic"/>';
|
+ '<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Roboto:100,100italic,300,300italic,400,400italic,500,500italic,700,700italic&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic"/>';
|
||||||
|
|
||||||
|
var enableRedeem = true;
|
||||||
|
try {
|
||||||
|
enableRedeem = nemesis.dashboard.config.ENABLE_PASSCODE_REDEMPTION;
|
||||||
|
} catch(e) {
|
||||||
|
console.warn('failed to check for stock intel nemesis.dashboard.config.ENABLE_PASSCODE_REDEMPTION');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByTagName('body')[0].innerHTML = ''
|
document.getElementsByTagName('body')[0].innerHTML = ''
|
||||||
+ '<div id="map">Loading, please wait</div>'
|
+ '<div id="map">Loading, please wait</div>'
|
||||||
+ '<div id="chatcontrols" style="display:none">'
|
+ '<div id="chatcontrols" style="display:none">'
|
||||||
@ -94,7 +102,7 @@ document.getElementsByTagName('body')[0].innerHTML = ''
|
|||||||
+ ' <img src="@@INCLUDEIMAGE:images/current-location.png@@"/ title="Current Location">'
|
+ ' <img src="@@INCLUDEIMAGE:images/current-location.png@@"/ title="Current Location">'
|
||||||
+ ' </div>'
|
+ ' </div>'
|
||||||
+ ' <div id="portaldetails"></div>'
|
+ ' <div id="portaldetails"></div>'
|
||||||
+ ' <input id="redeem" placeholder="Redeem code…" type="text"/>'
|
+ (enableRedeem?' <input id="redeem" placeholder="Redeem code…" type="text"/>':'')
|
||||||
+ ' <div id="toolbox">'
|
+ ' <div id="toolbox">'
|
||||||
+ ' <a onmouseover="setPermaLink(this)" onclick="setPermaLink(this);return androidPermalink()" title="URL link to this map view">Permalink</a>'
|
+ ' <a onmouseover="setPermaLink(this)" onclick="setPermaLink(this);return androidPermalink()" title="URL link to this map view">Permalink</a>'
|
||||||
+ ' <a onclick="window.aboutIITC()" style="cursor: help">About IITC</a>'
|
+ ' <a onclick="window.aboutIITC()" style="cursor: help">About IITC</a>'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user