Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ <h1>Lorem ipsum</h1>
recusandae?
Recusandae aut maxime culpa debitis iure sunt odio in voluptatem maiores expedita fuga quaerat, qui atque sint
molestiae ut distinctio dolores mollitia facilis. Atque ex perferendis repudiandae expedita officia animi?</p>

<script src="script.js"></script>
</body>



</html>
37 changes: 37 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "primjer",
"version": "1.0.0",
"description": "dodatni paketi is-odd",
"homepage": "https://github.com/clockworks-dev/primjer#readme",
"bugs": {
"url": "https://github.com/clockworks-dev/primjer/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/clockworks-dev/primjer.git"
},
"license": "ISC",
"author": "dino duric",
"type": "commonjs",
"main": "script.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"is-odd": "^3.0.1"
}
}
19 changes: 19 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

function ispisDatuma () {
const vrijeme = new Date();

const dan = vrijeme.getDate();
const mjesec = vrijeme.getMonth();
const godina = vrijeme.getFullYear();

const datum = `${dan}.${mjesec}.${godina}`;

const paragraf = document.createElement("footer");
paragraf.innerHTML = `<b> ${datum}</b> <br><br> © ${godina}`;

paragraf.style.textAlign = "end";
document.body.appendChild(paragraf);
}

ispisDatuma();