Advertisement
Guest User

Untitled

a guest
Nov 7th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. <script type="text/javascript">
  2. $(document).ready(function() {
  3.  
  4. //Setup the plugin, see readme for more examples
  5. var clima = $("#clima").flatWeatherPlugin({
  6.  
  7. //Required options:
  8. location: "Mission, TX", //city and region *required
  9. country: "USA", //country *required
  10.  
  11. //Full options:
  12. api: "openweathermap", //default: yahoo (openweathermap or yahoo)
  13. apikey: "---", //api key required for openweather
  14. //visit openweathermap.org and sign up for an account to get an api key
  15. view : "full", //default: full (partial, full, simple, today or forecast)
  16. timeformat: "12", //"24" or "12" default: "12"
  17. displayCityNameOnly : true, //default: false (true/false) if you want to display only city name
  18. forecast: 5, //default: 5 (0 -5) how many days you want forecast
  19. render: true, //default: true (true/false) if you want plugin to generate markup
  20. loadingAnimation: true, //default: true (true/false) if you want plugin to show loading animation
  21. units : "metric", //"metric" or "imperial" to overide units default: "auto"
  22.  
  23. //Multi-language support only openweathermap supports translation (see below for supported languages)
  24. lang: "es", //default: "en"
  25.  
  26.  
  27. //translation strings, If you would like to use another language please replace these strings with your language
  28. strings : {
  29. days: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],
  30. min : "Min",
  31. max : "Max",
  32. direction : ["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSO","SO","OSO","O","ONO","NO", "NNO"]
  33. },
  34. });
  35.  
  36. });
  37.  
  38.  
  39.  
  40. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement