-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathindex.html
183 lines (93 loc) · 4.82 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
181
182
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Breast Cancer Analyzer</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Use the power of Machine Learning to automatically analyze histopathologic image patches.">
<!--Code to prevent the browser from caching the page-->
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<!--CSS Stylesheets-->
<link rel="stylesheet" href="css/w3.css">
<link rel="stylesheet" href="css/histo.css">
<!--Link to Font Awesome icons-->
<link rel='stylesheet' href='https://use.fontawesome.com/releases/v5.4.2/css/all.css' integrity='sha384-/rXc/GQVaYpyDdyxK+ecHPVYJSN9bmVFBvjA/9eOB+pb3F2w2N6fc5qB9Ew5yIns' crossorigin='anonymous'>
<!--Link to fonts from google fonts-->
<link href="https://fonts.googleapis.com/css?family=Oswald:300" rel="stylesheet">
<link rel="shortcut icon" type="image/png" href="robotfavicon.png">
<style>
html,body,h2,h3,h4 {font-family: Helvetica, sans-serif}
</style>
</head>
<body class="w3-pale-blue">
<!-- w3-content defines a container for fixed size centered content,
and is wrapped around the whole page content. -->
<div class="w3-content card" style="max-width:960px">
<!-- 1. HOME PAGE TAB -->
<div class="tabbed w3-animate-opacity w3-white" id="home">
<!-- Header -->
<div class="w3-center title adjust-fontcolor logo">
<h1 class="space-letters w3-text-purple"><i class='fas fa-microscope w3-padding w3-text-teal' style='font-size:40px'></i><b>Breast Cancer Analyzer</b></h1>
<h5 class="space-letters w3-text-red">for Histopathology Image Patches</h5>
<h5 class="space-letters tag-font w3-text-red"><b>powered by<br> Artificial Intelligence</b></h5>
</div>
<!-- Front page image -->
<!-- This image will be replaced once the js code runs. -->
<div class="w3-center">
<img id="selected-image" class="w3-round adjust-image" width="200" src="assets/normal.png" alt="">
</div>
<p id="demo_name"></p>
<p id="demo_list"></p>
<div class="w3-center">
<div class="progress-bar">Ai is Loading...</div>
</div>
<div class="w3-center add-margin side-margin w3-round w3-pale-red w3-animate-opacity">
<h5 class='breast-cancer new-font w3-text-purple'><i class='fas fa-circle w3-padding w3-text-red' style='font-size:10px'></i>IDC Analyzer</h5>
</div>
<div class="w3-center add-margin side-margin w3-round w3-pale-blue w3-animate-opacity">
<h5 class='metastatic-cancer new-font w3-text-purple'><i class='fas fa-circle w3-padding w3-text-red' style='font-size:10px'></i>Metastatic Cancer Analyzer</h5>
</div>
<div class="dont-break-out w3-center add-padding w3-border add-margin side-margin w3-round w3-pale-blue">
<h5 class='new-font'>Results</h5>
<ol class='w3-left-align' id='prediction-list'></ol>
</div>
<div class="add-padding w3-border add-margin side-margin w3-round w3-padding w3-text-teal">
<p>What would you like to detect?</p>
<input id='met_cancer_input' class="w3-margin-right w3-margin-bottom" type="radio" name="model_type" value="metastatic_cancer" checked>Metastatic Cancer<br>
<input id='breast_cancer_input' class="w3-margin-right w3-margin-bottom" type="radio" name="model_type" value="breast_cancer">Invasive Ductal Carcinoma<br>
</div>
<!-- Button -->
<div id="btnn" class="w3-center bottom-padding">
<button class="w3-btn w3-purple w3-round w3-margin-bottom adjust-spacing w3-hover-red btn-font w3-padding w3-space-letters w3-card-4" onclick="setTimeout(simulateClick.bind(null, 'image-selector'), 200)"><i class='fas fa-camera w3-padding-right' style='font-size:15px'></i><b>Submit Images</b></button>
<p class="w3-text-teal">jpeg or png</p>
</div>
<div class='w3-padding'>
<p class='w3-round w3-margin w3-margin-bottom w3-text-teal'>Please Note: This is a prototype.</p>
</div>
</div><!--END OF HOME PAGE TAB-->
<!-- We simulate clicks on these two. -->
<div class="hide">
<button id='predict-button'>Predict</button>
</div>
<!-- This is here because it makes it easier to style the button above.-->
<div class="hide">
<input id="image-selector" type="file" multiple>
</div>
<!--===================================-->
<!-- Load jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>
<!-- Load TensorFlow.js -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.13.3/dist/tf.min.js">
</script>
<!-- Load the Javascript code -->
<script src="jscript/met_cancer_classes.js"></script>
<script src="jscript/breast_cancer_classes.js"></script>
<script src="jscript/app_startup_code.js"></script>
<script src="jscript/met_cancer_analyzer.js"></script>
<script src="jscript/breast_cancer_analyzer.js"></script>
</div> <!-- w3-content -->
</body>
</html>