Giter Club home page Giter Club logo

Comments (7)

cedmax avatar cedmax commented on August 24, 2024

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.

cedmax avatar cedmax commented on August 24, 2024

and thanks again for all the QA :)

from flags.

Danny-Engelman avatar Danny-Engelman commented on August 24, 2024

alas .. CORS.. so external domains are not allowed to load your files.

image

Easiest is to dump all flags in a GitHub directory

from flags.

cedmax avatar cedmax commented on August 24, 2024

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.

Danny-Engelman avatar Danny-Engelman commented on August 24, 2024

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:

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.

cedmax avatar cedmax commented on August 24, 2024

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.

Danny-Engelman avatar Danny-Engelman commented on August 24, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.