Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function() {
- //Setup the plugin, see readme for more examples
- var clima = $("#clima").flatWeatherPlugin({
- //Required options:
- location: "Mission, TX", //city and region *required
- country: "USA", //country *required
- //Full options:
- api: "openweathermap", //default: yahoo (openweathermap or yahoo)
- apikey: "---", //api key required for openweather
- //visit openweathermap.org and sign up for an account to get an api key
- view : "full", //default: full (partial, full, simple, today or forecast)
- timeformat: "12", //"24" or "12" default: "12"
- displayCityNameOnly : true, //default: false (true/false) if you want to display only city name
- forecast: 5, //default: 5 (0 -5) how many days you want forecast
- render: true, //default: true (true/false) if you want plugin to generate markup
- loadingAnimation: true, //default: true (true/false) if you want plugin to show loading animation
- units : "metric", //"metric" or "imperial" to overide units default: "auto"
- //Multi-language support only openweathermap supports translation (see below for supported languages)
- lang: "es", //default: "en"
- //translation strings, If you would like to use another language please replace these strings with your language
- strings : {
- days: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],
- min : "Min",
- max : "Max",
- direction : ["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSO","SO","OSO","O","ONO","NO", "NNO"]
- },
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement