|
a |
|
b/extract.html |
|
|
1 |
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> |
|
|
2 |
<style type="text/css"> |
|
|
3 |
p { |
|
|
4 |
width: 100%; |
|
|
5 |
background-color: gray; |
|
|
6 |
color: white; |
|
|
7 |
} |
|
|
8 |
input[type="submit"] { |
|
|
9 |
margin-right: 20px; |
|
|
10 |
} |
|
|
11 |
form { |
|
|
12 |
text-align: right; |
|
|
13 |
} |
|
|
14 |
.container { |
|
|
15 |
text-align: left; |
|
|
16 |
} |
|
|
17 |
.highlight { |
|
|
18 |
font-weight: bold; |
|
|
19 |
background-color: yellow; |
|
|
20 |
} |
|
|
21 |
#note { |
|
|
22 |
height: 600px; |
|
|
23 |
overflow-y: scroll; |
|
|
24 |
} |
|
|
25 |
</style> |
|
|
26 |
|
|
|
27 |
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.0.min.js"></script> |
|
|
28 |
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> |
|
|
29 |
|
|
|
30 |
<div class="container"> |
|
|
31 |
<h1>MIT MGH Data Extraction Platform</h1> |
|
|
32 |
<div class="row"> |
|
|
33 |
<div class="col-md-9" id="note"> |
|
|
34 |
</div> |
|
|
35 |
|
|
|
36 |
<div class="col-md-3"> |
|
|
37 |
<b>Ejection Fraction:</b><br> |
|
|
38 |
<input type="text" name="line1" id="line1" placeholder="${guess}" /> |
|
|
39 |
</div> |
|
|
40 |
</div> |
|
|
41 |
</div> |
|
|
42 |
|
|
|
43 |
<script type="text/javascript"> |
|
|
44 |
$(document).ready(function() { |
|
|
45 |
String.prototype.replaceAll = function(find, replace) { |
|
|
46 |
return this.replace(new RegExp(find, 'g'), replace); |
|
|
47 |
}; |
|
|
48 |
|
|
|
49 |
lt = String.fromCharCode(60); |
|
|
50 |
gt = String.fromCharCode(62); |
|
|
51 |
htmlString = "${image1}".replaceAll("<", lt).replaceAll(">", gt); |
|
|
52 |
html = $.parseHTML(htmlString); |
|
|
53 |
$("#note").append(html); |
|
|
54 |
|
|
|
55 |
$("#line1").focus(); |
|
|
56 |
}); |
|
|
57 |
</script> |