-
Notifications
You must be signed in to change notification settings - Fork 11
/
test.html
89 lines (69 loc) · 1.68 KB
/
test.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
fiugefgiuwfiugefur3iug 3riuruigaXIYGLuikjgruhjrjgr3jkefhef2hfiho43ho848y9ihuef2hiuef2hf4g
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 0%; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: 0px;
padding: 100%;
border: 0px solid #888;
width: 100%;
}
/* The Close Button */
.close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
</style>
</head>
<body>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div id="cloaking-device"
style="background-color: blue; width: 100%;"><div
class="cornerdiv" style="height: 100%;"></div>
</div>
</div>
</div>
<script>
var modal = document.getElementById("myModal");
// function to change title when focusing on tab
function imgOFF() {
modal.style.display = "none"; // Hide
}
// function to change title when un-focusing on tab
function imgON() {
modal.style.display = "block";
}
// bind functions to blur and focus events
window.onblur = imgON;
window.onfocus = imgOFF;
</script>