Skip to content

Commit 16eaf0f

Browse files
committed
restructure it all
1 parent 1321398 commit 16eaf0f

File tree

94 files changed

+212
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+212
-76
lines changed

0-documentation/section-footer.md

Lines changed: 0 additions & 1 deletion

0-student_files/index.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
const http = require('http')
2+
const fs = require('fs');
3+
const PORT = 7000;
4+
5+
const HtmlTemplateString = (header,body,footer) => {
6+
return `<!DOCTYPE html>
7+
<html lang="en">
8+
<head>
9+
<meta charset="UTF-8">
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
11+
${header}
12+
</head>
13+
<body>
14+
${body}
15+
${footer}
16+
</body>
17+
</html>`;
18+
}
19+
let page1 = HtmlTemplateString(`<title>Title</title>`,`<h1>Hello World END</h1>`,`<footer> Content about the </footer>`);
20+
21+
// let page1 =HtmlTemplateString(
22+
// `<title>Hello</title>`,
23+
// `<h1>Hello World END</h1>
24+
// <div>Content about the world</div>`,
25+
// `<footer> By Hans </footer>`)
26+
27+
http.createServer(
28+
(request,res)=>{
29+
if (request.url == '/') {
30+
res.writeHead(200, {
31+
'Content-Type': 'text/html',
32+
'Content-Length': page1.length,
33+
// 'Expires': new Date().toUTCString()
34+
})
35+
res.end(page1);
36+
}
37+
}
38+
).listen(PORT);

00-DataTypes/05-Functions/code/arrows.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

00-DataTypes/06-Hoisting/hoisting.gif

-114 KB
Binary file not shown.

0 commit comments

Comments
 (0)