forked from dillonkearns/mobster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblocker.html
More file actions
31 lines (31 loc) · 773 Bytes
/
blocker.html
File metadata and controls
31 lines (31 loc) · 773 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Mobster</title>
<style>
body {
background-color: #222222;
color: white;
}
.transparent {
opacity: .08 !important;
background-color: rgba(150, 150, 150, 0.38);
}
</style>
<script type="text/javascript">
const $ = (jQuery = require('jquery'))
const { ipcRenderer } = require('electron')
ipcRenderer.on('transparent-hover-start', function(event) {
console.log('transparent-hover-start received')
$('body').addClass('transparent')
})
ipcRenderer.on('transparent-hover-stop', function(event) {
console.log('transparent-hover-stop received')
$('body').removeClass('transparent')
})
</script>
</head>
<body>
</body>
</html>