Compare commits
21
Commits
2decf93012
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c43521eea | ||
|
|
7e2ea42f52 | ||
|
|
bd01b7cba4 | ||
|
|
6d62279199 | ||
|
|
94d6e63b0f | ||
|
|
4e97e09466 | ||
|
|
a2713522c9 | ||
|
|
a1e044c082 | ||
|
|
4c7a1c6916 | ||
|
|
5d38db389d | ||
|
|
9333db3d29 | ||
|
|
2d287ea304 | ||
|
|
a7d16e5b8a | ||
|
|
08047bcff8 | ||
|
|
34f1bd4877 | ||
|
|
d718875d03 | ||
|
|
8b4df0c04d | ||
|
|
60461263db | ||
|
|
42588db791 | ||
|
|
73099a24e8 | ||
|
|
757607f29b |
No files matched your search
@@ -38,6 +38,12 @@ Network Trash Folder
|
|||||||
Temporary Items
|
Temporary Items
|
||||||
.apdisk
|
.apdisk
|
||||||
|
|
||||||
|
## Vagrant
|
||||||
|
.vagrant/
|
||||||
|
|
||||||
|
# Log files (if you are creating logs in debug mode, uncomment this)
|
||||||
|
# *.log
|
||||||
|
|
||||||
## Project Files
|
## Project Files
|
||||||
wsgi/.idea
|
wsgi/.idea
|
||||||
www/dlsv
|
www/dlsv
|
||||||
@@ -47,3 +53,4 @@ www/data/events.xml
|
|||||||
www/data/geolocation.js
|
www/data/geolocation.js
|
||||||
scripts/*.json
|
scripts/*.json
|
||||||
scripts/*.xml
|
scripts/*.xml
|
||||||
|
|
||||||
Vendored
+16
@@ -0,0 +1,16 @@
|
|||||||
|
Vagrant.configure("2") do |config|
|
||||||
|
config.vm.box = "ubuntu/jammy64"
|
||||||
|
config.vm.synced_folder ".", "/vagrant"
|
||||||
|
config.vm.network(:forwarded_port, guest: 80, host: 8888)
|
||||||
|
|
||||||
|
config.vm.provision :shell, inline: <<-SHELL
|
||||||
|
sudo apt-get -y update
|
||||||
|
sudo apt-get -y install nginx
|
||||||
|
|
||||||
|
echo "Starting nginx..."
|
||||||
|
sudo ln -s /vagrant/www /var/www/html/map
|
||||||
|
sudo cp /vagrant/www/index.html.en /vagrant/www/index.html
|
||||||
|
sudo useradd -s /bin/false nginx
|
||||||
|
sudo service nginx restart
|
||||||
|
SHELL
|
||||||
|
end
|
||||||
@@ -52,7 +52,7 @@ def mkGeolocationTable(file=''):
|
|||||||
from geopy.exc import GeocoderServiceError
|
from geopy.exc import GeocoderServiceError
|
||||||
|
|
||||||
## constants
|
## constants
|
||||||
URL = 'https://photon.komoot.io/reverse?lon={lng:.3f}&lat={lat:.3f}&limit=5'
|
URL = 'https://photon.komoot.io/reverse?lon={lng:.3f}&lat={lat:.3f}&limit=10'
|
||||||
NAMESPACES = {'sc3': 'http://geofon.gfz-potsdam.de/ns/seiscomp3-schema/0.7',
|
NAMESPACES = {'sc3': 'http://geofon.gfz-potsdam.de/ns/seiscomp3-schema/0.7',
|
||||||
'qml': 'http://quakeml.org/xmlns/bed/1.2'}
|
'qml': 'http://quakeml.org/xmlns/bed/1.2'}
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ def mkGeolocationTable(file=''):
|
|||||||
# parse event.xml
|
# parse event.xml
|
||||||
DOM = ET.parse(stdin).getroot()
|
DOM = ET.parse(stdin).getroot()
|
||||||
geolocator = Photon()
|
geolocator = Photon()
|
||||||
reverse_geolocate = RateLimiter(geolocator.reverse, min_delay_seconds=1)
|
reverse_geolocate = RateLimiter(geolocator.reverse, min_delay_seconds=2)
|
||||||
|
|
||||||
# iterate over all events
|
# iterate over all events
|
||||||
count = 0
|
count = 0
|
||||||
@@ -88,7 +88,7 @@ def mkGeolocationTable(file=''):
|
|||||||
else:
|
else:
|
||||||
logging.info('Processing event {id}'.format(id=publicID))
|
logging.info('Processing event {id}'.format(id=publicID))
|
||||||
try:
|
try:
|
||||||
locations = reverse_geolocate("{lat:.3f}, {lng:.3f}".format(lat=lat, lng=lng),exactly_one=False,limit=5)
|
locations = reverse_geolocate("{lat:.3f}, {lng:.3f}".format(lat=lat, lng=lng),exactly_one=False,limit=10)
|
||||||
except GeocoderServiceError:
|
except GeocoderServiceError:
|
||||||
logging.warning('Reverse Geolocation failed. Skipping event.')
|
logging.warning('Reverse Geolocation failed. Skipping event.')
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# version: VVVVV
|
# version: VVVVV
|
||||||
|
function fail {
|
||||||
|
printf '%s\n' "$1" >&2 ## Send message to stderr.
|
||||||
|
exit "${2-1}" ## Return a code specified by $2, or 1 by default.
|
||||||
|
}
|
||||||
|
|
||||||
if [ $# -le 1 ] ; then
|
if [ $# -le 1 ] ; then
|
||||||
echo usage: ${0} version_string files ...
|
echo usage: ${0} version_string files ...
|
||||||
@@ -10,7 +14,7 @@ shift
|
|||||||
files="$*"
|
files="$*"
|
||||||
|
|
||||||
echo ${version} ${files}
|
echo ${version} ${files}
|
||||||
which sponge > /dev/null || ( echo "sponge util must be installed" ; exit 0 )
|
which sponge > /dev/null || fail "sponge util must be installed"
|
||||||
|
|
||||||
for file in ${files}; do
|
for file in ${files}; do
|
||||||
sed "s/V\{5\}/${version}"/ ${file} | sponge ${file}
|
sed "s/V\{5\}/${version}"/ ${file} | sponge ${file}
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
Allow from all
|
|
||||||
Header always set Access-Control-Allow-Origin "https://fdsnws.geophysik.ruhr-uni-bochum.de"
|
|
||||||
Header always append Access-Control-Allow-Origin "https://photon.komoot.de"
|
|
||||||
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
|
|
||||||
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
|
|
||||||
Header always set Access-Control-Expose-Headers "Content-Security-Policy, Location"
|
|
||||||
Header always set Access-Control-Max-Age "600"
|
|
||||||
@@ -1,41 +1,12 @@
|
|||||||
/* last change 2021-10-30 */
|
/* last change 2022-20-23 */
|
||||||
var specialEvents = [
|
var specialEvents = [
|
||||||
//'bug2014ytlk', // Vechta 3.0
|
|
||||||
//'bug2014wjwx', // Haltern 3.6
|
|
||||||
//'bug2014ldts', // Darmstadt
|
|
||||||
//'bug2014kowj', // Vogtland 5.0
|
|
||||||
//'bug2014jptq', // Seeheim-Jugenheim
|
|
||||||
//'bug2014infb', // Troisdorf
|
|
||||||
//'bug2014ilxd', // Bassum
|
|
||||||
//'bug2014gfzw', // Darmstadt
|
|
||||||
//'bug2014datb', // Groningen
|
|
||||||
// 'bug2013yvko', // Haltern 3.4
|
|
||||||
// 'bug2015fdpy', // Darmstadt 3.0
|
|
||||||
// 'bug2016ajgm', // CTBT violation North Korea
|
// 'bug2016ajgm', // CTBT violation North Korea
|
||||||
// 'bug2016cqkd', // Taunusstein 2.5
|
|
||||||
// 'bug2016hdae', // Aldenhoven 2.6
|
|
||||||
// 'bug2016hdaj', // Aldenhoven 2.4
|
|
||||||
// 'bug2016kkrq', // Bottrop 3.3
|
|
||||||
// 'bug2016qphy', // Central Italy 6.1
|
// 'bug2016qphy', // Central Italy 6.1
|
||||||
// 'bug2016rslt', // CTBT violation North Korea
|
// 'bug2016rslt', // CTBT violation North Korea
|
||||||
// 'bug2016ueqo', // Darmstadt 2.4
|
|
||||||
// 'bug2016ufpi', // Darmstadt 3.0
|
|
||||||
// 'bug2016vico', // Central Italy 6.5
|
// 'bug2016vico', // Central Italy 6.5
|
||||||
// 'bug2016vrnc', // Nörvenich 3.2
|
|
||||||
// 'bug2016zawb', // St Goar 3.2
|
|
||||||
// 'bug2017iyhl', // Hürtgenwald 2.1
|
|
||||||
// 'bug2017omwg', // Brühl 2.3
|
|
||||||
// 'bug2017rfxe', // CTBT violation North Korea 6.1
|
// 'bug2017rfxe', // CTBT violation North Korea 6.1
|
||||||
// 'bug2017rjvq', // Dreieich / Hessen 2.6
|
|
||||||
// 'bug2017vxmm', // Brühl / Hürth 3.1
|
|
||||||
// 'bug2018nyax' // Ochtendung 2.7
|
|
||||||
// 'bug2019cxga', // Ochtendung 3.0
|
|
||||||
// 'bug2019czbt', // Ochtendung 2.9
|
|
||||||
// 'bug2019fura', // Sprengung Duisburg-Hochheide (Weißer Riese) 2.0
|
// 'bug2019fura', // Sprengung Duisburg-Hochheide (Weißer Riese) 2.0
|
||||||
// 'bug2019yeij', // Tektonisch, Hambach 2.2
|
// 'bug2021vtgi', // Geilenkirchen 1.9
|
||||||
'bug2020fqxf', // Meckenheim, 2.5
|
// 'bug2022ahxi', // Erftstadt 2.9
|
||||||
'bug2020skmt', // Heinsberg 1.7
|
'bug2023hlmh' // Brüggen 3.3
|
||||||
'bug2020skon', // Heinsberg 2.5
|
|
||||||
'bug2020stdp', // Niederkassel 2.4
|
|
||||||
'bug2021ryaa' // Thedinghausen 3.2
|
|
||||||
];
|
];
|
||||||
+1
-1
@@ -47,7 +47,7 @@ function getGeolocation(id, lat, lng) {
|
|||||||
var city = json.features[0].properties.city;
|
var city = json.features[0].properties.city;
|
||||||
var countryCode = json.features[0].properties.country;
|
var countryCode = json.features[0].properties.country;
|
||||||
geolocationTable[id] = city;
|
geolocationTable[id] = city;
|
||||||
( countryCode != "Germany" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null;
|
( countryCode != "Germany" && countryCode != "Deutschland" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null;
|
||||||
if ( city ) {
|
if ( city ) {
|
||||||
$("#eventstable a.toggle[eventid="+id+"]").text(geolocationTable[id]);
|
$("#eventstable a.toggle[eventid="+id+"]").text(geolocationTable[id]);
|
||||||
var sort = [[0,1],[1,1],[2,1]];
|
var sort = [[0,1],[1,1],[2,1]];
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ function getGeolocation(id, lat, lng) {
|
|||||||
var city = json.features[0].properties.city;
|
var city = json.features[0].properties.city;
|
||||||
var countryCode = json.features[0].properties.country;
|
var countryCode = json.features[0].properties.country;
|
||||||
geolocationTable[id] = city;
|
geolocationTable[id] = city;
|
||||||
( countryCode != "Germany" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null;
|
( countryCode != "Germany" && countryCode != "Deutschland" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null;
|
||||||
if ( city ) {
|
if ( city ) {
|
||||||
$("#eventstable a.toggle[eventid="+id+"]").text(geolocationTable[id]);
|
$("#eventstable a.toggle[eventid="+id+"]").text(geolocationTable[id]);
|
||||||
var sort = [[0,1],[1,1],[2,1]];
|
var sort = [[0,1],[1,1],[2,1]];
|
||||||
|
|||||||
Vendored
-2
@@ -1,2 +0,0 @@
|
|||||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e():"function"==typeof define&&define.amd?define(e):e()}(0,function(){"use strict";function t(t,e){return e={exports:{}},t(e,e.exports),e.exports}var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=t(function(t){!function(e){function n(t,e){function n(t){return e.bgcolor&&(t.style.backgroundColor=e.bgcolor),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach(function(n){t.style[n]=e.style[n]}),t}return e=e||{},s(e),Promise.resolve(t).then(function(t){return u(t,e.filter,!0)}).then(c).then(d).then(n).then(function(n){return g(n,e.width||h.width(t),e.height||h.height(t))})}function i(t,e){return l(t,e||{}).then(function(e){return e.getContext("2d").getImageData(0,0,h.width(t),h.height(t)).data})}function o(t,e){return l(t,e||{}).then(function(t){return t.toDataURL()})}function r(t,e){return e=e||{},l(t,e).then(function(t){return t.toDataURL("image/jpeg",e.quality||1)})}function a(t,e){return l(t,e||{}).then(h.canvasToBlob)}function s(t){void 0===t.imagePlaceholder?w.impl.options.imagePlaceholder=M.imagePlaceholder:w.impl.options.imagePlaceholder=t.imagePlaceholder,void 0===t.cacheBust?w.impl.options.cacheBust=M.cacheBust:w.impl.options.cacheBust=t.cacheBust}function l(t,e){function i(t){var n=document.createElement("canvas");if(n.width=e.width||h.width(t),n.height=e.height||h.height(t),e.bgcolor){var i=n.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,n.width,n.height)}return n}return n(t,e).then(h.makeImage).then(h.delay(100)).then(function(e){var n=i(t);return n.getContext("2d").drawImage(e,0,0),n})}function u(t,e,n){function i(t){return t instanceof HTMLCanvasElement?h.makeImage(t.toDataURL()):t.cloneNode(!1)}function o(t,e,n){var i=t.childNodes;return 0===i.length?Promise.resolve(e):function(t,e,n){var i=Promise.resolve();return e.forEach(function(e){i=i.then(function(){return u(e,n)}).then(function(e){e&&t.appendChild(e)})}),i}(e,h.asArray(i),n).then(function(){return e})}function r(t,e){function n(){!function(t,e){t.cssText?e.cssText=t.cssText:function(t,e){h.asArray(t).forEach(function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))})}(t,e)}(window.getComputedStyle(t),e.style)}function i(){function n(n){var i=window.getComputedStyle(t,n),o=i.getPropertyValue("content");if(""!==o&&"none"!==o){var r=h.uid();e.className=e.className+" "+r;var a=document.createElement("style");a.appendChild(function(t,e,n){var i="."+t+":"+e,o=n.cssText?function(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}(n):function(t){function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}return h.asArray(t).map(e).join("; ")+";"}(n);return document.createTextNode(i+"{"+o+"}")}(r,n,i)),e.appendChild(a)}}[":before",":after"].forEach(function(t){n(t)})}function o(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function r(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach(function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)}))}return e instanceof Element?Promise.resolve().then(n).then(i).then(o).then(r).then(function(){return e}):e}return n||!e||e(t)?Promise.resolve(t).then(i).then(function(n){return o(t,n,e)}).then(function(e){return r(t,e)}):Promise.resolve()}function c(t){return p.resolveAll().then(function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t})}function d(t){return f.inlineAll(t).then(function(){return t})}function g(t,e,n){return Promise.resolve(t).then(function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)}).then(h.escapeXhtml).then(function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"}).then(function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+n+'">'+t+"</svg>"}).then(function(t){return"data:image/svg+xml;charset=utf-8,"+t})}var h=function(){function t(){var t="application/font-woff",e="image/jpeg";return{woff:t,woff2:t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:e,jpeg:e,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function e(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function n(n){var i=e(n).toLowerCase();return t()[i]||""}function i(t){return-1!==t.search(/^(data:)/)}function o(t){return new Promise(function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),i=n.length,o=new Uint8Array(i),r=0;r<i;r++)o[r]=n.charCodeAt(r);e(new Blob([o],{type:"image/png"}))})}function r(t){return t.toBlob?new Promise(function(e){t.toBlob(e)}):o(t)}function a(t,e){var n=document.implementation.createHTMLDocument(),i=n.createElement("base"Line truncated
|
|
||||||
//# sourceMappingURL=bundle.js.map
|
|
||||||
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"bundle.js","sources":["../node_modules/dom-to-image/dist/dom-to-image.min.js","../node_modules/file-saver/FileSaver.js","../src/index.js"],"sourcesContent":["/*! dom-to-image 10-06-2017 */\n!function(a){\"use strict\";function b(a,b){function c(a){return b.bgcolor&&(a.style.backgroundColor=b.bgcolor),b.width&&(a.style.width=b.width+\"px\"),b.height&&(a.style.height=b.height+\"px\"),b.style&&Object.keys(b.style).forEach(function(c){a.style[c]=b.style[c]}),a}return b=b||{},g(b),Promise.resolve(a).then(function(a){return i(a,b.filter,!0)}).then(j).then(k).then(c).then(function(c){return l(c,b.width||q.width(a),b.height||q.height(a))})}function c(a,b){return h(a,b||{}).then(function(b){return b.getContext(\"2d\").getImageData(0,0,q.width(a),q.height(a)).data})}function d(a,b){return h(a,b||{}).then(function(a){return a.toDataURL()})}function e(a,b){return b=b||{},h(a,b).then(function(a){return a.toDataURL(\"image/jpeg\",b.quality||1)})}function f(a,b){return h(a,b||{}).then(q.canvasToBlob)}function g(a){\"undefined\"==typeof a.imagePlaceholder?v.impl.options.imagePlaceholder=u.imagePlaceholder:v.impl.options.imagePlaceholder=a.imagePlaceholder,\"undefined\"==typeof a.cacheBust?v.impl.options.cacheBust=u.cacheBust:v.impl.options.cacheBust=a.cacheBust}function h(a,c){function d(a){var b=document.createElement(\"canvas\");if(b.width=c.width||q.width(a),b.height=c.height||q.height(a),c.bgcolor){var d=b.getContext(\"2d\");d.fillStyle=c.bgcolor,d.fillRect(0,0,b.width,b.height)}return b}return b(a,c).then(q.makeImage).then(q.delay(100)).then(function(b){var c=d(a);return c.getContext(\"2d\").drawImage(b,0,0),c})}function i(a,b,c){function d(a){return a instanceof HTMLCanvasElement?q.makeImage(a.toDataURL()):a.cloneNode(!1)}function e(a,b,c){function d(a,b,c){var d=Promise.resolve();return b.forEach(function(b){d=d.then(function(){return i(b,c)}).then(function(b){b&&a.appendChild(b)})}),d}var e=a.childNodes;return 0===e.length?Promise.resolve(b):d(b,q.asArray(e),c).then(function(){return b})}function f(a,b){function c(){function c(a,b){function c(a,b){q.asArray(a).forEach(function(c){b.setProperty(c,a.getPropertyValue(c),a.getPropertyPriority(c))})}a.cssText?b.cssText=a.cssText:c(a,b)}c(window.getComputedStyle(a),b.style)}function d(){function c(c){function d(a,b,c){function d(a){var b=a.getPropertyValue(\"content\");return a.cssText+\" content: \"+b+\";\"}function e(a){function b(b){return b+\": \"+a.getPropertyValue(b)+(a.getPropertyPriority(b)?\" !important\":\"\")}return q.asArray(a).map(b).join(\"; \")+\";\"}var f=\".\"+a+\":\"+b,g=c.cssText?d(c):e(c);return document.createTextNode(f+\"{\"+g+\"}\")}var e=window.getComputedStyle(a,c),f=e.getPropertyValue(\"content\");if(\"\"!==f&&\"none\"!==f){var g=q.uid();b.className=b.className+\" \"+g;var h=document.createElement(\"style\");h.appendChild(d(g,c,e)),b.appendChild(h)}}[\":before\",\":after\"].forEach(function(a){c(a)})}function e(){a instanceof HTMLTextAreaElement&&(b.innerHTML=a.value),a instanceof HTMLInputElement&&b.setAttribute(\"value\",a.value)}function f(){b instanceof SVGElement&&(b.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),b instanceof SVGRectElement&&[\"width\",\"height\"].forEach(function(a){var c=b.getAttribute(a);c&&b.style.setProperty(a,c)}))}return b instanceof Element?Promise.resolve().then(c).then(d).then(e).then(f).then(function(){return b}):b}return c||!b||b(a)?Promise.resolve(a).then(d).then(function(c){return e(a,c,b)}).then(function(b){return f(a,b)}):Promise.resolve()}function j(a){return s.resolveAll().then(function(b){var c=document.createElement(\"style\");return a.appendChild(c),c.appendChild(document.createTextNode(b)),a})}function k(a){return t.inlineAll(a).then(function(){return a})}function l(a,b,c){return Promise.resolve(a).then(function(a){return a.setAttribute(\"xmlns\",\"http://www.w3.org/1999/xhtml\"),(new XMLSerializer).serializeToString(a)}).then(q.escapeXhtml).then(function(a){return'<foreignObject x=\"0\" y=\"0\" width=\"100%\" height=\"100%\">'+a+\"</foreignObject>\"}).then(function(a){return'<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"'+b+'\" height=\"'+c+'\">'+a+\"</svg>\"}).then(function(a){return\"data:image/svg+xml;charset=utf-8,\"+a})}function m(){function a(){var a=\"application/font-woff\",b=\"image/jpeg\";return{woff:a,woff2:a,ttf:\"application/font-truetype\",eot:\"application/vnd.ms-fontobject\",png:\"image/png\",jpg:b,jpeg:b,gif:\"image/gif\",tiff:\"image/tiff\",svg:\"image/svg+xml\"}}function b(a){var b=/\\.([^\\.\\/]*?)$/g.exec(a);return b?b[1]:\"\"}function c(c){var d=b(c).toLowerCase();return a()[d]||\"\"}function d(a){return a.search(/^(data:)/)!==-1}function e(a){return new Promise(function(b){for(var c=window.atob(a.toDataURL().split(\",\")[1]),d=c.length,e=new Uint8Array(d),f=0;f<d;f++)e[f]=c.charCodeAt(f);b(new Blob([e],{type:\"image/png\"}))})}function f(a){return a.toBlob?new Promise(function(b){a.toBlob(b)}):e(a)}function g(a,b){var c=document.implementation.cLine truncated
|
|
||||||
Vendored
-16
@@ -1,16 +0,0 @@
|
|||||||
|
|
||||||
.leaflet-control-easyPrint-button a {
|
|
||||||
background:#fff url(external/easyPrint/print.png) no-repeat 5px;
|
|
||||||
background-size:16px 16px;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
//@media print {
|
|
||||||
html {padding: 0px!important;}
|
|
||||||
.leaflet-control-easyPrint-button{display: none!important;}
|
|
||||||
}
|
|
||||||
|
|
||||||
//#map {
|
|
||||||
width: 1200;
|
|
||||||
height: 800;
|
|
||||||
}
|
|
||||||
Vendored
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 219 B |
Vendored
-6
@@ -1,6 +0,0 @@
|
|||||||
/* @license
|
|
||||||
* jQuery.print, version 1.6.0
|
|
||||||
* (c) Sathvik Ponangi, Doers' Guild
|
|
||||||
* Licence: CC-By (http://creativecommons.org/licenses/by/3.0/)
|
|
||||||
*--------------------------------------------------------------------------*/
|
|
||||||
!function(e){"use strict";function t(t,n,r){for(var o=e(t),i=o.clone(n,r),a=o.find("textarea").add(o.filter("textarea")),l=i.find("textarea").add(i.filter("textarea")),c=o.find("select").add(o.filter("select")),d=i.find("select").add(i.filter("select")),f=0,s=a.length;f<s;++f)e(l[f]).val(e(a[f]).val());for(f=0,s=c.length;f<s;++f)for(var p=0,u=c[f].options.length;p<u;++p)!0===c[f].options[p].selected&&(d[f].options[p].selected=!0);return i}function n(n){var r=e("");try{r=t(n)}catch(t){r=e("<span />").html(n)}return r}function r(t,n,r){var o=e.Deferred();try{var i=(t=t.contentWindow||t.contentDocument||t).document||t.contentDocument||t;r.doctype&&i.write(r.doctype),i.write(n),i.close();var a=!1,l=function(){if(!a){t.focus();try{t.document.execCommand("print",!1,null)||t.print(),e("body").focus()}catch(e){t.print()}t.close(),a=!0,o.resolve()}};e(t).on("load",l),setTimeout(l,r.timeout)}catch(e){o.reject(e)}return o}function o(e,t){return r(window.open(),e,t).always(function(){try{t.deferred.resolve()}catch(e){console.warn("Error notifying deferred",e)}})}function i(e){return!!("object"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName)}e.print=e.fn.print=function(){var a,l,c=this;c instanceof e&&(c=c.get(0)),i(c)?(l=e(c),arguments.length>0&&(a=arguments[0])):arguments.length>0?i((l=e(arguments[0]))[0])?arguments.length>1&&(a=arguments[1]):(a=arguments[0],l=e("html")):l=e("html");var d={globalStyles:!0,mediaPrint:!1,stylesheet:null,noPrintSelector:".no-print",iframe:!0,append:null,prepend:null,manuallyCopyFormValues:!0,deferred:e.Deferred(),timeout:750,title:null,doctype:"<!doctype html>"};a=e.extend({},d,a||{});var f=e("");a.globalStyles?f=e("style, link, meta, base, title"):a.mediaPrint&&(f=e("link[media=print]")),a.stylesheet&&(f=e.merge(f,e('<link rel="stylesheet" href="'+a.stylesheet+'">')));var s=t(l);if((s=e("<span/>").append(s)).find(a.noPrintSelector).remove(),s.append(t(f)),a.title){var p=e("title",s);0===p.length&&(p=e("<title />"),s.append(p)),p.text(a.title)}s.append(n(a.append)),s.prepend(n(a.prepend)),a.manuallyCopyFormValues&&(s.find("input").each(function(){var t=e(this);t.is("[type='radio']")||t.is("[type='checkbox']")?t.prop("checked")&&t.attr("checked","checked"):t.attr("value",t.val())}),s.find("select").each(function(){e(this).find(":selected").attr("selected","selected")}),s.find("textarea").each(function(){var t=e(this);t.text(t.val())}));var u,h,m,y,v=s.html();try{a.deferred.notify("generated_markup",v,s)}catch(e){console.warn("Error notifying deferred",e)}if(s.remove(),a.iframe)try{u=v,m=e((h=a).iframe+""),0===(y=m.length)&&(m=e('<iframe height="0" width="0" border="0" wmode="Opaque"/>').prependTo("body").css({position:"absolute",top:-999,left:-999})),r(m.get(0),u,h).done(function(){setTimeout(function(){0===y&&m.remove()},1e3)}).fail(function(e){console.error("Failed to print from iframe",e),o(u,h)}).always(function(){try{h.deferred.resolve()}catch(e){console.warn("Error notifying deferred",e)}})}catch(e){console.error("Failed to print from iframe",e.stack,e.message),o(v,a)}else o(v,a);return this}}(jQuery);
|
|
||||||
+1
-1
@@ -111,7 +111,7 @@
|
|||||||
<span id="events-type">Symbole:</span>
|
<span id="events-type">Symbole:</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="table-caption">
|
<p class="table-caption">
|
||||||
Reverse Geolocation courtesy of <a href="http://photon.komoot.de/" target="_blank">Photon by Komoot</a>
|
Reverse Geolocation courtesy of <a href="http://photon.komoot.io/" target="_blank">Photon by Komoot</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<!-- Stations -->
|
<!-- Stations -->
|
||||||
|
|||||||
+1
-1
@@ -112,7 +112,7 @@
|
|||||||
<span id="events-type">Symbols:</span>
|
<span id="events-type">Symbols:</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="table-caption">
|
<p class="table-caption">
|
||||||
Reverse Geolocation courtesy of <a href="http://photon.komoot.de/" target="_blank">Photon by Komoot</a>
|
Reverse Geolocation courtesy of <a href="http://photon.komoot.io/" target="_blank">Photon by Komoot</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<!-- Stations -->
|
<!-- Stations -->
|
||||||
|
|||||||
+6
-2
@@ -4,7 +4,7 @@
|
|||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
/* License
|
/* License
|
||||||
Copyright 2014-2021 Kasper D. Fischer <kasper.fischer@rub.de>
|
Copyright 2014-2023 Kasper D. Fischer <kasper.fischer@rub.de>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify it
|
This program is free software: you can redistribute it and/or modify it
|
||||||
under the terms of the GNU General Public License as published by the Free
|
under the terms of the GNU General Public License as published by the Free
|
||||||
@@ -94,7 +94,7 @@ var config = {
|
|||||||
dlsvURL: 'dlsv',
|
dlsvURL: 'dlsv',
|
||||||
mseedURL: 'https://fdsnws.geophysik.ruhr-uni-bochum.de/fdsnws/dataselect/1/query',
|
mseedURL: 'https://fdsnws.geophysik.ruhr-uni-bochum.de/fdsnws/dataselect/1/query',
|
||||||
stationURL: 'https://fdsnws.geophysik.ruhr-uni-bochum.de/fdsnws/station/1/query',
|
stationURL: 'https://fdsnws.geophysik.ruhr-uni-bochum.de/fdsnws/station/1/query',
|
||||||
nominatimURL: 'https://photon.komoot.de/reverse',
|
nominatimURL: 'https://photon.komoot.io/reverse',
|
||||||
timespan: 400,
|
timespan: 400,
|
||||||
},
|
},
|
||||||
event: {
|
event: {
|
||||||
@@ -198,6 +198,10 @@ $(document).ready(function() {
|
|||||||
config['tab']['active'] = Number(parameters['tab']);
|
config['tab']['active'] = Number(parameters['tab']);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
if ( Number(parameters['zoom']) ) {
|
||||||
|
config['map']['zoomDefault'] = Number(parameters['zoom']);
|
||||||
|
config['map']['zoomFocus'] = Number(parameters['zoom']+3);
|
||||||
|
};
|
||||||
|
|
||||||
// AJAX setup
|
// AJAX setup
|
||||||
$.ajaxSetup({timeout: config['ajax']['timeout']});
|
$.ajaxSetup({timeout: config['ajax']['timeout']});
|
||||||
|
|||||||
Reference in new issue
Block a user