-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (36 loc) · 1.46 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
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
</head>
</script>
<body>
<h1>Bechdel Test Visualization</h1>
<p>Click through the steps to see the narrative visualization.</p>
<input type="radio", onclick="showPages(1)" id="button1" name="viz_selection" value="button1">
<label for="button1">1</label>
<input type="radio", onclick="showPages(2)" id="button2" name="viz_selection" value="button2">
<label for="button2">2</label>
<input type="radio", onclick="showPages(3)" id="button3" name="viz_selection" value="button3">
<label for="button3">3</label>
<input type="radio", onclick="showPages(4)" id="button4" name="viz_selection" value="button4">
<label for="button4">4</label><br>
<iframe style="width: 80%; height: 1100px; display: none;" src="intro.html"; id="page1"></iframe>
<iframe style="width: 100%; height: 1100px; display: none;" src="piechart.html"; id="page2"></iframe>
<iframe style="width: 100%; height: 1100px; display: none;" src="barchart.html"; id="page3"></iframe>
<iframe style="width: 100%; height: 1100px; display: none;" src="bubblechart.html"; id="page4"></iframe>
<script>
function showPages(id){
var totalNumberOfPages = 5;
for(var i=1; i<=totalNumberOfPages; i++){
if (document.getElementById('page'+i)) {
document.getElementById('page'+i).style.display='none';
}
}
if (document.getElementById('page'+id)) {
document.getElementById('page'+id).style.display='block';
}
};
showPages(1);
</script>
</body>
</html>