diff --git a/locations/Bielsa.json b/locations/Bielsa.json index 6dd3d8e..39c1d89 100644 --- a/locations/Bielsa.json +++ b/locations/Bielsa.json @@ -1,5 +1,6 @@ { "name": "Bielsa", + "altitude": 1034, "bus": true, "train": false, "pharmacy": null, diff --git a/locations/Biescas.json b/locations/Biescas.json index 756b3e1..35bef2a 100644 --- a/locations/Biescas.json +++ b/locations/Biescas.json @@ -1,5 +1,6 @@ { "name": "Biescas", + "altitude": 875, "bus": true, "train": false, "pharmacy": true, diff --git a/locations/Broto.json b/locations/Broto.json index 31caefc..470a548 100644 --- a/locations/Broto.json +++ b/locations/Broto.json @@ -1,5 +1,6 @@ { "name": "Broto", + "altitude": 905, "bus": false, "train": false, "pharmacy": true, diff --git a/locations/CastiellodeJaca.json b/locations/CastiellodeJaca.json index 67d8787..b90da6e 100644 --- a/locations/CastiellodeJaca.json +++ b/locations/CastiellodeJaca.json @@ -1,5 +1,6 @@ { "name": "Castiello de Jaca", + "altitude": 921, "bus": true, "train": false, "pharmacy": false, diff --git a/locations/Panticosa.json b/locations/Panticosa.json index 51cd000..500acbe 100644 --- a/locations/Panticosa.json +++ b/locations/Panticosa.json @@ -1,5 +1,6 @@ { "name": "Panticosa", + "altitude": 1184, "bus": true, "train": false, "pharmacy": true, diff --git a/locations/Sabiñanigo.json b/locations/Sabiñanigo.json index 18e7136..43b301a 100644 --- a/locations/Sabiñanigo.json +++ b/locations/Sabiñanigo.json @@ -1,5 +1,6 @@ { "name": "Sabiñanigo", + "altitude": 780, "bus": true, "train": true, "pharmacy": true, diff --git a/locations/SallentdeGallego.json b/locations/SallentdeGallego.json new file mode 100644 index 0000000..0551068 --- /dev/null +++ b/locations/SallentdeGallego.json @@ -0,0 +1,24 @@ +{ + "name": "Sallent de Gallego", + "altitude": 1305, + "bus": true, + "train": false, + "pharmacy": true, + "smoke": true, + "supermarkets": [ + { + "type": "ALCAMPO", + "url": "https://goo.gl/maps/JQVoBvucXwRMos8u9" + }, + { + "type": "CUSTOM", + "url": "https://goo.gl/maps/sPbbdQ6ENUcBgZC18" + }, + { + "type": "CUSTOM", + "url": "https://goo.gl/maps/sPbbdQ6ENUcBgZC18" + } + ], + "pool": true, + "gym": true +} \ No newline at end of file diff --git a/locations/Villanúa.json b/locations/Villanúa.json index 16f338a..87d5b8e 100644 --- a/locations/Villanúa.json +++ b/locations/Villanúa.json @@ -1,5 +1,6 @@ { "name": "Villanúa", + "altitude": 953, "bus": true, "train": true, "pharmacy": true, diff --git a/locations/Zaragoza.json b/locations/Zaragoza.json index 852ff9e..fabe89f 100644 --- a/locations/Zaragoza.json +++ b/locations/Zaragoza.json @@ -1,5 +1,6 @@ { "name": "Zaragoza", + "altitude": 243, "bus": true, "train": true, "pharmacy": true, diff --git a/src/App.js b/src/App.js index db3c2a9..526a74b 100644 --- a/src/App.js +++ b/src/App.js @@ -10,7 +10,11 @@ export default class App { static init() { Preferences.init(); - Styles.add(); + + Styles.add(Styles.APP_STYLES, 'midefos-idealista-app-styles'); + if (Preferences.get('darkMode')) { + Styles.add(Styles.DARK_MODE, 'midefos-idealista-dark-mode'); + } new Menu(); new Configuration(); diff --git a/src/Configuration.js b/src/Configuration.js index 13f333b..77ea501 100644 --- a/src/Configuration.js +++ b/src/Configuration.js @@ -42,6 +42,7 @@ export default class Configuration { const container = document.querySelector(ConfigurationHTML.CONTAINER_SELECTOR); return { enabled: container.querySelector('#enabled').checked, + darkMode: container.querySelector('#darkMode').checked, percentages: container.querySelector('#percentages').checked, percentages_20: container.querySelector('#percentages_20').checked, percentages_30: container.querySelector('#percentages_30').checked, diff --git a/src/ConfigurationHTML.js b/src/ConfigurationHTML.js index 2dafb1c..c890c5b 100644 --- a/src/ConfigurationHTML.js +++ b/src/ConfigurationHTML.js @@ -30,6 +30,11 @@ export default class ConfigurationHTML { ${CheckboxHTML.create('enabled', Preferences.get('enabled'))} Habilitado + +