world-flags-sprite

WebJar for world-flags-sprite

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

world-flags-sprite
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

world-flags-sprite
WebJar for world-flags-sprite
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/lafeber/world-flags-sprite

Download world-flags-sprite

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/world-flags-sprite/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>world-flags-sprite</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/world-flags-sprite/
implementation 'org.webjars.npm:world-flags-sprite:0.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/world-flags-sprite/
implementation ("org.webjars.npm:world-flags-sprite:0.0.2")
'org.webjars.npm:world-flags-sprite:jar:0.0.2'
<dependency org="org.webjars.npm" name="world-flags-sprite" rev="0.0.2">
  <artifact name="world-flags-sprite" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='world-flags-sprite', version='0.0.2')
)
libraryDependencies += "org.webjars.npm" % "world-flags-sprite" % "0.0.2"
[org.webjars.npm/world-flags-sprite "0.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

The flags of all countries in the world in one sprite

Include 1 css file and have all the worlds' flags on your site. Tell everyone who uses a lot of country flags to use this link, so it will be in everyone's cache!

Example usage:

In the head of your html file:

<link
    rel="stylesheet"
    type="text/css"
    href="//github.com/downloads/lafeber/world-flags-sprite/flags32.css"
/>

In the body of your html file:

<ul class="f32">
  <li class="flag ar">Argentina</li>
  <li class="flag au">Australia</li>
  <li class="flag at">Austria</li>
  ...
</ul>

Or:

<ul class="f32">
  <li class="flag arg">Argentina</li>
  <li class="flag aus">Australia</li>
  <li class="flag aut">Austria</li>
  ...
</ul>

The countries corresponding to the codes can be found at: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 and https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3

If a previously visited site uses this same code, the file is already in the cache of the user and doesn't need to be downloaded again.

See the cheese wiki: http://www.cheesewiki.com/ for an example

Versions

Version
0.0.2