-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
executable file
·129 lines (121 loc) · 4.98 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
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Heart Disease Prediction</title>
<meta name="description" content="Natural Language Form with custom text input and drop-down lists" />
<meta name="keywords" content="Natural Language UI, sentence form, text input, contenteditable, html5, css3, jquery" />
<meta name="theme-color" content="#E96D65">
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="css/default.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<link rel="stylesheet" href="css/loader.css" type="text/css">
<link rel="stylesheet" href="css/test.css" type="text/css">
<link rel="manifest" href="./manifest.json">
<!-- Add to home screen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="Heartify">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<!-- Tile icon for Windows -->
<meta name="msapplication-TileImage" content="icons/icon-144x144.png">
<meta name="msapplication-TileColor" content="#E96D65">
</head>
<body class="nl-blurred">
<div class="frame">
<div class="center">
<div class="dot-1"></div>
<div class="dot-2"></div>
<div class="dot-3"></div>
</div>
</div>
<div class="container demo-1">
<header>
<h1>Heart Disease Prediction </a><span>using Machine Learning</span></h1>
</header>
<div class="loader">
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="main clearfix">
<form id="nl-form" class="nl-form" onsubmit="return false">
I am a <input type="number" placeholder="20" value="20" id="age"/> year old
<select id="sex">
<option value="0" selected>Male</option>
<option value="1">Female</option>
</select>. <br>
I smoke <input type="number" placeholder="2" value="2" id="cigs"> cigarettes daily. <br> I
<select id="diabetes">
<option value="1">have</option>
<option value="0">don't have</option>
</select> diabetes. <br>
My cholestrol level is <br> <input type="number" value="100" placeholder="100" id="cholestrol"> and
my blood pressure is <br> <input type="number" id="sBP" value="120" placeholder="120">/<input type="number" value="80" placeholder="80" id="dBP">.
I have a heart rate of <br> about <input type="number" id="heartRate" value="75" placeholder="75"> and my blood <br> sugar level is
<input type="number" placeholder="80" id="glucose" value="80">.
<div class="nl-submit-wrap">
<button class="nl-submit" type="submit" id="btn">Predict</button>
</div>
<div class="nl-overlay"></div>
</form>
</div>
</div><!-- /container -->
<!-- <div class="codrops-top clearfix">
<a class="codrops-icon codrops-icon-prev" href="http://tympanus.net/Development/MorphingDevices/"><span>Previous Demo</span></a>
<span class="right"><a class="codrops-icon codrops-icon-drop" href="http://tympanus.net/codrops/?p=15139"><span>Back to the Codrops Article</span></a></span>
</div> -->
<script src="js/modernizr.custom.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/sw.js').then(function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
// registration failed :(
console.log('ServiceWorker registration failed: ', err);
});
});
}
</script>
<script>
document.querySelector('.container').style.display = 'none';
document.querySelector('.loader').style.display = 'none';
setTimeout(() => {
document.querySelector('.frame').style.display = 'none';
document.querySelector('.container').style.display = 'block';
}, 3800);
</script>
<script src="js/nlform.js"></script>
<script src="./js/custom.js"></script>
<script>
var nlform = new NLForm( document.getElementById( 'nl-form' ) );
</script>
</body>
</html>