andrew67 / ddr-finder Goto Github PK
View Code? Open in Web Editor NEWHTML5 DDR Locator Application (targeted at Mobile); could be modified into a general location finder
Home Page: https://ddrfinder.andrew67.com/
License: Other
HTML5 DDR Locator Application (targeted at Mobile); could be modified into a general location finder
Home Page: https://ddrfinder.andrew67.com/
License: Other
Unfortunately, self-hosted Piwik is too difficult to maintain.
No good reason for the "About" embedded page to be pulling in all of MetroUICSS, fonts, etc.
Should provide a simpler CSS for this page for the needed components (and native-looking font).
Bonus points for native-looking components.
User may end up bookmarking locator.html, which in non-exceptional cases will have no obvious pointer back to the main/options page.
The zoom restriction was originally created for map/box clients that could end up defaulting to a wide view, pull in a large list, and exceed reasonable resource usage and view utility.
Also, as a mechanism for a server to say "no, I don't want to pull this much data in".
For a server that's ok with this, and a client that can handle it (client-side pagination or pin aggregation), add a flag for it to say so (defaulting to off for old clients).
Good non-breaking optional addition for v3.1.
A nice-to-have to let the users know their GPS data isn't being sold off, and to provide a Piwik opt-out screen for Analytics.
See https://css-tricks.com/how-to-animate-the-details-element/ for a great guide on how to animate these.
This allows removing the accordion library and its jQuery/MetroUI CSS dependency, as well as more semantic HTML.
Note: ensure print styles still work.
Bonus goal: inline-block with media queries to show side-by-side results on larger screens.
Currently, deployment consists of uploading the "web" directory.
Could add an optional step for minification of JavaScript and CSS resources.
With upcoming iOS 14 and the "coarse GPS" feature, accuracy may become as low as 9km.
Bring back the code from a previous release which displayed this value on screen.
The current server has been grandfathered, however the code should integrate a key for explicit usage tracking, and so that anyone who wishes to deploy their own version can more easily do so.
Use <meta theme-color
to set color branding like on the app.
For dense areas such as Tokyo, the 1º by 1º box is quite excessive, and will produce a large list. Results should be capped around 10-20, as this is not meant to be a comprehensive search engine.
As $.getJSON()
was only providing a success callback, failures with the request were not handled (UI remains in permanent loading status).
Based on documentation: http://api.jquery.com/jQuery.getJSON/
We can attach promise style, using .done()
and .fail()
.
2022 copyright footer
Credit OpenStreetMap for locations
PDO would output strings for all results by default.
Evaluate whether DreamHost has mysqlnd driver available and switch to it, for proper numeric types in API output.
Currently, the "dump" API will hand over entries that were created/updated after a certain timestamp.
If there were a case of a deletion, the client would not be properly notified of this.
Requirements for implementation:
This is a candidate for future marking as API v3.1.
From user feedback:
Potential challenges include making sure all API endpoints have sufficient input validation for user's latitude/longitude, and ensuring locations in DB are also properly bounded.
Support a tile system like Bing Maps Tile System: https://learn.microsoft.com/en-us/bingmaps/articles/bing-maps-tile-system
This lets the world be divided into blocks, so clients can request block by block, and responses become cache-able.
Can use window.devicePixelRatio
and &scale=X
(1,2) on the Static API to bring in a nicer image on hiDPI displays.
Can add the abstraction to the constructor or prototype.
Will have to add width= height=
to <img>
as well.
6 digits is enough for quite accurate location, and having more clutters the UI.
Can use JavaScript's Number.toFixed
The legacy WebUI is quite stable.
Replacing the icons with individual Material Design SVGs would reduce the page size by only loading the few icons we need, instead of the entire 82KB icon font.
Icons can be set up to match the native app, and to have long-term caching.
The demo server hosted on DreamHost is not taking advantage of gzip/deflate etc. in order to deliver a smaller payload to clients.
Preliminary searches concluded this can be accomplished via the .htaccess file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.