-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (75 loc) · 3.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BugSynth Research Demo</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
body,
html {
height: 100%;
font-family: 'Helvetica Neue', Arial, sans-serif;
}
body {
display: flex;
flex-direction: column;
justify-content: space-between;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
// Function to fetch and load content from external files
async function loadPage(route) {
try {
const response = await fetch(`page/${route}.html`);
if (response.ok) {
const html = await response.text();
document.getElementById('content').innerHTML += html;
if (route == 'demo') {
showCodeExample(1);
}
} else {
document.getElementById('content').innerHTML = '<p>Error loading page.</p>';
}
} catch (error) {
document.getElementById('content').innerHTML = '<p>Error loading page.</p>';
}
}
// Load each files in order
(async () => {
await loadPage('about');
await loadPage('demo');
await loadPage('people');
await loadPage('paper');
})()
});
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/xcode.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/go.min.js"></script>
<script>hljs.highlightAll();</script>
<script src="page/demo.js"></script>
</head>
<body class="bg-white text-black h-full">
<header class="bg-gray-800 text-white p-4 text-center">
<h1 class="text-5xl font-bold mb-5">BugSynth</h1>
<h3 class="mt-2 text-xl md:text-2xl">Automatic Synthesis of Realistic and Reliable Bug Benchmark</h3>
</header>
<nav class="flex justify-center space-x-6 mt-4 text-xl font-bold bg-gray-200">
<a href="#about" data-route="about" class="hover:text-gray-400">About</a>
<a href="#demo" data-route="demo" class="hover:text-gray-400">Demo</a>
<a href="#people" data-route="people" class="hover:text-gray-400">People</a>
<a href="#paper" data-route="paper" class="hover:text-gray-400">Paper</a>
</nav>
<main id="content" class="flex flex-col items-center p-4 flex-grow w-full">
<!-- Content will be dynamically injected here -->
</main>
<footer class="bg-gray-800 text-white p-4 text-center">
<p>Bugsynth maintained by <a class="font-bold underline" href=https://prosys.kaist.ac.kr>Programming system Lab
@
KAIST</a></p>
</footer>
</body>
</html>