Skip to content

Instantly share code, notes, and snippets.

@infi-pc
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infi-pc/9484606 to your computer and use it in GitHub Desktop.
Save infi-pc/9484606 to your computer and use it in GitHub Desktop.

#widget ##code example

<div id="wl-widget-container">
</div>
<script src="//aff.whichairline.com/widget/scripts/all.js"></script>
<script>
  WhichAirlineWidget.init({
    language: 'cs-CZ',
    from: 'praha',
    to: 'londýn'
  });
</script>

##testing site

http://aff.whichairline.com/widget/index.html#cs-CZ

##parameters

###language Fill in format like "en-US", "cs-CZ" etc.

###from fill any name of city

###to like 'from' if you fill anything what is not exist it is considered as 'Anywhere'

###default values

{
  elementId: 'wl-widget-container',
  enable3daysCheckBox: false,
  language: 'en',
  from: '',
  to: ''
}

###Supported languages

supports all languages what are on whichairline, codes are below

locales for calendar

  • af
  • ar
  • ar-DZ
  • az
  • be
  • bg
  • bs
  • ca
  • cs
  • cy-GB
  • da
  • de
  • el
  • en-AU
  • en-GB
  • en-NZ
  • eo
  • es
  • et
  • eu
  • fa
  • fi
  • fo
  • fr
  • fr-CA
  • fr-CH
  • gl
  • he
  • hi
  • hr
  • hu
  • hy
  • id
  • is
  • it
  • ja
  • ka
  • kk
  • km
  • ko
  • ky
  • lb
  • lt
  • lv
  • mk
  • ml
  • ms
  • nb
  • nl
  • nl-BE
  • nn
  • no
  • pl
  • pt
  • pt-BR
  • rm
  • ro
  • ru
  • sk
  • sl
  • sq
  • sr
  • sr-SR
  • sv
  • ta
  • th
  • tj
  • tr
  • uk
  • vi
  • zh-CN
  • zh-HK
  • zh-TW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment