-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpopup.html
113 lines (102 loc) · 2.93 KB
/
popup.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
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
110
111
112
113
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fake News Detection</title>
<link href="https://fonts.googleapis.com/css?family=Source Sans Pro" rel="stylesheet">
<link href="./css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.0/css/all.min.css">
<style>
body {
font-family: 'Source Sans Pro', sans-serif;
font-size: 16px;
line-height: 1.5;
margin: 0;
padding: 5px;
background: linear-gradient(to bottom, #2d3748, #23293c);
display: flex;
flex-direction: column;
align-items: space-around;
justify-content: center;
/* min-height: 500px; */
width: 400px;
}
.card-title {
font-size: 24px;
font-weight: bold;
margin: 0 0 20px;
color: #bb303c;
}
p {
margin: 0 0 10px;
color: #a9c1d6;
}
.btn-primary {
padding: 10px 20px;
background-color: #bb303c;
color: #eef7f9;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
font-weight: regular;
transition: background-color 0.3s;
}
.btn-primary:hover {
background-color: #2d3748;
}
.card {
border: none;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 15px;
border-radius: 8px;
background: linear-gradient(to right, #23293c, #23293c);
position: relative;
margin-bottom: 20px;
/* Add margin-bottom to create spacing */
}
/* Custom styling for prediction results */
#prediction-result {
display: none;
/* Hide the prediction result container by default */
position: relative;
/* center the container using relative positioning and not transform */
text-align: center;
/* Add margin-top to create spacing */
}
#result-text {
font-size: 20px;
font-weight: bold;
margin: 0 0 10px;
color: #bb303c;
}
#result-value {
font-size: 18px;
margin: 0;
color: #a9c1d6;
}
</style>
</head>
<body>
<div class="card">
<h1 class="card-title text-center">TruthTracker</h1>
<p class="card-text text-center">Verify the authenticity of the article you're reading with just one click.</p>
<div class="d-grid gap-2">
<button id="extract" class="btn btn-primary">
<span id="button-text">Extract article</span>
<span id="loading" class="spinner-border spinner-border-sm ms-2" role="status" aria-hidden="true"
style="display: none;"></span>
</button>
</div>
</div>
<!-- Prediction result container -->
<div class="card">
<div id="prediction-result" style="display: block;">
<p id="result-text">Prediction:</p>
<p id="result-value">Click on Extract!</p>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>