-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (83 loc) · 2.99 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SMS Spam Detector Tool</title>
<!-- Mobile Specific Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Jquery -->
<link rel="stylesheet" href="https://jqueryvalidation.org/files/demo/site-demos.css">
<!-- Main Style Css -->
<link rel="stylesheet" href="css/style.css"/>
</head>
<body class="form-v4">
<div class="page-content">
<div class="form-v4-content">
<div class="form-left">
<h2>ABOUT</h2>
<p class="text-1">This is a SMS Spam detector which uses the Machine Learning inside to classify the entered text as spam or not spam.</p>
<p class="text-2"><span>Made by:</span> This project is made by Utkarsh with the purpose of learning the Natural Language Processing and to deploy it. </p>
<div class="form-left-last">
<a href="http://utkarshkumar.com" target="_blank"> <input type="submit" name="account" class="account" value="VISIT WEBSITE"></a>
</div>
</div>
<form class="form-detail" action="result.html" method="POST" id="myform">
<h2>ENTER TEXT HERE</h2>
<div class="form-row">
<label for="your_text">TEXT FOR ANALYSIS</label>
<textarea name="text" id="your_email" class="input-text" rows="4" required autofocus></textarea>
</div>
<label for="password" style="color:black;">NOT A ROBOT..CONFIRM BELOW</label><br>
<div class="form-group">
<div class="form-row form-row-1 ">
<label for="password">SOME TEXT</label>
<input type="password" name="password" id="password" class="input-text" required>
</div>
<div class="form-row form-row-1">
<label for="comfirm-password">ENTER SAME TEXT</label>
<input type="password" name="comfirm_password" id="comfirm_password" class="input-text" required>
</div>
</div>
<div class="form-row-last">
<input type="submit" name="register" class="register" id="btn" value="ANALYZE">
</div>
</form>
</div>
</div>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/additional-methods.min.js"></script>
<script>
// just for the demos, avoids form submit
jQuery.validator.setDefaults({
debug: true,
success: function(label){
label.attr('id', 'valid');
},
});
$( "#myform" ).validate({
rules: {
password: "required",
comfirm_password: {
equalTo: "#password"
}
},
messages: {
password: {
required: "Please enter a text"
},
comfirm_password: {
required: "Please enter same text",
equalTo: "Text not matched"
}
}
});
</script>
<script>
$('#btn').click(function(){
$(this).html('ANALYZING ...');
$(this).attr('disabled', true);
});
</script>
</body>
</html>