-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
180 lines (173 loc) · 7.27 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html ng-app="smartfarm">
<head>
<title>Dashboard - SmartFarm</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet">
<script src="js/angular.js"></script>
<script src="js/app.js"></script>
<script src="js/firebase.js"></script>
<script src="js/angularfire.js"></script>
<script src="js/prediction/bajra.js"></script>
<script src="js/prediction/barley.js"></script>
<script src="js/prediction/jowar.js"></script>
<script src="js/prediction/maize.js"></script>
<script src="js/prediction/wheat.js"></script>
<script src="js/app.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyD14IZlTd7-V-F4gmHFkRXr8XLZSkeKXbs",
authDomain: "smartfarm-18270.firebaseapp.com",
databaseURL: "https://smartfarm-18270.firebaseio.com",
projectId: "smartfarm-18270",
storageBucket: "",
messagingSenderId: "205130913977"
};
firebase.initializeApp(config);
</script>
</head>
<body ng-controller="FirstCtrl as first">
<div class="app">
<img id="logo" src="img/logo.png" />
</div>
<div class="row">
<div class="col-sm-4 col-md-4">
<div class="thumbnail" ng-click="first.usr()">
<img class="icon" src="img/user.png">
<div class="caption">
<p class="captionHead">Users</p>
<p>Details of application users and their alloted crops.</p>
<a href="#user" class="btn btn-primary btn-block btn-large" role="button">Open</a>
</div>
</div>
</div>
<div class="col-sm-4 col-md-4">
<div class="thumbnail" ng-click="first.crp()">
<img class="icon" src="img/crop.png">
<div class="caption">
<p class="captionHead">Crops</p>
<p>Details of crops and their initial and current requirements.</p>
<a href="#crop" class="btn btn-primary btn-block" role="button">Open</a>
</div>
</div>
</div>
<div class="col-sm-4 col-md-4">
<div class="thumbnail" ng-click="first.prd()">
<img class="icon" src="img/prediction.png">
<div class="caption">
<p class="captionHead">Prediction</p>
<p>Graphs of the crop requirement prediction using Machine Learning.</p>
<a href="#prediciton" class="btn btn-primary btn-block" role="button">Open</a>
</div>
</div>
</div>
</div>
<div class="tableHead" id="user">Users</div>
<div class="userTable">
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table class="table table-bordered table-hover">
<thead class="heading">
<tr>
<th>Name</th>
<th>Village</th>
<th>District</th>
<th>Contact</th>
<th>Area(hectare)</th>
<th>Alloted</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="user in first.users">
<td>{{user.name}}</td>
<td>{{user.village}} </td>
<td>{{user.district}}</td>
<td>{{user.contact}}</td>
<td>{{user.area}}</td>
<th>{{user.alloted}}</th>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="tableHead" id="crop">Crop</div>
<div class="userTable2">
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table class="table table-bordered table-hover">
<thead class="heading">
<tr>
<th>Crop</th>
<th>Initial Requirement (in tonnes)</th>
<th>Current Requirement (in tonnes)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bajra</td>
<td>5779025</td>
<td>{{first.crops.Bajra}}</td>
</tr>
<tr>
<td>Barley</td>
<td>924739</td>
<td>{{first.crops.Barley}}</td>
</tr>
<tr>
<td>Jawar</td>
<td>395615</td>
<td>{{first.crops.Jawar}}</td>
</tr>
<tr>
<td>Maize</td>
<td>1930313</td>
<td>{{first.crops.Maize}}</td>
</tr>
<tr>
<td>Mustard</td>
<td>1334351</td>
<td>{{first.crops.Mustard}}</td>
</tr>
<tr>
<td>Pulses</td>
<td>1845677</td>
<td>{{first.crops.Pulses}}</td>
</tr>
<tr>
<td>Wheat</td>
<td>12906344</td>
<td>{{first.crops.Wheat}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="tableHead" id="prediction">Predictions</div>
<div class="row">
<div class="col-sm-2 col-md-2"></div>
<div class="col-sm-4 col-md-4" id="fig_el124901398488362738809628417702"></div>
<div class="col-sm-4 col-md-4" id="fig_el124901398489009299687220451363"></div>
<div class="col-sm-2 col-md-2"></div>
</div>
<div class="row">
<div class="col-sm-1 col-md-1"></div>
<div class="col-sm-5 col-md-5" id="fig_el28441593081450392375801200"></div>
<div class="col-sm-5 col-md-5" id="fig_el1101215908994948086944580377"></div>
<div class="col-sm-1 col-md-1"></div>
</div>
<div class="row">
<div class="col-sm-4 col-md-4"></div>
<div class="col-sm-8 col-md-8" id="fig_el706415667263125687783256249"></div>
<div class="col-sm-4 col-md-4"></div>
</div>
</body>
</html>