Loading web/index.html +7 −8 Original line number Diff line number Diff line <!DOCTYPE html> <meta charset="utf-8"> <html> <style> textarea[name="message"] { width: 80%; height: 20%; resize: none; } </style> <!-- Title --> <title>Spam Hunter</title> Loading @@ -17,9 +10,15 @@ <div id="interactivity" class="jumbotron"> <!-- User interactivity portion --> <h3>Type your message here:</h3> <textarea name="message"></textarea> <textarea id='message' style="width: 80%; height: 20%; resize: none;"></textarea> <p>Is it spam or ham? <button onclick="getPrediction()">Find out!</button> </p> <p id="prediction"></p> <p>Is this prediction correct?</p> <button id="report_ham">This is actually a ham!</button> <button id="report_spam">This is actually a spam!</button> <button id="clear" onclick="clearIndex()">Clear</button> </div> <br> <!-- List used in spam --> Loading web/js/main.js +4 −0 Original line number Diff line number Diff line Loading @@ -112,3 +112,7 @@ function initializeIndex() { getTopFiveAlgorithms(); getTopFiveWords(); } function clearIndex() { document.getElementById("message").value = ""; } No newline at end of file Loading
web/index.html +7 −8 Original line number Diff line number Diff line <!DOCTYPE html> <meta charset="utf-8"> <html> <style> textarea[name="message"] { width: 80%; height: 20%; resize: none; } </style> <!-- Title --> <title>Spam Hunter</title> Loading @@ -17,9 +10,15 @@ <div id="interactivity" class="jumbotron"> <!-- User interactivity portion --> <h3>Type your message here:</h3> <textarea name="message"></textarea> <textarea id='message' style="width: 80%; height: 20%; resize: none;"></textarea> <p>Is it spam or ham? <button onclick="getPrediction()">Find out!</button> </p> <p id="prediction"></p> <p>Is this prediction correct?</p> <button id="report_ham">This is actually a ham!</button> <button id="report_spam">This is actually a spam!</button> <button id="clear" onclick="clearIndex()">Clear</button> </div> <br> <!-- List used in spam --> Loading
web/js/main.js +4 −0 Original line number Diff line number Diff line Loading @@ -112,3 +112,7 @@ function initializeIndex() { getTopFiveAlgorithms(); getTopFiveWords(); } function clearIndex() { document.getElementById("message").value = ""; } No newline at end of file