diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..185a997 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# Node.js stuff +node_modules/ + +#npm stuff +.npm/ + diff --git a/index.html b/index.html index ddbce82..607ea8b 100644 --- a/index.html +++ b/index.html @@ -20,6 +20,9 @@

Lorem ipsum

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?

+ + + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..7265fc8 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,18 @@ +{ + "name": "primjer", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "corporate-ipsum": "^1.0.1" + } + }, + "node_modules/corporate-ipsum": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/corporate-ipsum/-/corporate-ipsum-1.0.1.tgz", + "integrity": "sha512-Oz9Xvi9pNvlyxdJm6aVJEHpb/8quhDWPf5O2uOsKIuyQNm9zm+j55nmBw/7SaTHGvi5goUagm2IIS3rkPr8WVw==", + "license": "ISC" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..f0717c6 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "corporate-ipsum": "^1.0.1" + } +} diff --git a/scripts.js b/scripts.js new file mode 100644 index 0000000..783454b --- /dev/null +++ b/scripts.js @@ -0,0 +1,7 @@ +const noviParagraf = document.createElement('p'); +const godina = new Date(); +const formatiranaGodina = godina.toLocaleDateString('hr-HR'); + +noviParagraf.textContent = formatiranaGodina; + +document.body.insertAdjacentElement("beforeend", noviParagraf); \ No newline at end of file