-
Notifications
You must be signed in to change notification settings - Fork 0
/
vis2.html
58 lines (51 loc) · 1.27 KB
/
vis2.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
<!DOCTYPE html>
<html>
<head>
<title>Q.2</title>
<link rel="stylesheet" type="text/css" href="vis.css">
<a href="vis3.html">NEXT</a>
<a href="vis1.html">PREVIOUS</a>
</head>
<style>
.image{
height:300px;
width:300px;
position:absolute;
left:100px;
top:200px;
}
.c{
height:400px;
width:550px;
background-color:#1A5276;
position:absolute;
right:50px;
top:100px;
color:red;
padding: 10px;
border: 5px solid black;
margin: 0;
font-size:20px;
}
</style>
<body>
<div id="uni">
<h2 id="que">Are the squares inside the blue and yellow squares all the same color?</h2>
<div id="quediv"> </br> </br>
</h3></div>
<div id="b" style="display:none;" class="c"><h2>Bezold Effect</h2> </br>
The smaller squares inside the blue and yellow squares are all the same color.</br>
They seem different (magenta and orange) because a color is perceived differently </br>
depending on its relation to adjacent colors </br>
(here blue or yellow depending on the outer square).</br>
</div>
<div id="uni">
<img src="assets/ColorIllusion.jpg" class="image">
<button input type="button" onclick="myFunction()" id="demo">ANALYSIS</button>
<script>
function myFunction(){
document.getElementById('b').style.display="block";
}
</script>
</body>
</html>