Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ui #63

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Ui #63

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions article1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<html>

</html>
18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html>
<head>
<link href="/ui/style.css" rel="stylesheet" />
</head>
<body>
<div class="center">
<img src="/ui/madi.png" class="img-medium"/>
</div>
<br>
<div class="center text-big bold">
Hi! I am your webapp(belongs to srinivasan).
i have recently edited it.
</div>
<script type="text/javascript" src="/ui/main.js">
</script>
</body>
</html>
4 changes: 4 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ app.get('/', function (req, res) {
res.sendFile(path.join(__dirname, 'ui', 'index.html'));
});

app.get('/article1', function (req, res) {
res.send('article one is served here');
});

app.get('/ui/style.css', function (req, res) {
res.sendFile(path.join(__dirname, 'ui', 'style.css'));
});
Expand Down
2 changes: 2 additions & 0 deletions ui/art1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<html>
</html>
2 changes: 1 addition & 1 deletion ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>
<br>
<div class="center text-big bold">
Hi! I am your webapp.
Hi! I am your webapp(belongs to srinivasan).
</div>
<script type="text/javascript" src="/ui/main.js">
</script>
Expand Down