-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
110 lines (91 loc) · 3.84 KB
/
index.html
File metadata and controls
110 lines (91 loc) · 3.84 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Character Network Analysis of Shakespearean Texts</title>
<style>
/* Global Styles */
body {
font-family: 'Arial', sans-serif;
background-color: #f7f9fc;
margin: 40px;
color: #333;
}
a {
color: #0077cc;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
ul {
list-style-type: none;
}
/* Headers */
h1 {
background-color: #0077cc;
color: #fff;
padding: 15px;
border-radius: 5px;
text-align: center;
}
h2 {
border-left: 5px solid #0077cc;
padding-left: 15px;
margin-top: 20px;
font-size: 1.5em;
}
</style>
</head>
<body>
<h1>Character Network Analysis of Shakespearean Texts<br>Heejin Kim, Kyungpook National University</h1>
<h2>Heat Map Analysis with Onstage Character Traits</h2>
<ul id="fileListOuputOnstageHeatMmap"></ul>
<h2>Character Network Analysis with Onstage Character Traits: Two Clusters</h2>
<ul id="fileListOutputOnstageKmeans"></ul>
<h2>Character Network Analysis with Onstage Character Traits: Community Detection</h2>
<ul id="fileListOutputOnstageCommunity"></ul>
<h2>Heat Map Analysis with the Amount of Words Exchanged between Characters</h2>
<ul id="fileListHeatmaps"></ul>
<h2>Character Network Analysis with the Amount of Words Exchanged between Characters: Two Clusters</h2>
<ul id="fileListOutputKmeans"></ul>
<h2>Character Network Analysis with the Amount of Words Exchanged between Characters: Community Detection</h2>
<ul id="fileListCommunityDetection"></ul>
<h2>Character Network Analysis with Words Exchanged between Character: Deep Learning</h2>
<ul id="fileListDeepClustering"></ul>
<h2>Various Cemtrality Metrics</h2>
<ul id="fileListCentralityMetics"></ul>
<h2>Bar Plot Soliloquies Analysis</h2>
<ul id="fileListBarPlotSoliloquies">
<li><a href="bar_plot_soliloquies.html">Bar Plot Soliloquies Analysis</a></li>
</ul>
<script>
async function fetchHtmlFilesInDirectory(directory, listElementId) {
const repoName = 'Character-Network-Analysis';
const userName = 'hkim1596';
const url = `https://api.github.com/repos/${userName}/${repoName}/git/trees/main?recursive=1`;
const response = await fetch(url);
const data = await response.json();
const htmlFiles = data.tree.filter(item => item.path.startsWith(directory) && item.path.endsWith('.html'));
const fileListElement = document.getElementById(listElementId);
htmlFiles.forEach(file => {
const liElement = document.createElement('li');
const aElement = document.createElement('a');
aElement.href = file.path;
aElement.innerText = file.path.split('/').pop();
liElement.appendChild(aElement);
fileListElement.appendChild(liElement);
});
}
fetchHtmlFilesInDirectory('output_onstage_heatmap', 'fileListOuputOnstageHeatMmap');
fetchHtmlFilesInDirectory('output_onstage_kmeans', 'fileListOutputOnstageKmeans');
fetchHtmlFilesInDirectory('output_onstage_community', 'fileListOutputOnstageCommunity');
fetchHtmlFilesInDirectory('output_exchange_heatmap', 'fileListHeatmaps');
fetchHtmlFilesInDirectory('output_exchange_kmeans', 'fileListOutputKmeans');
fetchHtmlFilesInDirectory('output_exchange_community', 'fileListCommunityDetection');
fetchHtmlFilesInDirectory('output_deep_clustering_community', 'fileListDeepClustering');
fetchHtmlFilesInDirectory('output_centrality_bar_graphs', 'fileListCentralityMetics');
</script>
</body>
</html>