-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
38 lines (35 loc) · 1.08 KB
/
example.html
File metadata and controls
38 lines (35 loc) · 1.08 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
<!DOCTYPE html>
<html lang="en">
<style>
.rainbow{
display: flex;
justify-content: space-around;
}
</style>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="rainbow">
<img class="red" src="macos.svg"><img>
<img class="orange" src="macos.svg"><img>
<img class="yellow" src="macos.svg"><img>
<img class="green" src="macos.svg"><img>
<img class="blue" src="macos.svg"><img>
<img class="indigo" src="macos.svg"><img>
<img class="violet" src="macos.svg"><img>
</div>
<script src="svg-style.js"></script>
<script>
svgStyle("red","macos.svg","fill:red;")
svgStyle("orange","macos.svg","fill:#FF7F00;")
svgStyle("yellow","macos.svg", "fill:yellow;")
svgStyle("green","macos.svg","fill:rgb(0, 255, 0);")
svgStyle("blue","macos.svg","fill:#FF7F00;")
svgStyle("indigo","macos.svg","fill:indigo")
svgStyle("violet","macos.svg", "fill:yellow; filter:invert(80%)")
</script>
</body>
</html>