From 4fd0a23b8f5d8ca1cf128788da922b73dbc81779 Mon Sep 17 00:00:00 2001 From: a-ill Date: Tue, 18 Jul 2023 22:07:07 +0300 Subject: [PATCH] Fixed wrong tag --- Server/app/svelte/public/js/groups.js | 36 ++++++++++++++++++- .../svelte/public/locales/en/manifesto.txt | 2 +- Server/public/js/groups.js | 36 ++++++++++++++++++- Server/public/locales/en/manifesto.txt | 2 +- 4 files changed, 72 insertions(+), 4 deletions(-) diff --git a/Server/app/svelte/public/js/groups.js b/Server/app/svelte/public/js/groups.js index aedcdde..3aef913 100644 --- a/Server/app/svelte/public/js/groups.js +++ b/Server/app/svelte/public/js/groups.js @@ -171,4 +171,38 @@ function onZoomEnd(map) { groupsMarkersLayer.removeLayer(groupsMarkersLayerOut) groupsMarkersLayerIn.addTo(groupsMarkersLayer) } -} \ No newline at end of file +} +/* +function reverseGeocode(latitude, longitude) { + let url = `https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=${latitude}&lon=${longitude}`; + + // Create a new XMLHttpRequest object + let xhr = new XMLHttpRequest(); + + // Set up the AJAX request + xhr.open('GET', url, true); + + // Define the onload function + xhr.onload = function() { + if (xhr.status === 200) { + // Parse the response JSON + let response = JSON.parse(xhr.responseText); + + // Extract the address information from the response + let address = response.address; + let city = address.city || address.town || address.village || address.hamlet; + let country = address.country; + let fullAddress = city + ', ' + country; + + // Do something with the address + console.log(fullAddress); + } + }; + + // Send the AJAX request + xhr.send(); + } + +let latitude = 123.456; // Replace with your latitude +let longitude = 78.901; // Replace with your longitude +reverseGeocode(latitude, longitude);*/ \ No newline at end of file diff --git a/Server/app/svelte/public/locales/en/manifesto.txt b/Server/app/svelte/public/locales/en/manifesto.txt index 92b6b9a..e7e1927 100644 --- a/Server/app/svelte/public/locales/en/manifesto.txt +++ b/Server/app/svelte/public/locales/en/manifesto.txt @@ -87,7 +87,7 @@ Under capitalism, atomization occurs due to several interconnected factors: Individualism and Competition: Capitalism places a strong emphasis on individualism and competition, promoting the pursuit of self-interest and personal gain. This focus on individual success leads to a sense of isolation as people prioritize their own needs and goals over collective well-being. The constant competition for resources and opportunities further fragments society, fostering a mindset of "every person for themselves." Market Forces and Commodification: In capitalist systems, nearly every aspect of life is subjected to market forces. Commodification occurs when goods, services, and even human relationships are reduced to exchangeable commodities. This commodification mentality erodes social bonds and interpersonal relationships, as people are encouraged to view others primarily as potential buyers or sellers rather than as fellow human beings. Consumer Culture: Capitalism promotes a consumer culture that emphasizes the pursuit of material possessions and immediate gratification. This culture fosters a sense of individualistic consumption, where personal happiness and identity are tied to the acquisition of goods and services. The constant pursuit of consumerism isolates individuals as they prioritize material accumulation over social connections and shared experiences. -Social Inequalities: Capitalist systems perpetuate social inequalities based on wealth, class, race, and gender. These inequalities result in marginalization, discrimination, and exclusion of certain groups from full participation in society. Such divisions further contribute to social atomization by creating barriers to collective action and fostering distrust among different social groups. +Social Inequalities: Capitalist systems perpetuate social inequalities based on wealth, class, race, and gender. These inequalities result in marginalization, discrimination, and exclusion of certain groups from full participation in society. Such divisions further contribute to social atomization by creating barriers to collective action and fostering distrust among different social groups. Atomization under capitalism serves as a powerful tool that prevents us from organizing and challenging the systemic inequalities and injustices inherent in the capitalist system. ### Externalities Externalities refer to the unintended consequences of economic activities that are not reflected in the prices of goods and services. These consequences can be positive or negative and are often borne by individuals or communities who are not directly involved in the economic transactions. diff --git a/Server/public/js/groups.js b/Server/public/js/groups.js index aedcdde..3aef913 100644 --- a/Server/public/js/groups.js +++ b/Server/public/js/groups.js @@ -171,4 +171,38 @@ function onZoomEnd(map) { groupsMarkersLayer.removeLayer(groupsMarkersLayerOut) groupsMarkersLayerIn.addTo(groupsMarkersLayer) } -} \ No newline at end of file +} +/* +function reverseGeocode(latitude, longitude) { + let url = `https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=${latitude}&lon=${longitude}`; + + // Create a new XMLHttpRequest object + let xhr = new XMLHttpRequest(); + + // Set up the AJAX request + xhr.open('GET', url, true); + + // Define the onload function + xhr.onload = function() { + if (xhr.status === 200) { + // Parse the response JSON + let response = JSON.parse(xhr.responseText); + + // Extract the address information from the response + let address = response.address; + let city = address.city || address.town || address.village || address.hamlet; + let country = address.country; + let fullAddress = city + ', ' + country; + + // Do something with the address + console.log(fullAddress); + } + }; + + // Send the AJAX request + xhr.send(); + } + +let latitude = 123.456; // Replace with your latitude +let longitude = 78.901; // Replace with your longitude +reverseGeocode(latitude, longitude);*/ \ No newline at end of file diff --git a/Server/public/locales/en/manifesto.txt b/Server/public/locales/en/manifesto.txt index 92b6b9a..e7e1927 100644 --- a/Server/public/locales/en/manifesto.txt +++ b/Server/public/locales/en/manifesto.txt @@ -87,7 +87,7 @@ Under capitalism, atomization occurs due to several interconnected factors: Individualism and Competition: Capitalism places a strong emphasis on individualism and competition, promoting the pursuit of self-interest and personal gain. This focus on individual success leads to a sense of isolation as people prioritize their own needs and goals over collective well-being. The constant competition for resources and opportunities further fragments society, fostering a mindset of "every person for themselves." Market Forces and Commodification: In capitalist systems, nearly every aspect of life is subjected to market forces. Commodification occurs when goods, services, and even human relationships are reduced to exchangeable commodities. This commodification mentality erodes social bonds and interpersonal relationships, as people are encouraged to view others primarily as potential buyers or sellers rather than as fellow human beings. Consumer Culture: Capitalism promotes a consumer culture that emphasizes the pursuit of material possessions and immediate gratification. This culture fosters a sense of individualistic consumption, where personal happiness and identity are tied to the acquisition of goods and services. The constant pursuit of consumerism isolates individuals as they prioritize material accumulation over social connections and shared experiences. -Social Inequalities: Capitalist systems perpetuate social inequalities based on wealth, class, race, and gender. These inequalities result in marginalization, discrimination, and exclusion of certain groups from full participation in society. Such divisions further contribute to social atomization by creating barriers to collective action and fostering distrust among different social groups. +Social Inequalities: Capitalist systems perpetuate social inequalities based on wealth, class, race, and gender. These inequalities result in marginalization, discrimination, and exclusion of certain groups from full participation in society. Such divisions further contribute to social atomization by creating barriers to collective action and fostering distrust among different social groups. Atomization under capitalism serves as a powerful tool that prevents us from organizing and challenging the systemic inequalities and injustices inherent in the capitalist system. ### Externalities Externalities refer to the unintended consequences of economic activities that are not reflected in the prices of goods and services. These consequences can be positive or negative and are often borne by individuals or communities who are not directly involved in the economic transactions.