Comments (7)
there you go: https://flags.dsgn.it/assets/bo.svg
here's the list of the available iso codes: https://github.com/cedmax/flags/blob/master/modules/iso.json
from flags.
and thanks again for all the QA :)
from flags.
alas .. CORS.. so external domains are not allowed to load your files.
Easiest is to dump all flags in a GitHub directory
from flags.
Sorry I must not have understood correctly the use case, I thought you wanted an easy way to fetch them, not to load them dynamically on other websites. I wouldn't do that tbh: right now the host is netlify but if I wad to move it the cost of the bandwidth wouldn't really be sustainable. Feel free to either script the download given the iso list or to fork the repo and do whatever needed: I can't rename all the files as my system works off ids that are deducted from the names of the countries and not all the countries I cover have an iso code assigned (I'm thinking at Abkhazia and such)
from flags.
I will get back to you later this week with the link to FlagMeister
Yes bandwidth is an issue, that is why I load all the other flags from the github repos:
- https://raw.githubusercontent.com/lipis/flag-icon-css/master/flags/4x3/as.svg
- https://raw.githubusercontent.com/hjnilsson/country-flags/master/svg/as.svg
- https://raw.githubusercontent.com/kent1D/svg-flags/master/flags/as.svg
This returns content-type:text to prevent hotlinking, but I want text as I inject it into other SVG content.
To be clear; I don't need your flags, (I have recreated all flags so JS generates the SVG)
FlagMeister is a Custom Element so people can pick the flag (singular) they want.. from any repo
Or.. for you .. to compare your flags to others.
from flags.
Oh, ok, gotcha. I don't think I can provide that. As I mentioned I load them with a generates slug, not via iso code and changing it is not an option (too much refactoring involved). At the same time duplicating them would a problem as well, I would definitely forget to change both versions if I had an update. The only thing I can think of is that if you provide me the url I can probably look into enabling CORS to that domain only... Maybe that would do
from flags.
I said I would publish a link in a week... turned to a month.
https://flagmeister.github.io/
Is a 23 KB (gzip) Custom Element/WebComponent generating 300+ flags
https://flagmeister.github.io/documentation.html?flag=gb
is the direct link to the overview of Repos I can show the flag of
if the link is to a 2 letter (lowercase) iso code SVG flag
from flags.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flags.