Merge branch 'master' of github.com:jonatkins/ingress-intel-total-conversion
This commit is contained in:
2
build.py
2
build.py
@@ -53,7 +53,7 @@ settings = buildSettings[buildName]
|
||||
utcTime = time.gmtime()
|
||||
buildDate = time.strftime('%Y-%m-%d-%H%M%S',utcTime)
|
||||
# userscripts have specific specifications for version numbers - the above date format doesn't match
|
||||
dateTimeVersion = time.strftime('%Y%m%d.%H%M%S',utcTime)
|
||||
dateTimeVersion = time.strftime('%Y%m%d.',utcTime) + time.strftime('%H%M%S',utcTime).lstrip('0')
|
||||
|
||||
# extract required values from the settings entry
|
||||
resourceUrlBase = settings.get('resourceUrlBase')
|
||||
|
@@ -259,10 +259,10 @@ window.setMapBaseLayer = function() {
|
||||
|
||||
|
||||
//event to track layer changes and store the name
|
||||
map.on('baselayerchange', function() {
|
||||
map.on('baselayerchange', function(info) {
|
||||
for(i in window.layerChooser._layers) {
|
||||
var obj = window.layerChooser._layers[i];
|
||||
if (!obj.overlay && map.hasLayer(obj.layer)) {
|
||||
if (info.layer === obj.layer) {
|
||||
localStorage['iitc-base-map'] = obj.name;
|
||||
break;
|
||||
}
|
||||
|
@@ -136,7 +136,6 @@ window.runOnSmartphonesAfterBoot = function() {
|
||||
}
|
||||
}
|
||||
window.layerChooser.showLayer = function(id,show) {
|
||||
window.console.log('yeay' + id + show);
|
||||
if (show === undefined) show = true;
|
||||
obj = this._layers[id];
|
||||
if (!obj) return false;
|
||||
@@ -146,7 +145,7 @@ window.runOnSmartphonesAfterBoot = function() {
|
||||
//the layer to show is not currently active
|
||||
this._map.addLayer(obj.layer);
|
||||
|
||||
//if it's an overlay, remove any others
|
||||
//if it's a base layer, remove any others
|
||||
if (!obj.overlay) {
|
||||
for(i in this._layers) {
|
||||
if (i != id) {
|
||||
@@ -161,6 +160,7 @@ window.runOnSmartphonesAfterBoot = function() {
|
||||
this._map.removeLayer(obj.layer);
|
||||
}
|
||||
}
|
||||
|
||||
//below logic based on code in L.Control.Layers _onInputClick
|
||||
if(!obj.overlay) {
|
||||
this._map.setZoom(this._map.getZoom());
|
||||
|
1
main.js
1
main.js
@@ -10,6 +10,7 @@
|
||||
// @include https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -9,6 +9,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
/*********************************************************************************************************
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
/* whatsnew
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
/* whatsnew
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
/*
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @id iitc-plugin-sync@xelio
|
||||
// @name IITC plugin: Sync
|
||||
// @version 0.2.0.@@DATETIMEVERSION@@
|
||||
// @version 0.2.1.@@DATETIMEVERSION@@
|
||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||
// @updateURL @@UPDATEURL@@
|
||||
// @downloadURL @@DOWNLOADURL@@
|
||||
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
@@ -383,7 +384,7 @@ window.plugin.sync.FileSearcher.prototype.instances = {};
|
||||
window.plugin.sync.FileSearcher.prototype.RETRY_LIMIT = 2;
|
||||
window.plugin.sync.FileSearcher.prototype.MIMETYPE_FILE = 'application/vnd.google-apps.drive-sdk';
|
||||
window.plugin.sync.FileSearcher.prototype.MIMETYPE_FOLDER = 'application/vnd.google-apps.folder';
|
||||
window.plugin.sync.FileSearcher.prototype.parentName = 'IITC-SYNC-DATA';
|
||||
window.plugin.sync.FileSearcher.prototype.parentName = 'IITC-SYNC-DATA-V2';
|
||||
window.plugin.sync.FileSearcher.prototype.parentDescription = 'Store IITC sync data';
|
||||
|
||||
window.plugin.sync.FileSearcher.prototype.initialize = function(force) {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
// @include http://www.ingress.com/intel*
|
||||
// @match https://www.ingress.com/intel*
|
||||
// @match http://www.ingress.com/intel*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
function wrapper() {
|
||||
|
21
style.css
21
style.css
@@ -101,6 +101,27 @@ a:hover {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
|
||||
/* base layer selection - first column */
|
||||
.leaflet-control-layers-base {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* overlays layer selection - 2nd column */
|
||||
.leaflet-control-layers-overlays {
|
||||
float: left;
|
||||
margin-left: 8px;
|
||||
border-left: 1px solid #DDDDDD;
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
/* hide the usual seperator */
|
||||
.leaflet-control-layers-separator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.help {
|
||||
cursor: help;
|
||||
}
|
||||
|
Reference in New Issue
Block a user