Skip to content

Commit 8467679

Browse files
committed
Block page part 1
1 parent fae754d commit 8467679

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

block.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Access to the site is limited</title>
7+
<link href="style/settings.css" rel="stylesheet" />
8+
</head>
9+
10+
<body>
11+
<div class="content">
12+
Limit for this site
13+
</div>
14+
</body>
15+
16+
</html>

scripts/webact.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ document.addEventListener('DOMContentLoaded', function () {
2727
getDataFromStorageByDays();
2828
});
2929
document.getElementById('settings').addEventListener('click', function () {
30-
if (chrome.runtime.openOptionsPage) {
31-
chrome.runtime.openOptionsPage();
32-
} else {
33-
window.open(chrome.runtime.getURL('options.html'));
34-
}
30+
chrome.tabs.create({ url: chrome.runtime.getURL("block.html") })
31+
32+
// if (chrome.runtime.openOptionsPage) {
33+
// chrome.runtime.openOptionsPage();
34+
// } else {
35+
// window.open(chrome.runtime.getURL('block.html'));
36+
// }
3537
});
3638
});
3739

style/webact.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ a{
9494
display: inline-block;
9595
font-size: 12px;
9696
font-weight: 600;
97-
margin: 4px 2px;
97+
margin: 4px 7px;
9898
transition-duration: 0.4s;
9999
cursor: pointer;
100100
text-decoration: none;
101101
text-transform: uppercase;
102102

103103
border-bottom: 2px solid rgb(184, 179, 179);
104104
background: transparent;
105-
width: 21%;
105+
width: 19%;
106106
}
107107

108108
a:hover {

0 commit comments

Comments
 (0)