diff --git a/code/boot.js b/code/boot.js index 7cfd6d23..f14e7015 100644 --- a/code/boot.js +++ b/code/boot.js @@ -237,12 +237,12 @@ window.setupDialogs = function() { function boot() { window.debug.console.overwriteNativeIfRequired(); - console.log('loading done, booting. Built: ' + window.iitcBuildDate); + console.log('loading done, booting. Built: @@BUILDDATE@@'); if(window.deviceID) console.log('Your device ID: ' + window.deviceID); window.runOnSmartphonesBeforeBoot(); // overwrite default Leaflet Marker icon to be a neutral color - var base = 'http://breunigs.github.com/ingress-intel-total-conversion/dist/images/'; + var base = 'https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/dist/images/'; L.Icon.Default.imagePath = base; window.iconEnl = L.Icon.Default.extend({options: { iconUrl: base + 'marker-green.png' } }); diff --git a/dist/images/layers.png b/dist/images/layers.png new file mode 100644 index 00000000..ef90a080 Binary files /dev/null and b/dist/images/layers.png differ diff --git a/external/leaflet.css b/external/leaflet.css index ea3da390..04f229a4 100644 --- a/external/leaflet.css +++ b/external/leaflet.css @@ -285,7 +285,7 @@ border-radius: 8px; } .leaflet-control-layers-toggle { - background-image: url(images/layers.png); + background-image: url(https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/dist/images/layers.png); width: 36px; height: 36px; } diff --git a/images/layers.png b/images/layers.png new file mode 100644 index 00000000..ef90a080 Binary files /dev/null and b/images/layers.png differ diff --git a/plugins/draw-tools.user.js b/plugins/draw-tools.user.js index 88fbd21c..b12e30af 100644 --- a/plugins/draw-tools.user.js +++ b/plugins/draw-tools.user.js @@ -31,10 +31,15 @@ window.plugin.drawTools = function() {}; window.plugin.drawTools.loadExternals = function() { var base = 'https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/external'; //~ var base = 'http://0.0.0.0:8000/dist'; - $('head').append(''); load(base+'/leaflet.draw.0.1.6.js').thenRun(window.plugin.drawTools.boot); // overwrite default Leaflet Marker icon. L.Icon.Default.imagePath = base + '/images'; + + // FIXME: this is currently manually included from + // external/leaflet.draw.0.1.6.css. It should either be loaded remotely + // automatically or the buildscript should include it here, similar to + // how it works for the main script. + $('head').append(''); }