File size: 8,358 Bytes
bc354b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
  <!DOCTYPE html>
  <html lang="en" dir="ltr">
    <head>
      <title>Heart Disease Prediction</title>
      <meta charset="utf-8">
      <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
      integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
      <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/Style.css')}}">

      <style>
          body{
              #background: #4d0026;
              background: linear-gradient(to left, #667292 0%, #a2b9bc 100%);
          }

          footer a{
            color: #fff;
          }
          footer a:hover{
            color: #fff;
          }
          .centerdiv{
            height: 15vh;
            display: flex;
            #justify-content: center;
            align-items: center;
          }
          .centerdiv a{
            height: 30px;
            width: 30px;
            background-color: #f5f6fa;
            border-radius: 50px;
            text-align: center;
            margin: 5px;
            line-height: 30px;
            #box-shadow: 1px 4px 2px 2px #dcdde1;
            position: relative;
            overflow: hidden;
          }
          .centerdiv a i{
            transition: all 0.3s linear;
          }
          .centerdiv a:hover i{
            transform: scale(1.5);
            color: #f5f6fa;
          }
          .centerdiv a:before{
            content: "";
            width: 120%; height: 120%;
            position: absolute;
            top: 90%; left: -50%;
            background-color: #00a8ff;
            transform: rotate(60deg);
          }

          .centerdiv a:hover:before{
            animation: socialicons 0.8s 1;
            animation-fill-mode: forwards;
          }
          @keyframes socialicons {

            0%{ top: 90%; left: -50%;}
            50%{ top: -60%; left: -10%;}
            100%{ top: -10%; left: -10%}
          }

          .fa-facebook-f{
            color: #e84393;
          }
          .fa-instagram{
            color: #e84393;
          }
          .fa-github{
            color: #e84118;
          }
          .fa-linkedin{
            color: #0097e6;
          }
          .fa-twitter{
            color: #0097e6;
          }
      </style>

    </head>

    <body>

      <h1>
        <div style ="text-align:center">
          <font color='white'>
            Heart Disease Prediction
          </font>
        </div>
      </h1>
      <br>


     <div class="wrapper">
       <div class="container my-5">
         <div class="row">
           <div class="col-md-10 col-sm-6 mx-auto">
             <form class="" action="/predict" method="post">

               <div class="form-group">
                 <input type="number" name="age" id="age" class="form-control" required>
                 <label for="age" class="ph-area">Enter Your Age</label>
               </div>

               <div class="form-group">
                 <select class="form-control" name="sex" required="required">
                   <option value="" selected>Select Gender</option>
                   <option value="1">Male</option>
                   <option value="0">Female</option>
                 </select>
               </div>

               <div class="form-group">
                 <select class="form-control chosenn" name="cp" required="required">
                   <option value="" selected>Select Chest Pain Type(cp)</option>
                   <option value="0">Typical Angina</option>
                   <option value="1">Atypical Angina</option>
                   <option value="2">Non Anginal Pain</option>
                   <option value="3">Asymptomatic</option>
                 </select>
               </div>

               <div class="form-group">
                 <input type="number" name="trestbps" id="trestbps" class="form-control" required>
                 <label for="trestbps" class="ph-area">Enter Resting Blood Pressure (mm Hg)(trestbps)</label>
               </div>

               <div class="form-group">
                 <input type="number" name="chol" id="chol" class="form-control" required>
                 <label for="chol" class="ph-area">Enter Serum Cholestoral (mg/dl)(chol)</label>
               </div>

               <div class="form-group">
                 <select class="form-control" name="fbs" required="required">
                   <option value="" selected>Fasting Blood Sugar > 120 (mg/dl)(fbs)</option>
                   <option value="1">Yes</option>
                   <option value="0">No</option>
                 </select>
               </div>


               <div class="form-group">
                 <select class="form-control chosenn" name="restecg" required="required">
                   <option value="" selected>Rresting Electrocardiographic Results(restecg)</option>
                   <option value="0">Normal</option>
                   <option value="1">Abnormal</option>
                   <option value="2">Probable</option>
                 </select>
               </div>

               <div class="form-group">
                 <input type="number" name="thalach" id="thalach" class="form-control" required>
                 <label for="thalach" class="ph-area">Enter Maximum Heart Rate Achieved (thalach)</label>
               </div>

               <div class="form-group">
                 <select class="form-control" name="exang" required="required">
                   <option value="" selected>Select Exercise Induced Angina (exang)</option>
                   <option value="1">Yes</option>
                   <option value="0">No</option>
                 </select>
               </div>

               <div class="form-group">
                 <input type="text" name="oldpeak" id="oldpeak" class="form-control" required>
                 <label for="oldpeak" class="ph-area">Enter Your Oldpeak(oldpeak)</label>
               </div>

               <div class="form-group">
                 <select class="form-control chosenn" name="slope" required="required">
                   <option value="" selected>Select Peak Exercise ST Segment (Slope)</option>
                   <option value="0">Upsloping</option>
                   <option value="1">Flat</option>
                   <option value="2">Downsloping</option>
                 </select>
               </div>

               <div class="form-group">
                 <select class="form-control chosenn" name="ca" required="required">
                   <option value="" selected>Number of Major Vessels (ca)</option>
                   <option value="0">Zero</option>
                   <option value="1">One</option>
                   <option value="2">Two</option>
                   <option value="3">Three</option>
                   <option value="4">Four</option>
                 </select>
               </div>

               <div class="form-group">
                 <select class="form-control chosenn" name="thal" required="required">
                   <option value="" selected>Select Thal Type (thal)</option>
                   <option value="0">Normal</option>
                   <option value="1">Fixed</option>
                   <option value="2">Defect</option>
                   <option value="3">Reversable</option>
                 </select>
               </div>

             <div class="form-group">
               <input type="submit" class="btn btn-primary" value="Submit">
               <input type="reset" class="btn btn-danger" value="Reset">
             </div>
           </form>
           </div>
         </div>
       </div>
     </div>


     <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
     integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
     integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
     <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
     integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
    </body>

  </html>