Skip to content

Commit

Permalink
422 done
Browse files Browse the repository at this point in the history
  • Loading branch information
eniac00 committed May 20, 2024
1 parent 42accef commit 4971793
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 8 deletions.
7 changes: 3 additions & 4 deletions CSE422/as01/as01.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
<h2>Lab Assignment-01</h2>
</div>

<iframe src="https://docs.google.com/viewer?url=https://eniac00.github.io/bracu/CSE422/lab01/as01_ques.pdf&embedded=true" ></iframe>
<iframe src="https://docs.google.com/viewer?url=https://eniac00.github.io/bracu/CSE422/as01/as01_ques.pdf&embedded=true" ></iframe>

<div>
<h4>Code <a href="https://github.com/eniac00/bracu/tree/main/CSE423/lab01">repo</a></h4>
<h4>Code <a href="https://github.com/eniac00/bracu/tree/main/CSE422/as01">repo</a></h4>
</div>

<div class="button-container">
<button type="button" class="btn btn-primary" onclick="loadFile('task_1')">task-1</button>
<button type="button" class="btn btn-primary" onclick="loadFile('task_2')">task-2</button>
<button type="button" class="btn btn-primary" onclick="loadFile('astar')">astar</button>
</div>

<div id="sub-title"></div>
Expand Down
56 changes: 56 additions & 0 deletions CSE422/as02/as02.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,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/as02</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-02</h2>
</div>

<iframe src="https://docs.google.com/viewer?url=https://eniac00.github.io/bracu/CSE422/as02/as02_ques.pdf&embedded=true" ></iframe>

<div>
<h4>Code <a href="https://github.com/eniac00/bracu/tree/main/CSE422/as02">repo</a></h4>
</div>

<div class="button-container">
<button type="button" class="btn btn-primary" onclick="loadFile('genetic')">genetic</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>
56 changes: 56 additions & 0 deletions CSE422/as03/as03.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,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>
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ <h2 class="accordion-header" id="headingEight">
<div id="collapseEight" class="accordion-collapse collapse" aria-labelledby="headingEight" data-bs-parent="#accordionExample">
<div class="accordion-body">
<div class="container btn-group-vertical">
<a class="btn btn-info mt-2" href="" role="button">Assignment 1</a>
<a class="btn btn-info mt-2" href="" role="button">Assignment 2</a>
<a class="btn btn-info mt-2" href="" role="button">Assignment 3</a>
<a class="btn btn-info mt-2" href="" role="button">Final Project</a>
<a class="btn btn-info mt-2" href="./CSE422/as01/as01.html" role="button">Assignment 1</a>
<a class="btn btn-info mt-2" href="./CSE422/as02/as02.html" role="button">Assignment 2</a>
<a class="btn btn-info mt-2" href="./CSE422/as03/as03.html" role="button">Assignment 3</a>
<a class="btn btn-info mt-2" href="https://github.com/eniac00/bracu/tree/main/CSE422/final_project" role="button">Final Project</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 4971793

Please sign in to comment.