-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.html
96 lines (78 loc) · 3.62 KB
/
view.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
90
91
92
93
94
95
96
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=500" />
<title>View Story</title>
<link rel="stylesheet" href="https://unpkg.com/higlass@1.0.1/dist/styles/hglib.css" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="./src/css/style.css">
<link rel="stylesheet" type="text/css" href="./src/css/viewStyle.css">
<script type="text/javascript"> (function() { var css = document.createElement('link'); css.href = 'https://use.fontawesome.com/releases/v5.1.0/css/all.css'; css.rel = 'stylesheet'; css.type = 'text/css'; document.getElementsByTagName('head')[0].appendChild(css); })(); </script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.6.2/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/15.6.2/react-dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.6.2/pixi.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-bootstrap/0.31.0/react-bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="./dist/view.js"></script>
</head>
<body>
<!-- Modal to enter JSON of existing report -->
<div class="modal fade" id="jsonModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Load report</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="userFile">Select your report's JSON file: </label>
<input type="file" id="userFile" accept='application/json,.json'>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary" id="submitJSON">Submit</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<a href="./index.html" ><i class="fas fa-home fa-3x"></i></a>
<div id="outer">
<div id="inner">
<button type="button" class="btn btn-primary" id="inputJSON"><i class="fa fa-file-alt" aria-hidden="true"></i> Load report</button>
</div>
</div>
<!-- Report -->
<div id="graphic">
<div id="scrollingText">
<!-- Text -->
<div id="sections"></div>
</div>
<!-- Media -->
<div id="media">
<div id="selSectionDiv">
<select class="custom-select mb-2 mr-sm-2 mb-sm-0" id="selSection">
<option value="choose" selected>Jump to...</option>
</select>
</div>
<div id="hg" class="hidden"></div> <!-- HiGlass -->
<div id="text"></div>
<div id="img"></div> <!-- Image -->
<div id="ytMedia"> <!-- Youtube Video -->
<iframe id='yt' width="560" height="315" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<div id="ytCaption" class='caption'></div>
</div>
<div id="vidMedia"> <!-- Video -->
<video id='vid' width="560" height="315" autoplay type="video/mp4"></video>
<div id="vidCaption" class='caption'></div>
</div>
</div>
</div>
</body>
</html>