-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildHTML.js
More file actions
26 lines (25 loc) · 804 Bytes
/
Copy pathbuildHTML.js
File metadata and controls
26 lines (25 loc) · 804 Bytes
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
var buildHTML = function(ip, lang, OS) {
return `<!DOCTYPE html>
<html>
<head>
<title>Request Header Parser</title>
<style>
body {
background-color: #222222;
color: aqua;
font-family: 'Inconsolata';
font-size: 24px;
}
</style>
</head>
<body>
<h1>Hello, from Request Header Parser!</h1>
<ul>
<li>Your ip is: ${ip}</li>
<li>Your language is: ${lang}</li>
<li>Your OS is: ${OS}</li>
</ul>
</body>
</html>`
}
module.exports = buildHTML;