From 886e38a69bcc613199ca56064fd51b4285e58326 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Wed, 18 Sep 2013 17:26:46 +0200 Subject: [PATCH 1/3] Examples: Add switch compilation level tool. --- examples/accessible.html | 1 + examples/animation.html | 1 + examples/bind-input.html | 1 + examples/bing-maps.html | 1 + examples/brightness-contrast.html | 1 + examples/canvas-tiles.html | 1 + examples/custom-controls.html | 1 + examples/device-orientation.html | 1 + examples/drag-rotate-and-zoom.html | 1 + examples/epsg-4326.html | 1 + examples/export-map.html | 1 + .../full-screen-drag-rotate-and-zoom.html | 1 + examples/full-screen.html | 1 + examples/geolocation.html | 1 + examples/getfeatureinfo.html | 1 + examples/gml.html | 1 + examples/gpx.html | 1 + examples/hue-saturation.html | 1 + examples/icon.html | 1 + examples/kml-earthquakes.html | 1 + examples/kml-timezones.html | 1 + examples/kml.html | 1 + examples/layer-group.html | 1 + examples/localized-openstreetmap.html | 1 + examples/mapquest.html | 1 + examples/mouse-position.html | 1 + examples/moveend.html | 1 + examples/navigation-controls.html | 1 + examples/overlay.html | 1 + examples/popup.html | 1 + examples/preload.html | 1 + examples/rotation.html | 1 + examples/scale-line.html | 1 + examples/select-features.html | 1 + examples/semi-transparent-layer.html | 1 + examples/side-by-side.html | 1 + examples/simple.html | 1 + examples/stamen.html | 1 + examples/style-rules.html | 1 + examples/teleport.html | 1 + examples/ten-thousand-points.html | 1 + examples/tilejson.html | 1 + examples/topojson.html | 1 + examples/vector-layer.html | 1 + examples/wms-capabilities.html | 1 + examples/wms-custom-proj.html | 1 + examples/wms-image-custom-proj.html | 1 + examples/wms-image.html | 1 + examples/wms-no-proj.html | 1 + examples/wms-tiled.html | 1 + examples/wmts-capabilities.html | 1 + examples/wmts-from-capabilities.html | 1 + examples/wmts-ign.html | 1 + examples/wmts.html | 1 + examples/xyz-esri.html | 1 + examples/xyz-seturl.html | 1 + examples/zoomslider.html | 1 + resources/example-behaviour.js | 61 +++++++++++++++++++ 58 files changed, 118 insertions(+) create mode 100644 resources/example-behaviour.js diff --git a/examples/accessible.html b/examples/accessible.html index 397ddd468f..75a20a0748 100644 --- a/examples/accessible.html +++ b/examples/accessible.html @@ -61,6 +61,7 @@ + diff --git a/examples/animation.html b/examples/animation.html index 9638c88256..d3dd1aee14 100644 --- a/examples/animation.html +++ b/examples/animation.html @@ -64,6 +64,7 @@ + diff --git a/examples/bind-input.html b/examples/bind-input.html index 13242c3503..b024cf5c7b 100644 --- a/examples/bind-input.html +++ b/examples/bind-input.html @@ -89,6 +89,7 @@ + diff --git a/examples/bing-maps.html b/examples/bing-maps.html index d4c95e11f4..b0fe7f44e0 100644 --- a/examples/bing-maps.html +++ b/examples/bing-maps.html @@ -58,6 +58,7 @@ + diff --git a/examples/brightness-contrast.html b/examples/brightness-contrast.html index 0fec55d57b..6110f4e695 100644 --- a/examples/brightness-contrast.html +++ b/examples/brightness-contrast.html @@ -74,6 +74,7 @@ + diff --git a/examples/canvas-tiles.html b/examples/canvas-tiles.html index 6e4e0f1ad9..8dd60feeeb 100644 --- a/examples/canvas-tiles.html +++ b/examples/canvas-tiles.html @@ -52,6 +52,7 @@ + diff --git a/examples/custom-controls.html b/examples/custom-controls.html index 7fef6a8950..5d366addfc 100644 --- a/examples/custom-controls.html +++ b/examples/custom-controls.html @@ -90,6 +90,7 @@ + diff --git a/examples/device-orientation.html b/examples/device-orientation.html index 0dfc54f789..421c1bbd14 100644 --- a/examples/device-orientation.html +++ b/examples/device-orientation.html @@ -58,6 +58,7 @@ + diff --git a/examples/drag-rotate-and-zoom.html b/examples/drag-rotate-and-zoom.html index a59d2c1f5b..5daac6152a 100644 --- a/examples/drag-rotate-and-zoom.html +++ b/examples/drag-rotate-and-zoom.html @@ -52,6 +52,7 @@ + diff --git a/examples/epsg-4326.html b/examples/epsg-4326.html index 294ef3126f..9d7b181a31 100644 --- a/examples/epsg-4326.html +++ b/examples/epsg-4326.html @@ -51,6 +51,7 @@ + diff --git a/examples/export-map.html b/examples/export-map.html index 67817501df..85e1e4fd03 100644 --- a/examples/export-map.html +++ b/examples/export-map.html @@ -57,6 +57,7 @@ + diff --git a/examples/full-screen-drag-rotate-and-zoom.html b/examples/full-screen-drag-rotate-and-zoom.html index 95c3b73b0e..e7972cab20 100644 --- a/examples/full-screen-drag-rotate-and-zoom.html +++ b/examples/full-screen-drag-rotate-and-zoom.html @@ -64,6 +64,7 @@ + diff --git a/examples/full-screen.html b/examples/full-screen.html index b7c39e0643..3b0216154a 100644 --- a/examples/full-screen.html +++ b/examples/full-screen.html @@ -64,6 +64,7 @@ + diff --git a/examples/geolocation.html b/examples/geolocation.html index 66bc806fa2..fda20481b3 100644 --- a/examples/geolocation.html +++ b/examples/geolocation.html @@ -72,6 +72,7 @@ + diff --git a/examples/getfeatureinfo.html b/examples/getfeatureinfo.html index d7a0095198..caf4afbb33 100644 --- a/examples/getfeatureinfo.html +++ b/examples/getfeatureinfo.html @@ -56,6 +56,7 @@ + diff --git a/examples/gml.html b/examples/gml.html index 6c86e515dd..e5c7eda4b5 100644 --- a/examples/gml.html +++ b/examples/gml.html @@ -51,6 +51,7 @@ + diff --git a/examples/gpx.html b/examples/gpx.html index c60431ad20..2c281cf549 100644 --- a/examples/gpx.html +++ b/examples/gpx.html @@ -55,6 +55,7 @@ + diff --git a/examples/hue-saturation.html b/examples/hue-saturation.html index c63319b891..465179101e 100644 --- a/examples/hue-saturation.html +++ b/examples/hue-saturation.html @@ -74,6 +74,7 @@ + diff --git a/examples/icon.html b/examples/icon.html index 35c8f343b7..b12a879977 100644 --- a/examples/icon.html +++ b/examples/icon.html @@ -63,6 +63,7 @@ + diff --git a/examples/kml-earthquakes.html b/examples/kml-earthquakes.html index e483bbc261..edd05f1826 100644 --- a/examples/kml-earthquakes.html +++ b/examples/kml-earthquakes.html @@ -76,6 +76,7 @@ + diff --git a/examples/kml-timezones.html b/examples/kml-timezones.html index cc05264a3d..7bb11939e3 100644 --- a/examples/kml-timezones.html +++ b/examples/kml-timezones.html @@ -64,6 +64,7 @@ + diff --git a/examples/kml.html b/examples/kml.html index c47a6617a4..5b2dd5c56a 100644 --- a/examples/kml.html +++ b/examples/kml.html @@ -56,6 +56,7 @@ + diff --git a/examples/layer-group.html b/examples/layer-group.html index 747d0b4c44..a48de5e1d0 100644 --- a/examples/layer-group.html +++ b/examples/layer-group.html @@ -126,6 +126,7 @@ + diff --git a/examples/localized-openstreetmap.html b/examples/localized-openstreetmap.html index 16503e4a51..6e237bd5e2 100644 --- a/examples/localized-openstreetmap.html +++ b/examples/localized-openstreetmap.html @@ -51,6 +51,7 @@ + diff --git a/examples/mapquest.html b/examples/mapquest.html index 07a512c639..c295141a1b 100644 --- a/examples/mapquest.html +++ b/examples/mapquest.html @@ -51,6 +51,7 @@ + diff --git a/examples/mouse-position.html b/examples/mouse-position.html index e67b197dbc..4490397b11 100644 --- a/examples/mouse-position.html +++ b/examples/mouse-position.html @@ -59,6 +59,7 @@ + diff --git a/examples/moveend.html b/examples/moveend.html index f156d75e37..6cc74de2fb 100644 --- a/examples/moveend.html +++ b/examples/moveend.html @@ -54,6 +54,7 @@ + diff --git a/examples/navigation-controls.html b/examples/navigation-controls.html index cbd51e9c9a..4c2198e5f9 100644 --- a/examples/navigation-controls.html +++ b/examples/navigation-controls.html @@ -56,6 +56,7 @@ + diff --git a/examples/overlay.html b/examples/overlay.html index c7bf0c623b..d0f595971f 100644 --- a/examples/overlay.html +++ b/examples/overlay.html @@ -74,6 +74,7 @@ + diff --git a/examples/popup.html b/examples/popup.html index 3f1724235e..0e06dac833 100644 --- a/examples/popup.html +++ b/examples/popup.html @@ -106,6 +106,7 @@ + diff --git a/examples/preload.html b/examples/preload.html index 3942da9473..b528ad662c 100644 --- a/examples/preload.html +++ b/examples/preload.html @@ -55,6 +55,7 @@ + diff --git a/examples/rotation.html b/examples/rotation.html index c6c4433633..b7429a3146 100644 --- a/examples/rotation.html +++ b/examples/rotation.html @@ -52,6 +52,7 @@ + diff --git a/examples/scale-line.html b/examples/scale-line.html index 3c3ce31fea..db415efae6 100644 --- a/examples/scale-line.html +++ b/examples/scale-line.html @@ -56,6 +56,7 @@ + diff --git a/examples/select-features.html b/examples/select-features.html index 2ff31fb9dd..04a2077d01 100644 --- a/examples/select-features.html +++ b/examples/select-features.html @@ -51,6 +51,7 @@ + diff --git a/examples/semi-transparent-layer.html b/examples/semi-transparent-layer.html index 768fc925f1..4fa31228f9 100644 --- a/examples/semi-transparent-layer.html +++ b/examples/semi-transparent-layer.html @@ -51,6 +51,7 @@ + diff --git a/examples/side-by-side.html b/examples/side-by-side.html index e3ed360755..eb5506b522 100644 --- a/examples/side-by-side.html +++ b/examples/side-by-side.html @@ -63,6 +63,7 @@ + diff --git a/examples/simple.html b/examples/simple.html index 5051fd53b7..7f689e2d5b 100644 --- a/examples/simple.html +++ b/examples/simple.html @@ -51,6 +51,7 @@ + diff --git a/examples/stamen.html b/examples/stamen.html index 363a757cd6..2e19532888 100644 --- a/examples/stamen.html +++ b/examples/stamen.html @@ -51,6 +51,7 @@ + diff --git a/examples/style-rules.html b/examples/style-rules.html index 46d8de3356..6b71d8a6c7 100644 --- a/examples/style-rules.html +++ b/examples/style-rules.html @@ -51,6 +51,7 @@ + diff --git a/examples/teleport.html b/examples/teleport.html index 52b3e06fd3..e55f11f898 100644 --- a/examples/teleport.html +++ b/examples/teleport.html @@ -61,6 +61,7 @@ + diff --git a/examples/ten-thousand-points.html b/examples/ten-thousand-points.html index 923bddcb19..e0292efd82 100644 --- a/examples/ten-thousand-points.html +++ b/examples/ten-thousand-points.html @@ -55,6 +55,7 @@ + diff --git a/examples/tilejson.html b/examples/tilejson.html index 33e9287b2e..18e55fa929 100644 --- a/examples/tilejson.html +++ b/examples/tilejson.html @@ -51,6 +51,7 @@ + diff --git a/examples/topojson.html b/examples/topojson.html index 1ed1b1d991..7ad0d18a48 100644 --- a/examples/topojson.html +++ b/examples/topojson.html @@ -51,6 +51,7 @@ + diff --git a/examples/vector-layer.html b/examples/vector-layer.html index b55269e38d..0e7b8bd6eb 100644 --- a/examples/vector-layer.html +++ b/examples/vector-layer.html @@ -56,6 +56,7 @@ + diff --git a/examples/wms-capabilities.html b/examples/wms-capabilities.html index 8ebd509b00..ac25600b91 100644 --- a/examples/wms-capabilities.html +++ b/examples/wms-capabilities.html @@ -49,6 +49,7 @@ + diff --git a/examples/wms-custom-proj.html b/examples/wms-custom-proj.html index 9f086e5a4a..1f09a49685 100644 --- a/examples/wms-custom-proj.html +++ b/examples/wms-custom-proj.html @@ -53,6 +53,7 @@ + diff --git a/examples/wms-image-custom-proj.html b/examples/wms-image-custom-proj.html index 78c1b82e4f..a2c8be5332 100644 --- a/examples/wms-image-custom-proj.html +++ b/examples/wms-image-custom-proj.html @@ -54,6 +54,7 @@ + diff --git a/examples/wms-image.html b/examples/wms-image.html index 25d5702159..8f17938dd3 100644 --- a/examples/wms-image.html +++ b/examples/wms-image.html @@ -51,6 +51,7 @@ + diff --git a/examples/wms-no-proj.html b/examples/wms-no-proj.html index 075a8660f7..4ef5b701db 100644 --- a/examples/wms-no-proj.html +++ b/examples/wms-no-proj.html @@ -51,6 +51,7 @@ + diff --git a/examples/wms-tiled.html b/examples/wms-tiled.html index 06b634293e..c678a9c4c1 100644 --- a/examples/wms-tiled.html +++ b/examples/wms-tiled.html @@ -51,6 +51,7 @@ + diff --git a/examples/wmts-capabilities.html b/examples/wmts-capabilities.html index 4f5ddbd88c..105fdadac1 100644 --- a/examples/wmts-capabilities.html +++ b/examples/wmts-capabilities.html @@ -50,6 +50,7 @@ + diff --git a/examples/wmts-from-capabilities.html b/examples/wmts-from-capabilities.html index 2ebed2f9d3..631d54b4bf 100644 --- a/examples/wmts-from-capabilities.html +++ b/examples/wmts-from-capabilities.html @@ -52,6 +52,7 @@ + diff --git a/examples/wmts-ign.html b/examples/wmts-ign.html index eb90ce6c02..f1675bfded 100644 --- a/examples/wmts-ign.html +++ b/examples/wmts-ign.html @@ -60,6 +60,7 @@ + diff --git a/examples/wmts.html b/examples/wmts.html index 2018fc75cf..7be643e75c 100644 --- a/examples/wmts.html +++ b/examples/wmts.html @@ -51,6 +51,7 @@ + diff --git a/examples/xyz-esri.html b/examples/xyz-esri.html index 5d59d7b0aa..7ec6a23ce4 100644 --- a/examples/xyz-esri.html +++ b/examples/xyz-esri.html @@ -51,6 +51,7 @@ + diff --git a/examples/xyz-seturl.html b/examples/xyz-seturl.html index 2adb6c1310..b87ef81771 100644 --- a/examples/xyz-seturl.html +++ b/examples/xyz-seturl.html @@ -57,6 +57,7 @@ + diff --git a/examples/zoomslider.html b/examples/zoomslider.html index 701fd6bf09..069684e15c 100644 --- a/examples/zoomslider.html +++ b/examples/zoomslider.html @@ -115,6 +115,7 @@ + diff --git a/resources/example-behaviour.js b/resources/example-behaviour.js new file mode 100644 index 0000000000..4922b8bbf5 --- /dev/null +++ b/resources/example-behaviour.js @@ -0,0 +1,61 @@ +;(function(){ + var container = document.querySelector('.navbar ul.pull-right'), + li = document.createElement('li'), + div = document.createElement('div'), + select = document.createElement('select'), + possibleModes = { + 'raw' : 'Development', + 'compiled': 'Production' + }, + urlMode = window.location.href.match(/mode=([a-z0-9\-]+)\&?/i), + curMode = urlMode ? urlMode[1] : 'compiled', + option, + modeIdx, + mode, + modeTxt, + modeChangedMethod; + + modeChangedMethod = function() { + var newMode = this.value, + search = window.location.search.substring(1), + baseUrl = window.location.href.split('?')[0], + chunks = search ? search.split('&') : [], + pairs = [], + i, + pair, + adjusted; + for (i = chunks.length - 1; i >= 0; --i) { + pair = chunks[i].split('='); + if (pair[0].toLowerCase() === 'mode') { + pair[1] = newMode; + } + adjusted = encodeURIComponent(pair[0]); + if (typeof pair[1] !== undefined) { + adjusted += '=' + encodeURIComponent(pair[1] || ''); + } + pairs.push(adjusted); + } + location.href = baseUrl + '?' + pairs.join('&'); + }; + + for (mode in possibleModes) { + if ( possibleModes.hasOwnProperty(mode) ) { + option = document.createElement('option'); + modeTxt = possibleModes[mode]; + option.value = mode; + option.innerHTML = modeTxt; + option.selected = curMode === mode; + select.appendChild(option); + } + } + + select.addEventListener('change', modeChangedMethod); + select.className = 'input-medium'; + + div.className = 'input-prepend'; + div.innerHTML = ''; + div.appendChild(select); + + li.appendChild(div); + container.appendChild(li); +})(); \ No newline at end of file From 6d40b170d602d8933b636a53f0fc0a05c0884300 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Wed, 18 Sep 2013 17:39:52 +0200 Subject: [PATCH 2/3] Examples: Remove social links. --- examples/accessible.html | 5 ----- examples/animation.html | 5 ----- examples/bind-input.html | 5 ----- examples/bing-maps.html | 5 ----- examples/brightness-contrast.html | 5 ----- examples/canvas-tiles.html | 5 ----- examples/custom-controls.html | 5 ----- examples/device-orientation.html | 5 ----- examples/drag-rotate-and-zoom.html | 5 ----- examples/epsg-4326.html | 5 ----- examples/export-map.html | 5 ----- examples/full-screen-drag-rotate-and-zoom.html | 5 ----- examples/full-screen.html | 5 ----- examples/geolocation.html | 5 ----- examples/getfeatureinfo.html | 5 ----- examples/gml.html | 5 ----- examples/gpx.html | 5 ----- examples/hue-saturation.html | 5 ----- examples/icon.html | 5 ----- examples/kml-earthquakes.html | 5 ----- examples/kml-timezones.html | 5 ----- examples/kml.html | 5 ----- examples/layer-group.html | 5 ----- examples/localized-openstreetmap.html | 5 ----- examples/mapquest.html | 5 ----- examples/mouse-position.html | 5 ----- examples/moveend.html | 5 ----- examples/navigation-controls.html | 5 ----- examples/overlay.html | 5 ----- examples/popup.html | 5 ----- examples/preload.html | 5 ----- examples/rotation.html | 5 ----- examples/scale-line.html | 5 ----- examples/select-features.html | 5 ----- examples/semi-transparent-layer.html | 5 ----- examples/side-by-side.html | 5 ----- examples/simple.html | 5 ----- examples/stamen.html | 5 ----- examples/style-rules.html | 5 ----- examples/teleport.html | 5 ----- examples/ten-thousand-points.html | 5 ----- examples/tilejson.html | 5 ----- examples/topojson.html | 5 ----- examples/vector-layer.html | 5 ----- examples/wms-capabilities.html | 5 ----- examples/wms-custom-proj.html | 5 ----- examples/wms-image-custom-proj.html | 5 ----- examples/wms-image.html | 5 ----- examples/wms-no-proj.html | 5 ----- examples/wms-tiled.html | 5 ----- examples/wmts-capabilities.html | 5 ----- examples/wmts-from-capabilities.html | 5 ----- examples/wmts-ign.html | 5 ----- examples/wmts.html | 5 ----- examples/xyz-esri.html | 5 ----- examples/xyz-seturl.html | 5 ----- examples/zoomslider.html | 5 ----- 57 files changed, 285 deletions(-) diff --git a/examples/accessible.html b/examples/accessible.html index 75a20a0748..bc2a23504f 100644 --- a/examples/accessible.html +++ b/examples/accessible.html @@ -22,10 +22,6 @@ @@ -60,7 +56,6 @@ - diff --git a/examples/animation.html b/examples/animation.html index d3dd1aee14..e10e899935 100644 --- a/examples/animation.html +++ b/examples/animation.html @@ -17,10 +17,6 @@ @@ -63,7 +59,6 @@ - diff --git a/examples/bind-input.html b/examples/bind-input.html index b024cf5c7b..dbeff5126d 100644 --- a/examples/bind-input.html +++ b/examples/bind-input.html @@ -17,10 +17,6 @@ @@ -88,7 +84,6 @@ - diff --git a/examples/bing-maps.html b/examples/bing-maps.html index b0fe7f44e0..89fe93c46f 100644 --- a/examples/bing-maps.html +++ b/examples/bing-maps.html @@ -17,10 +17,6 @@ @@ -57,7 +53,6 @@ - diff --git a/examples/brightness-contrast.html b/examples/brightness-contrast.html index 6110f4e695..87cd26bf7f 100644 --- a/examples/brightness-contrast.html +++ b/examples/brightness-contrast.html @@ -25,10 +25,6 @@ @@ -73,7 +69,6 @@ - diff --git a/examples/canvas-tiles.html b/examples/canvas-tiles.html index 8dd60feeeb..778737cce5 100644 --- a/examples/canvas-tiles.html +++ b/examples/canvas-tiles.html @@ -17,10 +17,6 @@ @@ -51,7 +47,6 @@ - diff --git a/examples/custom-controls.html b/examples/custom-controls.html index 5d366addfc..b4a692b3f9 100644 --- a/examples/custom-controls.html +++ b/examples/custom-controls.html @@ -53,10 +53,6 @@ @@ -89,7 +85,6 @@ - diff --git a/examples/device-orientation.html b/examples/device-orientation.html index 421c1bbd14..7587536100 100644 --- a/examples/device-orientation.html +++ b/examples/device-orientation.html @@ -17,10 +17,6 @@ @@ -57,7 +53,6 @@ - diff --git a/examples/drag-rotate-and-zoom.html b/examples/drag-rotate-and-zoom.html index 5daac6152a..2a6b59e5d2 100644 --- a/examples/drag-rotate-and-zoom.html +++ b/examples/drag-rotate-and-zoom.html @@ -17,10 +17,6 @@ @@ -51,7 +47,6 @@ - diff --git a/examples/epsg-4326.html b/examples/epsg-4326.html index 9d7b181a31..dcf5051e2e 100644 --- a/examples/epsg-4326.html +++ b/examples/epsg-4326.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/export-map.html b/examples/export-map.html index 85e1e4fd03..587c236862 100644 --- a/examples/export-map.html +++ b/examples/export-map.html @@ -17,10 +17,6 @@ @@ -56,7 +52,6 @@ - diff --git a/examples/full-screen-drag-rotate-and-zoom.html b/examples/full-screen-drag-rotate-and-zoom.html index e7972cab20..e8620521bf 100644 --- a/examples/full-screen-drag-rotate-and-zoom.html +++ b/examples/full-screen-drag-rotate-and-zoom.html @@ -28,10 +28,6 @@ @@ -63,7 +59,6 @@ - diff --git a/examples/full-screen.html b/examples/full-screen.html index 3b0216154a..0f36b569e2 100644 --- a/examples/full-screen.html +++ b/examples/full-screen.html @@ -28,10 +28,6 @@ @@ -63,7 +59,6 @@ - diff --git a/examples/geolocation.html b/examples/geolocation.html index fda20481b3..5bcb480225 100644 --- a/examples/geolocation.html +++ b/examples/geolocation.html @@ -26,10 +26,6 @@ @@ -71,7 +67,6 @@ - diff --git a/examples/getfeatureinfo.html b/examples/getfeatureinfo.html index caf4afbb33..092551f73e 100644 --- a/examples/getfeatureinfo.html +++ b/examples/getfeatureinfo.html @@ -17,10 +17,6 @@ @@ -55,7 +51,6 @@ - diff --git a/examples/gml.html b/examples/gml.html index e5c7eda4b5..21c6225323 100644 --- a/examples/gml.html +++ b/examples/gml.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/gpx.html b/examples/gpx.html index 2c281cf549..e5b47c32f7 100644 --- a/examples/gpx.html +++ b/examples/gpx.html @@ -17,10 +17,6 @@ @@ -54,7 +50,6 @@ - diff --git a/examples/hue-saturation.html b/examples/hue-saturation.html index 465179101e..aa56f33911 100644 --- a/examples/hue-saturation.html +++ b/examples/hue-saturation.html @@ -25,10 +25,6 @@ @@ -73,7 +69,6 @@ - diff --git a/examples/icon.html b/examples/icon.html index b12a879977..d28c21fd54 100644 --- a/examples/icon.html +++ b/examples/icon.html @@ -25,10 +25,6 @@ @@ -62,7 +58,6 @@ - diff --git a/examples/kml-earthquakes.html b/examples/kml-earthquakes.html index edd05f1826..917216c65a 100644 --- a/examples/kml-earthquakes.html +++ b/examples/kml-earthquakes.html @@ -38,10 +38,6 @@ @@ -75,7 +71,6 @@ - diff --git a/examples/kml-timezones.html b/examples/kml-timezones.html index 7bb11939e3..55895b62e8 100644 --- a/examples/kml-timezones.html +++ b/examples/kml-timezones.html @@ -28,10 +28,6 @@ @@ -63,7 +59,6 @@ - diff --git a/examples/kml.html b/examples/kml.html index 5b2dd5c56a..db1cbc0955 100644 --- a/examples/kml.html +++ b/examples/kml.html @@ -17,10 +17,6 @@ @@ -55,7 +51,6 @@ - diff --git a/examples/layer-group.html b/examples/layer-group.html index a48de5e1d0..ead2482819 100644 --- a/examples/layer-group.html +++ b/examples/layer-group.html @@ -21,10 +21,6 @@ @@ -125,7 +121,6 @@ - diff --git a/examples/localized-openstreetmap.html b/examples/localized-openstreetmap.html index 6e237bd5e2..3b45f0882d 100644 --- a/examples/localized-openstreetmap.html +++ b/examples/localized-openstreetmap.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/mapquest.html b/examples/mapquest.html index c295141a1b..acdcc2a9a6 100644 --- a/examples/mapquest.html +++ b/examples/mapquest.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/mouse-position.html b/examples/mouse-position.html index 4490397b11..b79ca8984d 100644 --- a/examples/mouse-position.html +++ b/examples/mouse-position.html @@ -17,10 +17,6 @@ @@ -58,7 +54,6 @@ - diff --git a/examples/moveend.html b/examples/moveend.html index 6cc74de2fb..0aec5863e6 100644 --- a/examples/moveend.html +++ b/examples/moveend.html @@ -17,10 +17,6 @@ @@ -53,7 +49,6 @@ - diff --git a/examples/navigation-controls.html b/examples/navigation-controls.html index 4c2198e5f9..d43d69b65c 100644 --- a/examples/navigation-controls.html +++ b/examples/navigation-controls.html @@ -17,10 +17,6 @@ @@ -55,7 +51,6 @@ - diff --git a/examples/overlay.html b/examples/overlay.html index d0f595971f..df37c2b678 100644 --- a/examples/overlay.html +++ b/examples/overlay.html @@ -29,10 +29,6 @@ @@ -73,7 +69,6 @@ - diff --git a/examples/popup.html b/examples/popup.html index 0e06dac833..beb12de38c 100644 --- a/examples/popup.html +++ b/examples/popup.html @@ -62,10 +62,6 @@ @@ -105,7 +101,6 @@ - diff --git a/examples/preload.html b/examples/preload.html index b528ad662c..d9dc6c3865 100644 --- a/examples/preload.html +++ b/examples/preload.html @@ -17,10 +17,6 @@ @@ -54,7 +50,6 @@ - diff --git a/examples/rotation.html b/examples/rotation.html index b7429a3146..b5f101d0ad 100644 --- a/examples/rotation.html +++ b/examples/rotation.html @@ -17,10 +17,6 @@ @@ -51,7 +47,6 @@ - diff --git a/examples/scale-line.html b/examples/scale-line.html index db415efae6..6a2ac62b81 100644 --- a/examples/scale-line.html +++ b/examples/scale-line.html @@ -17,10 +17,6 @@ @@ -55,7 +51,6 @@ - diff --git a/examples/select-features.html b/examples/select-features.html index 04a2077d01..59e3dee7eb 100644 --- a/examples/select-features.html +++ b/examples/select-features.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/semi-transparent-layer.html b/examples/semi-transparent-layer.html index 4fa31228f9..072b946ef8 100644 --- a/examples/semi-transparent-layer.html +++ b/examples/semi-transparent-layer.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/side-by-side.html b/examples/side-by-side.html index eb5506b522..a43873e70a 100644 --- a/examples/side-by-side.html +++ b/examples/side-by-side.html @@ -17,10 +17,6 @@ @@ -62,7 +58,6 @@ - diff --git a/examples/simple.html b/examples/simple.html index 7f689e2d5b..5ef77daed0 100644 --- a/examples/simple.html +++ b/examples/simple.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/stamen.html b/examples/stamen.html index 2e19532888..d1781b575e 100644 --- a/examples/stamen.html +++ b/examples/stamen.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/style-rules.html b/examples/style-rules.html index 6b71d8a6c7..743e55b45b 100644 --- a/examples/style-rules.html +++ b/examples/style-rules.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/teleport.html b/examples/teleport.html index e55f11f898..1d60785214 100644 --- a/examples/teleport.html +++ b/examples/teleport.html @@ -17,10 +17,6 @@ @@ -60,7 +56,6 @@ - diff --git a/examples/ten-thousand-points.html b/examples/ten-thousand-points.html index e0292efd82..588be7b022 100644 --- a/examples/ten-thousand-points.html +++ b/examples/ten-thousand-points.html @@ -17,10 +17,6 @@ @@ -54,7 +50,6 @@ - diff --git a/examples/tilejson.html b/examples/tilejson.html index 18e55fa929..70405ebeb0 100644 --- a/examples/tilejson.html +++ b/examples/tilejson.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/topojson.html b/examples/topojson.html index 7ad0d18a48..f9b79e18f0 100644 --- a/examples/topojson.html +++ b/examples/topojson.html @@ -16,10 +16,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/vector-layer.html b/examples/vector-layer.html index 0e7b8bd6eb..d6de2cf0a3 100644 --- a/examples/vector-layer.html +++ b/examples/vector-layer.html @@ -17,10 +17,6 @@ @@ -55,7 +51,6 @@ - diff --git a/examples/wms-capabilities.html b/examples/wms-capabilities.html index ac25600b91..01ef7e17e4 100644 --- a/examples/wms-capabilities.html +++ b/examples/wms-capabilities.html @@ -17,10 +17,6 @@ @@ -48,7 +44,6 @@ - diff --git a/examples/wms-custom-proj.html b/examples/wms-custom-proj.html index 1f09a49685..eb76160029 100644 --- a/examples/wms-custom-proj.html +++ b/examples/wms-custom-proj.html @@ -17,10 +17,6 @@ @@ -52,7 +48,6 @@ - diff --git a/examples/wms-image-custom-proj.html b/examples/wms-image-custom-proj.html index a2c8be5332..e7d921bf37 100644 --- a/examples/wms-image-custom-proj.html +++ b/examples/wms-image-custom-proj.html @@ -17,10 +17,6 @@ @@ -53,7 +49,6 @@ - diff --git a/examples/wms-image.html b/examples/wms-image.html index 8f17938dd3..63cc50c88f 100644 --- a/examples/wms-image.html +++ b/examples/wms-image.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/wms-no-proj.html b/examples/wms-no-proj.html index 4ef5b701db..93434c1678 100644 --- a/examples/wms-no-proj.html +++ b/examples/wms-no-proj.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/wms-tiled.html b/examples/wms-tiled.html index c678a9c4c1..49e92f5656 100644 --- a/examples/wms-tiled.html +++ b/examples/wms-tiled.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/wmts-capabilities.html b/examples/wmts-capabilities.html index 105fdadac1..271d05e50d 100644 --- a/examples/wmts-capabilities.html +++ b/examples/wmts-capabilities.html @@ -17,10 +17,6 @@ @@ -49,7 +45,6 @@ - diff --git a/examples/wmts-from-capabilities.html b/examples/wmts-from-capabilities.html index 631d54b4bf..81f746edb9 100644 --- a/examples/wmts-from-capabilities.html +++ b/examples/wmts-from-capabilities.html @@ -17,10 +17,6 @@ @@ -51,7 +47,6 @@ - diff --git a/examples/wmts-ign.html b/examples/wmts-ign.html index f1675bfded..5683be1d63 100644 --- a/examples/wmts-ign.html +++ b/examples/wmts-ign.html @@ -22,10 +22,6 @@ @@ -59,7 +55,6 @@ - diff --git a/examples/wmts.html b/examples/wmts.html index 7be643e75c..db722f45d5 100644 --- a/examples/wmts.html +++ b/examples/wmts.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/xyz-esri.html b/examples/xyz-esri.html index 7ec6a23ce4..59d95e2fbe 100644 --- a/examples/xyz-esri.html +++ b/examples/xyz-esri.html @@ -17,10 +17,6 @@ @@ -50,7 +46,6 @@ - diff --git a/examples/xyz-seturl.html b/examples/xyz-seturl.html index b87ef81771..1b09fd9618 100644 --- a/examples/xyz-seturl.html +++ b/examples/xyz-seturl.html @@ -17,10 +17,6 @@ @@ -56,7 +52,6 @@ - diff --git a/examples/zoomslider.html b/examples/zoomslider.html index 069684e15c..e74cd49392 100644 --- a/examples/zoomslider.html +++ b/examples/zoomslider.html @@ -69,10 +69,6 @@ @@ -114,7 +110,6 @@ - From 9e0b560cf6ce8205432037a3a745307f99a6152e Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Thu, 19 Sep 2013 15:05:31 +0200 Subject: [PATCH 3/3] Remove now obsolete file social-link.js. --- resources/social-links.js | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 resources/social-links.js diff --git a/resources/social-links.js b/resources/social-links.js deleted file mode 100644 index 80c6809399..0000000000 --- a/resources/social-links.js +++ /dev/null @@ -1,26 +0,0 @@ -if (window.location.search == '') { - - // add tweet buttons - // (adapated from https://twitter.com/about/resources/buttons) - (function() { - var self = document.getElementsByTagName('script')[0]; - var script = document.createElement('script'); - script.type = 'text/javascript'; - script.async = true; - script.src = '//platform.twitter.com/widgets.js'; - self.parentNode.insertBefore(script, self); - })(); - - - // add g+1 buttons - // (adapted from https://developers.google.com/+/web/+1button) - (function() { - var self = document.getElementsByTagName('script')[0]; - var script = document.createElement('script'); - script.type = 'text/javascript'; - script.async = true; - script.src = 'https://apis.google.com/js/plusone.js'; - self.parentNode.insertBefore(script, self); - })(); - -}