Commit cba08ae0 authored by Chris's avatar Chris
Browse files

ham

parent e73a2e7b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -16,7 +16,8 @@
            <!-- User interactivity portion -->
            <h3>Type your message here:</h3>
            <textarea name="message"></textarea>
            <p>Is it spam or ham? <button>Find out!</button> </p> 
            <p>Is it spam or ham? <button onclick="getPrediction()">Find out!</button> </p>
            <p id="prediction"></p>
        </div>
        <br>
        <!-- List used in spam -->
@@ -83,3 +84,6 @@

<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>

<!-- ML Script -->
<script src="js/main.js"></script>
 No newline at end of file

web/js/main.js

0 → 100644
+3 −0
Original line number Diff line number Diff line
function getPrediction() {
    document.getElementById("prediction").innerText = "ham"
}
 No newline at end of file