Skip to content

Commit 76986aa

Browse files
committed
First commit
0 parents  commit 76986aa

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 TuxCon
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Fizz Buzz
2+
3+
Това е демо проект за Hacktoberfest 2020.
4+
5+
Проектът представлява имплементация на играта [Fizz
6+
Buzz](https://en.wikipedia.org/wiki/Fizz_buzz). Но внимавайте, възможно е кодът
7+
да съдържа някои грешки или неточности.
8+
9+
Приемат се всякакви Pull Request-и с добри идеи.

index.html

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width">
6+
<title>Hacktoberfest Fizzbuzz</title>
7+
</head>
8+
<body>
9+
<div id="container"></div>
10+
</body>
11+
12+
<script charset="utf-8">
13+
const container = document.querySelector('#container');
14+
15+
for(let i = 0; i < 1000; i++) {
16+
const node = document.createElement('div');
17+
18+
if (i % 3 === 0 && i % 2 === 0) {
19+
node.innerText = 'fizzbuzz';
20+
}
21+
else if(i % 3 === 0) {
22+
node.innerText = 'buzz';
23+
}
24+
else if (i % 2 === 0) {
25+
node.innerText = 'fizz';
26+
}
27+
else {
28+
node.innerText = 'None';
29+
}
30+
31+
node.innerText = i + ' - ' + node.innerText;
32+
container.appendChild(node);
33+
}
34+
</script>
35+
</html>

0 commit comments

Comments
 (0)