-
Notifications
You must be signed in to change notification settings - Fork 1
/
chord.html
127 lines (118 loc) · 5.18 KB
/
chord.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>CORIANDER - Keywords</title>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<!-- Load d3.js -->
<script src="https://d3js.org/d3.v3.js"></script>
<!-- load source file with data for display; main script is loaded at bottom -->
<script src="Sources/courseRegistryData/dataMat.js"></script>
<!-- fonts and stylesheets for layout -->
<link href="https://fonts.googleapis.com/css?family=Montserrat|Montserrat+Alternates&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="Styling/style.css">
</head>
<body>
<div id="bodycontent">
<!-- HEADER -->
<div class="header">
<h1 id="coriander">CORIANDER</h1>
<div id="logowrapper">
<img id="coriander-logo"
src="Logo/coriander-logo.svg"
alt="A coriander leaf is our logo" />
</div>
<p>
<span class="h-font">CO</span>urse <span class="h-font">R</span>eg<span class="h-font">I</span>stry st<span class="h-font">A</span>tistics a<span class="h-font">N</span>d a<span class="h-font">D</span>ditional mat<span class="h-font">ER</span>ial
</p>
</div>
<!-- PLOT & CONTROLS-->
<div data-num="0">
<p>
Explore how keywords co-occur with each other in the chord diagram. Select keywords and click on 'Redraw with Selection' for customisation. The slider sets the number of most frequent connections to display. A fading arc end indicates the connection is not in the counterpart's top x. Click on <a href="index.html">Courses</a> to explore those. To know more go to <a href="https://github.com/bellerophons-pegasus/CORIANDER">GitHub for the full README</a>.
</p>
<noscript><p>This page will not work without JavaScript, in order to display the plots, course information and additional literature. You currently are either using a browser not supporting JavaScript or have deactivated it.</p></noscript>
<!-- A few control elements to customise the graph -->
<div class="control-row">
<button id="draw-diagram">Redraw with Selection</button>
<div id="slidercontainer" class="topx">
<p>Show only top <span id="slidertopx"></span> connections</p>
<input type="range" min="1" max="10" step="1" value="5" class="slider myRange" id="topxRange">
</div>
<div id="checkboxcontainer">
<label class="checkcontainer">Show all connections <br><span id="all-warning">(might slow browser)</span>
<input type="checkbox" id="allConnex" onclick="allConnexFunc()"></input>
<span class="checkmark"></span>
</label>
</div>
<div class="link-switch">
<a href="index.html" class="left-link other-page">Courses</a><a href="chord.html" class="right-link current-page">Keywords</a>
</div>
<div id="nomatchoc"></div>
</div>
<!-- The main graph with keywords for selection-->
<div id="graphwrapper">
<form name="keywords" id="keyword-selector">
<div id="disciplines-keys">
<h4>Disciplines</h4>
<label class="checkcontainer">all
<input type="checkbox" id="allDisciplines" onclick="toggleDisc(this, 'disciplines')"></input>
<span class="checkmark"></span>
</label>
<div id="disciplines-keys-wrapper"></div>
</div>
<div id="objects-keys">
<h4>Objects</h4>
<label class="checkcontainer">all
<input type="checkbox" id="allObjects" onclick="toggleDisc(this, 'objects')"></input>
<span class="checkmark"></span>
</label>
<div id="objects-keys-wrapper"></div>
</div>
<div id="techniques-keys">
<h4>Techniques</h4>
<label class="checkcontainer">all
<input type="checkbox" id="allTechniques" onclick="toggleDisc(this, 'techniques')"></input>
<span class="checkmark"></span>
</label>
<div id="techniques-keys-wrapper"></div>
</div>
</form>
<div id="chordgraph"></div>
</div>
</div>
<!-- FOOTER -->
<div class="footer">
<div id="footer-img">
<img id="coriander-logo-footer" src="Logo/coriander-logo.svg" alt="A coriander leaf is our logo" />
</div>
<div id="license-gh">
<a href="https://github.com/bellerophons-pegasus/CORIANDER/blob/master/LICENSE">MIT License</a>
<br>
<a href="https://github.com/bellerophons-pegasus/CORIANDER"><i class="fa fa-github"></i></a>
</div>
<div id="link-cr">
<a href="https://dhcr.clarin-dariah.eu/"><img src="https://dhcr.clarin-dariah.eu/img/logo-300.png" alt="Link to Course Registry"></a>
</div>
</div>
</div>
<!-- The script that pulls everything together -->
<script src="scriptChord.js"></script>
<!-- A small script for the logo resizing -->
<script>
// Further functionality; e.g. for layout
// When the user scrolls down 90px from the top of the document, resize the logo
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 65 || document.documentElement.scrollTop > 65) {
document.getElementById("logowrapper").style.width = "50px";
document.getElementById("coriander-logo").style.width = "50px";
} else {
document.getElementById("logowrapper").style.width = "100px";
document.getElementById("coriander-logo").style.width = "100px";
}
};
</script>
</body>
</html>