-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (36 loc) · 1.42 KB
/
index.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
<html>
<head>
<title>Is Africa Equal Yet?</title>
<link rel="stylesheet" href="./assets/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script async src="https://analytics.umami.is/script.js" data-website-id="5a5dc4af-8263-40a3-9630-ddcb3f89638e"></script>
</head>
<body class='sea'>
<menu id="controls">
South Africa and Cape Verde are the <b>only</b>
two countries on the African continent which
legally recognizes same-sex unions. See <a href="http://en.wikipedia.org/wiki/LGBT_rights_in_Africa">Wikipedia</a> more
information.
</menu>
<object id="africasvg" data="./assets/img/africa.svg" type="image/svg+xml">
</object>
<object id="capeverde" data="./assets/img/cv.svg" type="image/svg+xml">
</object>
</body>
<script>
window.onload = function(){
africasvg = document.getElementById('africasvg');
africasvgDoc = africasvg.contentDocument;
nations = africasvgDoc.getElementsByTagName('path');
//console.log(nations);
for (i=0;i<50;i++){
//console.log(nations[i].id);
if (nations[i].id === 'ZA'){
nations[i].style.fill = '#499F68';
}
else
nations[i].style.fill= '#B74F6F';
}
}
</script>
</html>