-
Notifications
You must be signed in to change notification settings - Fork 0
/
as03.html
executable file
·56 lines (46 loc) · 2.13 KB
/
as03.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSE422/as03</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<link rel="stylesheet" href="../../assets/themes/stackoverflow-dark.min.css">
<link rel="stylesheet" href="../../assets/style.css">
</head>
<body>
<div class="title">
<h2>Lab Assignment-03</h2>
</div>
<iframe src="https://docs.google.com/viewer?url=https://eniac00.github.io/bracu/CSE422/as03/as03_ques.pdf&embedded=true" ></iframe>
<div>
<h4>Code <a href="https://github.com/eniac00/bracu/tree/main/CSE422/as03">repo</a></h4>
</div>
<div class="button-container">
<button type="button" class="btn btn-primary" onclick="loadFile('alphabeta')">alphabeta</button>
</div>
<div id="sub-title"></div>
<div id="code-wrapper"></div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>
<script src="../../assets/highlight.min.js"></script>
<script>
function loadFile(button_name) {
document.getElementById('sub-title').innerHTML = "";
document.getElementById('sub-title').innerHTML = `${button_name}`;
fetch(`./${button_name}.py`)
.then(function(response) {
return response.text();
})
.then(function(data) {
document.getElementById('code-wrapper').innerHTML = "";
document.getElementById('code-wrapper').innerHTML = `<pre><code class='language-python'>${data}</code></pre>`;
hljs.highlightAll();
})
.catch(function(error) {
console.log(error);
});
}
</script>
</body>
</html>