Skip to content

Commit

Permalink
some clear + test tasks (#4)
Browse files Browse the repository at this point in the history
* some clear + test tasks

* nodejs yml fix

* em external links
  • Loading branch information
DonVadimon authored Feb 21, 2022
1 parent 959caec commit 9ca7ebb
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 92 deletions.
58 changes: 32 additions & 26 deletions .github/workflows/nodejs.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
# name: Labs Test
name: Labs Test

# on: push
on: push

# jobs:
# lab3:
# runs-on: ubuntu-16.04
# name: Lab №3
# steps:
# - uses: actions/checkout@v2
# - name: Setup node
# uses: actions/setup-node@v1
# with:
# node-version: 10
# - run: npm install
# - run: npm run test-lab-3
# lab4:
# runs-on: ubuntu-16.04
# needs: [lab3]
# name: Lab №4
# steps:
# - uses: actions/checkout@v2
# - name: Setup node
# uses: actions/setup-node@v1
# with:
# node-version: 10
# - run: npm install
# - run: npm run test-lab-4
jobs:
hello:
runs-on: ubuntu-20.04
name: Hello
steps:
- uses: actions/checkout@v2
- run: echo "Hello"
# lab3:
# runs-on: ubuntu-20.04
# name: Lab №3
# steps:
# - uses: actions/checkout@v2
# - name: Setup node
# uses: actions/setup-node@v1
# with:
# node-version: 10
# - run: npm install
# - run: npm run test-lab-3
# lab4:
# runs-on: ubuntu-20.04
# needs: [lab3]
# name: Lab №4
# steps:
# - uses: actions/checkout@v2
# - name: Setup node
# uses: actions/setup-node@v1
# with:
# node-version: 10
# - run: npm install
# - run: npm run test-lab-4
24 changes: 11 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<!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>Thmoon Frontend</title>
</head>

<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>Document</title>
</head>

<body style="margin: 40px">
<a href="./lab1/">Лабораторная #1</a>
<br>
</body>

</html>
<body style="margin: 40px">
<a href="./lab1/">Лабораторная #1</a>
<br />
</body>
</html>
58 changes: 9 additions & 49 deletions lab1/index.html
Original file line number Diff line number Diff line change
@@ -1,51 +1,11 @@
<!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>Document</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"></script>
</head>

<body>
<!-- <pre>
<code id="code1" class="language-js"></code>
</pre>
<pre>
<code id="code2" class="language-js"></code>
</pre>
<pre>
<code id="code3" class="language-js"></code>
</pre>
<pre>
<code id="code4" class="language-js"></code>
</pre>
<pre>
<code id="code5" class="language-js"></code>
</pre>
<script>
function uploadFile(name, id) {
fetch(name).then(function(response) {
response.text().then(function(text) {
document.getElementById(id).innerHTML = text;
setTimeout(() => hljs.highlightAll(), 0);
});
});
}
function load() {
uploadFile('./1.js', 'code1');
uploadFile('./2.js', 'code2');
uploadFile('./3.js', 'code3');
uploadFile('./4.js', 'code4');
uploadFile('./5.js', 'code5');
}
window.onLoad = load();
</script> -->
</body>

</html>
<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>Document</title>
</head>

<body></body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
},
"author": "",
"license": "ISC"
}
}
8 changes: 5 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const express = require("express");
const app = express();
app.use("/", express.static(__dirname));

app.listen(process.env.PORT || "8000", () => {
console.log("Port: 8000");
});
const port = process.env.PORT || "8000";

app.listen(port, () => {
console.log(`Server is running on http://localhost:${port}`);
});

1 comment on commit 9ca7ebb

@vercel
Copy link

@vercel vercel bot commented on 9ca7ebb Feb 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.