-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
61 lines (58 loc) · 3.24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html ng-app="weatherDemo" lang="it">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>ngWeather</title>
<!-- Bootstrap Core CSS - Uses Bootswatch Flatly Theme: http://bootswatch.com/flatly/ -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/freelancer.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="js/jquery.js"></script>
<script src="js/angular.js"></script>
<script src="js/app.js"></script>
<link href="ng-weather/css/ng-weather.css" rel="stylesheet" />
<link href="ng-weather/css/owfont.css" rel="stylesheet" />
<script src="ng-weather/ng-weather.js"></script>
</head>
<body id="page-top" class="index">
<!-- Navigation -->
<!-- Header -->
<section id="demo">
<div class="container">
<div class="row">
<div class="col-lg-8 text-center">
NgWeather is the easiest way to put a simple and nice <em>weather widget</em> in your website.
<h3>Usage</h3>
<ol style="text-align: left">
<li>Import JS and CSS (ng-weather.css and owfont.css) in your page</li>
<li>Go on <a href="http://openweathermap.org" target="_blank">http://openweathermap.org</a> and register to get your API KEY (without this app will soon stop working)</li>
<li>Inject ngWeather in your app:
<pre><code>var app = angular.module("myApp", ["ngWeather"]);</code></pre>
</li>
<li>Put this simple snippet where you want the widget to appear:
<pre><code><ng-weather city="Oklahoma" app-id="YOUR_API_KEY"></ng-weather></code></pre>
</li>
</ol>
</div>
<div class="col-lg-4 text-center">
<ng-weather city-id="3164258" app-id="d4e28fc2ec53022b3f8f773dfe4dd9e5" locale="it"></ng-weather>
<!--ng-weather city="Bergamo" app-id="d4e28fc2ec53022b3f8f773dfe4dd9e5" locale="it"></ng-weather-->
</div>
</div>
</div>
</section>
</body>
</html>