-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (26 loc) · 988 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="index.css">
<title>Is It AI Generator</title>
</head>
<body>
<div class="container">
<h1>Is It AI?</h1>
<label for="longAnswer">Enter your writing:</label>
<textarea id="longAnswer" rows="4" cols="50"></textarea><br>
<button id="generateButton">Generate AI Detection</button>
<p id="randomNumber"></p>
</div>
<script>
document.getElementById("generateButton").addEventListener("click", function() {
// Get the long answer from the text box
var longAnswer = document.getElementById("longAnswer").value;
// Generate a random number between 0 and 100
var randomNumber = Math.floor(Math.random() * 101);
// Display the random number
document.getElementById("randomNumber").textContent = "AI Percentage Written: " + randomNumber;
});
</script>
</body>
</html>