BiologicalRecordsCentre / whats_flying_tonight

A web app to provide access to moths species flying at the users location
0 stars 2 forks source link

Remember location #10

Open AugustT opened 5 years ago

AugustT commented 5 years ago

As above it would be good if the manual location set was remembered.

cubitmg commented 6 months ago

+1

I was planning to turn off the "Moths by month" feature on the Scottish Butterfly Conservation pages and redirect to Whats Flying Tonight, but the application defaulting to needing location and not remembering the manually set location means that I am not sure that I can really do this. My location comes up as something to do with my ISP's location and not mine and so needing to set the location manually every time. Assuming the location is correct is great for a mobile phone, but not usable for some people's ISPs with Windows PCs. Can using the manually set location be the default if it has been set? An alternative might be to have a url parameter of the location that could be bookmarked, if that is easier? Thanks Mark

AugustT commented 6 months ago

Hmmm, there is no easy way to get it to 'remember' as far as I can see, but your idea for a parameterised URL is a good one and could work. I will look into it when I next get a chance.

cubitmg commented 6 months ago

Thanks Tom. I think it would perhaps require the use of a cookie (which I think shiny.js supports) to hold a value and the settings page would also need the ability for a user to remove such a value and/or maybe an option to allow the user to say whether the manual value should be persistent (or not). On the URL parameter, that would need to be retained in the address bar to allow the user to bookmark it? It is a very nice application and much neater than my static html VC based approach! Many thanks, Mark