-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotification.html
More file actions
94 lines (94 loc) · 2.54 KB
/
notification.html
File metadata and controls
94 lines (94 loc) · 2.54 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
<!DOCTYPE html>
<html>
<head>
<title>Alert Triggered!</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
}
.notification-container {
max-width: 600px;
margin: 0 auto;
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.alert-header {
color: #d32f2f;
font-size: 24px;
margin-bottom: 20px;
display: flex;
align-items: center;
}
.alert-details {
background-color: #fff3e0;
padding: 15px;
border-radius: 4px;
margin-bottom: 20px;
}
.alert-detail {
margin-bottom: 10px;
}
.alert-detail strong {
color: #333;
}
.timestamp {
color: #666;
font-size: 0.9em;
margin-top: 20px;
}
.action-buttons {
margin-top: 20px;
display: flex;
gap: 10px;
}
button {
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.view-btn {
background-color: #2196F3;
color: white;
}
.view-btn:hover {
background-color: #1976D2;
}
.close-btn {
background-color: #e0e0e0;
color: #333;
}
.close-btn:hover {
background-color: #bdbdbd;
}
</style>
</head>
<body>
<div class="notification-container">
<div class="alert-header">Alert Triggered!</div>
<div class="alert-details">
<div class="alert-detail">
<strong>Alert Name:</strong> <span id="alertName"></span>
</div>
<div class="alert-detail">
<strong>Target Word:</strong> <span id="targetWord"></span>
</div>
<div class="alert-detail">
<strong>URL:</strong> <span id="targetUrl"></span>
</div>
</div>
<div class="timestamp" id="timestamp"></div>
<div class="action-buttons">
<button class="view-btn" id="viewBtn">View Page</button>
<button class="close-btn" id="closeBtn">Close</button>
</div>
</div>
<script src="notification.js"></script>
</body>
</html>