-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
109 lines (102 loc) · 2.9 KB
/
Copy pathindex.html
File metadata and controls
109 lines (102 loc) · 2.9 KB
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
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hate and toxic</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
h1 {
font-size: 20px;
}
button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
</style>
</head>
<body>
<!-- <h1>Hate and Toxic Text Detector</h1> -->
<!-- <h2>Hate Detection</h2>
<textarea id="text-input" rows="10" cols="50"></textarea>
<!-- <button id="detect-button">Detect Hate</button> -->
<!-- <p id="result"></p>
<button id="detectButton">Detect Toxicity</button>
<script src="popup.js"></script>
<!-- <script src="content.js"></script> -->
<!--
</body>
</html> -->
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hate and Toxic</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
h2 {
font-size: 20px;
}
button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
</style>
</head>
<body>
<h2>Hate Detection</h2>
<textarea id="text-input" rows="10" cols="50"></textarea>
<button id="detectButton">Detect Toxicity</button>
<p id="result"></p>
<script>
// JavaScript code for detecting toxicity
document.getElementById('detectButton').addEventListener('click', function() {
var text = document.getElementById('text-input').value;
// You can add your toxicity detection logic here
// For now, let's just display the result
document.getElementById('result').textContent = "Toxicity detection result: Not implemented yet";
});
</script>
</body>
</html> -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hate and Toxic</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
h2 {
font-size: 20px;
}
button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
</style>
<script src="popup.js" nonce="YOUR_NONCE_HERE"></script>
</head>
<body>
<h2>Hate Detection</h2>
<textarea id="text-input" rows="10" cols="50"></textarea>
<button id="detectButton">Detect Toxicity</button>
<p id="result"></p>
</body>
</html>