Skip to content

Commit 6e4ab63

Browse files
committed
1
1 parent c7c9a06 commit 6e4ab63

File tree

5 files changed

+512
-0
lines changed

5 files changed

+512
-0
lines changed

web/mainmenu.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class MainMenu {
3131
this._Menu.addDataItem("/윈도우개발/Visual Studio C++ 빌드설정" , "../Visual Studio C++ 빌드설정/page.html");
3232
this._Menu.addDataItem("/윈도우개발/Visual Studio 기본설정" , "../Visual Studio 기본설정/page.html");
3333
this._Menu.addDataItem("/개발/git" , "../git/page.html");
34+
this._Menu.addDataItem("/개발/markdown" , "../markdown/page.html");
3435
}
3536

3637
initializeMenu() {

web/markdown/page.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@charset "utf-8";
2+
3+

web/markdown/page.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
5+
<meta charset="utf-8" />
6+
<title>code1009</title>
7+
<link rel="stylesheet" type="text/css" href="../core.css" />
8+
<link rel="stylesheet" type="text/css" href="../menu.css" />
9+
<link rel="stylesheet" type="text/css" href="./page.css" />
10+
<script type="text/javascript" src="../core.js"></script>
11+
<script type="text/javascript" src="../menu.js"></script>
12+
<script type="text/javascript" src="../mainmenu.js"></script>
13+
<script type="text/javascript" src="./page.js"></script>
14+
15+
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
16+
17+
</head>
18+
<body>
19+
<div id="contents">
20+
21+
<div id="markdown_view">
22+
</div>
23+
24+
<script>
25+
26+
function renderMarkdwon(markdown_view_id, markdown_url) {
27+
var xmlhttp = new XMLHttpRequest();
28+
xmlhttp.onreadystatechange =
29+
function () {
30+
if (this.readyState == 4 && this.status == 200) {
31+
const html = marked.parse(this.responseText);
32+
document.getElementById(markdown_view_id).innerHTML = html;
33+
}
34+
};
35+
36+
xmlhttp.open("GET", markdown_url, true);
37+
xmlhttp.send();
38+
}
39+
40+
renderMarkdwon("markdown_view", "./page.md");
41+
42+
</script>
43+
</div>
44+
</body>
45+
</html>

web/markdown/page.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/////////////////////////////////////////////////////////////////////////////
2+
//===========================================================================
3+
"use strict";
4+
5+
6+
7+
8+
9+
/////////////////////////////////////////////////////////////////////////////
10+
//===========================================================================
11+
class Page {
12+
13+
#Context = null;
14+
15+
constructor() {
16+
this.#Context = null;
17+
}
18+
}
19+
20+
21+
22+
23+
24+
/////////////////////////////////////////////////////////////////////////////
25+
//===========================================================================
26+
var _Page = null;
27+
28+
29+
30+
31+
32+
/////////////////////////////////////////////////////////////////////////////
33+
//===========================================================================
34+
function pageInitialize() {
35+
_Page = new Page();
36+
}
37+
38+
39+
40+
41+
42+
/////////////////////////////////////////////////////////////////////////////
43+
//===========================================================================
44+
window.onload = function () {
45+
coreInitialize();
46+
mainMenuInitialize();
47+
pageInitialize();
48+
}
49+
50+

0 commit comments

Comments
 (0)