-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
166 lines (134 loc) · 7.8 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tell Me More</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<meta name="Explore topics for a set of texts using d3 Sunburst and python Topic Modeling" content="">
<meta name="David Richards" content="">
<link rel="icon" type="image/png" href="Logos/chat.png">
<link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="Libraries/bootstrap-css/bootstrap.min.css">
<link rel="stylesheet" href="Libraries/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="style.css">
<script src="Libraries/d3/d3.v4.min.js"></script>
<script src="Libraries/mark/mark.min.js"></script>
<!-- local: Libraries/d3bootstrap-js4.js | cdn: https://d3js.org/d3.v4.min.js -->
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please
<a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="container" style="margin: 2%">
<div class="row">
<!-- Sunburst Column w/ 3 rows: Title, Sunburst, User Controls -->
<div class="col-md-6">
<div class="row"> <!-- Title -->
<div class="col-md-12 text-center">
<a href='javascript:void(0);' onclick='welcomeToggle();'>
<img class="titleImage" src="Logos/chat.png"/></a> 
<span class="align-top h1">Tell Me More</span><span class="align-top pull-right">(Proof of Concept)</span>
</div>
</div>
<div class="row"> <!-- Title -->
<div class="col-md-12" id="welcomeMessage">
<h4>Welcome! <b>Tell Me More</b> is about simple topic exploration.</h4>
Things you can do:
<ul>
<li>Click a sunburst slice to see related texts. Click again to deselect.</li>
<li>Choose a new topic or topic date using the button group below the sunburst.</li>
<li>View with <b>Chrome</b> browser.</li>
</ul>
<div class="card bs-callout" id="card_help">
<div class="cardTime">8:00</div>
<a href="" target="_blank">
<img src="Logos/chat.png" class="cardImage"></a>
<div class="cardTitle h4">
<a href="javascript:void(0);" onclick="cardToggle('help')">Help Instructions</a>
</div>
<a href="javascript:void(0);" onclick="cardToggle('help')">
<i class="fa fa-minus-square-o fa-lg cardToggle"></i></a>
<div class="cardText" id="text_help">
Each card includes: <b>Sentiment</b> on the left (<span style="color: #5cb85c;">green</span>=positive;
<span style="color: #d9534f;">red</span>=negative; <span
style="color: lightgray;">gray</span>=indeterminate). <b>Post time</b> in the upper
left. Click the <b>Title</b>, upper right, to expand/contract the card. The text highlights
the topic selected and alternative verbatims.
</div>
</div>
Ideas, question? Email me. —<i>David Richards</i></p>
</div>
</div>
<div class="row"> <!-- Overlay Controls & Sunburst -->
<div class="col-md-12" id="svg_container"> <!-- Overlay Controls -->
<a href='javascript:void(0);' onclick='welcomeToggle();'>
<i class="fa fa-question-circle fa-lg" id="svgHelp"></i>
</a>
<a href='javascript:void(0);' onclick='searchToggle();'>
<i class="fa fa-search fa-lg" id="svgSearch" style="display: none"></i>
</a>
<span id="svgTop7"><label>Show Top 7
<input type="checkbox" name="topTopicsSelect" value="top7" id="top7" checked></label>
</span>
<svg> <!-- Sunburst -->
<text x="50%" y="44%" id="corpusCount" class="h6"></text>
<text x="50%" y="48%" id="corpusName" class="h4"></text>
<text x="50%" y="52%" id="corpusDate" class="h6"></text>
<text x="50%" y="55%" id="corpusAsOf" class="h6"></text>
</svg>
</div>
</div>
<div class="row"> <!-- User Controls: NEW & IMPROVED!? -->
<div class="col-md-12 text-center">
<br> <br>
<div class="btn-group" role="group" aria-label="...">
<div class="btn btn-default corpGrps" role="group" id="corpGrp0">corpGrp0</div>
<div class="btn btn-default corpGrps" role="group" id="corpGrp1">corpGrp1</div>
<div class="btn btn-default corpGrps" role="group" id="corpGrp2">corpGrp2</div>
<div class="btn btn-default corpGrps" role="group" id="corpGrp3">corpGrp3</div>
</div>
<br> <br>
<label id="corpDtl0" class="corpDtl">
<input type="radio" name="corpDtl" value="corpDtl0" checked> <span>corpDtl0</span></label>
<label id="corpDtl1" class="corpDtl">
<input type="radio" name="corpDtl" value="corpDtl1"> <span>corpDtl1</span></label>
<label id="corpDtl2" class="corpDtl">
<input type="radio" name="corpDtl" value="corpDtl2"> <span>corpDtl2</span></label>
<label id="corpDtl3" class="corpDtl">
<input type="radio" name="corpDtl" value="corpDtl3"> <span>corpDtl3</span></label>
<label id="corpDtl4" class="corpDtl">
<input type="radio" name="corpDtl" value="corpDtl4"> <span>corpDtl4</span></label>
<label id="corpDtl5" class="corpDtl">
<input type="radio" name="corpDtl" value="corpDtl5"> <span>corpDtl5</span></label>
<label id="corpDtl6" class="corpDtl">
<input type="radio" name="corpDtl" value="corpDtl6"> <span>corpDtl6</span></label>
<br> <br>
</div>
</div>
</div>
<!-- Texts Column w/ 2 rows: Topic, Texts -->
<div class="col-md-6">
<div class="row"> <!-- Topic -->
<div class="col-xs-10"> <!-- Topic Titles -->
<span class="h3" id="topicName"></span>
<span class="h5" id="topicDetails"></span></div>
<div class="col-xs-2"> <!-- Topic Controls -->
<a href='javascript:void(0);' onclick='cardToggleAll(true)'>
<i class="fa fa-minus-square-o fa-2x cardsToggleAll"></i>
</a>
<a href='javascript:void(0);' onclick='cardToggleAll(false)'>
<i class="fa fa-plus-square-o fa-2x cardsToggleAll"></i>
</a>
</div>
</div>
<div class="row"> <!-- Texts -->
<div id="sidebar" class="col-md-12 text-right">
</div>
</div>
</div>
</div>
</div>
<script src="topicSunburst.js"></script>
</body>
</html>