-
Notifications
You must be signed in to change notification settings - Fork 0
/
disease.html
162 lines (131 loc) · 4.42 KB
/
disease.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>FarmingTon - Disease Detection</title>
<link rel="shortcut icon" href="images/fav.png" />
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<meta name="keywords" content="Agro Harvest Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<!-- bootstrap css -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- custom css -->
<link href="css/font-awesome.min.css" rel="stylesheet"><!-- fontawesome css -->
<!-- //css files -->
<!-- <link rel="icon" type="image/png" href="/static/images/favicon.png%3F"> -->
<script type="text/JavaScript" src="scripts/cities.js"></script>
<!-- google fonts -->
<link href="//fonts.googleapis.com/css?family=Thasadith:400,400i,700,700i&subset=latin-ext,thai,vietnamese"
rel="stylesheet">
<!-- //google fonts -->
<style>
header {
background-color: rgba(30, 30, 30, 1);
margin-top: 0rem;
display: block;
}
</style>
</head>
<body>
<!-- Nav -->
<nav id="home" class="navbar navbar-expand-lg navbar-dark bg-dark pb-3 py-3">
<a class="navbar-brand font-weight-bold" href="#">FarmingTon</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto px-3">
<li class="nav-item px-1">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="crop.html">Crop</a>
</li>
<li class="nav-item">
<a class="nav-link" href="fertilizer.html">Fertilizer</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#">Disease<span class="sr-only">(current)</span></a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button type="button" class="btn btn-success">Search</button>
</form>
</div>
</nav>
<style>
html body {
background-color: rgb(206, 206, 228);
}
</style>
<br /><br />
<h2 style="text-align: center; margin: 0px; color: black">
<b>Find out which disease has been caught by your plant</b>
</h2>
<br />
<br>
<div style="
width: 350px;
height: 50rem;
margin: 0px auto;
color: black;
border-radius: 25px;
padding: 10px 10px;
font-weight: bold;
">
<form class="form-signin" method=post enctype=multipart/form-data>
<h2 class="h4 mb-3 font-weight-normal"><b>Please Upload The Image</b></h2>
<input type="file" name="file" class="form-control-file" id="inputfile" onchange="preview_image(event)"
style="font-weight: bold;">
<br>
<br>
<img id="output-image" class="rounded mx-auto d-block" />
<button class="btn btn-lg btn-primary btn-block" type="submit" style="font-weight: bold;">Predict</button>
</form>
</div>
<script type="text/javascript">
function preview_image(event) {
var reader = new FileReader();
reader.onload = function () {
var output = document.getElementById('output-image')
output.src = reader.result;
}
reader.readAsDataURL(event.target.files[0]);
}
</script>
</div>
<!-- footer -->
<footer class="text-center py-4">
<div class="container py-md-3">
<!-- logo -->
<h2 class="logo2 text-center">
<a href="#home">
FarmingTon
</a>
</h2>
<br>
<div class="w3l-copy text-center">
<p class="text-da">An Environmental Startup<br> </p>
</div>
<p class="home">
<p>Made with ❤️ by Divyansh Saxena</p>
<p>© Copyright 2022</p>
</div>
</footer>
<!-- move top icon -->
<a href="#home" class="move-top text-center"></a>
<!-- //move top icon -->
</body>
</html>