-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdiagnose.php
More file actions
96 lines (58 loc) · 1.9 KB
/
diagnose.php
File metadata and controls
96 lines (58 loc) · 1.9 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Diagnose.ai</title>
<!-- Header Files -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<?php include_once('header.php') ?>
<div class="container" style="margin-top:20px; margin-bottom:20px">
<div class="row">
<div class="col-md-12 text-center">
<h3>Get your predictions Now</h3>
</div>
</div>
<div class="row " style="height:60vh">
<div class="col-md-6 border border-primary text-center" >
<input style="margin-left:130px; margin-top:30px" type='file' onchange="previewImg(this);" />
<hr/>
<div id="myDiv" style="display:none;" class="bg-info center" >Original Image</div>
<hr/>
<img id="viewImg" style="display:none;" class=" text-center" alt="your image" />
</div>
<div class="col-md-6 border border-primary">
2nd div
</div>
</div>
</div>
<?php include_once('footer.html') ?>
</body>
<style>
img{
max-width:180px;
}
input[type=file]{
background:#ccc ;}</style>
<script>
function previewImg(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
document.getElementById('viewImg').style.display = "";
reader.onload = function (e) {
$('#viewImg')
.attr('src', e.target.result);
};
reader.readAsDataURL(input.files[0]);
showDiv();
}
}
function showDiv() {
document.getElementById('myDiv').style.display = "block";
}
</script>
</html>