This repository has been archived by the owner on Aug 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 234
/
index.html
84 lines (65 loc) · 3.59 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!doctype html>
<html ng-app="myapp">
<head>
<link href='http://fonts.googleapis.com/css?family=Quicksand:300,400' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/animate.min.css">
<link href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="css/buttons.css">
<link rel="stylesheet" href="css/site.css">
<script src="js/vendor/custom.modernizr.js"></script>
</head>
<body ng-controller="WeatherController">
<section id="app">
<!-- HEADER -->
<header>
<h1 class="animated bounceInDown">Crowdsourced Fog</h1>
<nav id="first-row">
<input id="query" ng-model="query" placeholder="Find a Neighborhood in SF...">
<div class="clear"></div>
</nav>
</header>
<!-- WEATHER CARDS -->
<section id="wrapper">
<div ng-repeat="hood in hoods | filter:query" class="neighborhood animated swing">
<div class="card" id="{{hood.id}}" ng-class="{'sunny': weather == 'sunny', 'foggy': weather == 'foggy'}" ng-controller="WeatherController" ng-init="init(hood.value)">
<h3 class="hood">{{hood.value}}</h3>
<h4 class="weather-heading" ng-class="{'sunny': weather == 'sunny', 'foggy': weather == 'foggy'}"></h4>
<div id="weather-count">
<span class="test left">sunny: {{sunny}}</span>
<span class="foggy-count right">foggy {{foggy}}</span>
<div class="clear"></div>
</div>
<div class="controls">
<a ng-click="updateCount('sun')" class="button button-tiny button-highlight button-rounded"><i class="icon-sun"></i> Sunny</a>
<a ng-click="updateCount('fog')" class="right button button-tiny button-primary button-rounded"><i class="icon-cloud"></i> Foggy</a>
<div class="clear"></div>
</div>
</div>
</div>
<div class="clear"></div>
</section>
<!-- FOOTER -->
<footer id="firebase">
<a href="http://www.firebase.com"><img src="img/firebase.png"></a>
</footer>
<!-- SOCIAL BAR -->
<div id="social-bar">
<!-- GITHUB STAR BUTTON -->
<iframe class="github-button" src="http://ghbtns.com/github-btn.html?user=firebase&repo=crowdsourced-fog&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="62" height="20"></iframe>
<!-- GITHUB FORK BUTTON -->
<iframe class="github-button" src="http://ghbtns.com/github-btn.html?user=firebase&repo=crowdsourced-fog&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="62" height="20"></iframe>
<!-- TWITTER TWEET BUTTON -->
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://firebase.github.io/crowdsourced-fog/" data-text="I'm tracking the weather in SF on Crowdsourced Fog!">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<!-- FACEBOOK LIKE BUTTON -->
<div class="fb-like" data-href="https://github.com/firebase/crowdsourced-fog" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false"></div>
</section>
</div>
<!-- JAVASCRIPTS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.5/angular.min.js"></script>
<script src="https://cdn.firebase.com/v0/firebase.js"></script>
<script src="https://cdn.firebase.com/libs/angularfire/0.5.0/angularfire.min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</section>
</body>
</html>