Compare commits
9 Commits
a7d16e5b8a
...
feature/va
| Author | SHA1 | Date | |
|---|---|---|---|
| a2713522c9 | |||
| a1e044c082 | |||
| 4c7a1c6916 | |||
| 5d38db389d | |||
| 9333db3d29 | |||
| 2d287ea304 | |||
| 34f1bd4877 | |||
| 8b4df0c04d | |||
| 42588db791 |
7
.gitignore
vendored
7
.gitignore
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
16
Vagrantfile
vendored
Normal file
16
Vagrantfile
vendored
Normal file
@@ -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
|
||||||
@@ -6,5 +6,6 @@ var specialEvents = [
|
|||||||
// 'bug2016vico', // Central Italy 6.5
|
// 'bug2016vico', // Central Italy 6.5
|
||||||
// 'bug2017rfxe', // CTBT violation North Korea 6.1
|
// 'bug2017rfxe', // CTBT violation North Korea 6.1
|
||||||
// 'bug2019fura', // Sprengung Duisburg-Hochheide (Weißer Riese) 2.0
|
// 'bug2019fura', // Sprengung Duisburg-Hochheide (Weißer Riese) 2.0
|
||||||
'bug2021vtgi' // Geilenkirchen 1.9
|
'bug2021vtgi', // Geilenkirchen 1.9
|
||||||
|
'bug2022ahxi' // Erftstadt 2.9
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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]];
|
||||||
|
|||||||
@@ -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]];
|
||||||
|
|||||||
Reference in New Issue
Block a user