test
This commit is contained in:
BIN
._TODO.txt
Executable file
BIN
._TODO.txt
Executable file
Binary file not shown.
BIN
._about.html
Executable file
BIN
._about.html
Executable file
Binary file not shown.
BIN
._contact.html
Executable file
BIN
._contact.html
Executable file
Binary file not shown.
BIN
._extras.html
Executable file
BIN
._extras.html
Executable file
Binary file not shown.
BIN
._index.html
Executable file
BIN
._index.html
Executable file
Binary file not shown.
BIN
._login.html
Executable file
BIN
._login.html
Executable file
Binary file not shown.
BIN
._new.html
Executable file
BIN
._new.html
Executable file
Binary file not shown.
BIN
._register.html
Executable file
BIN
._register.html
Executable file
Binary file not shown.
BIN
._vnos.html
Executable file
BIN
._vnos.html
Executable file
Binary file not shown.
2
about.html
Normal file → Executable file
2
about.html
Normal file → Executable file
@@ -24,7 +24,7 @@
|
||||
</p>
|
||||
<br>
|
||||
<p class="page-paragraph">
|
||||
<a class="page-link" href="/">Glavna stran</a>
|
||||
<a class="page-link" href="index.html">Glavna stran</a>
|
||||
</p>
|
||||
</main>
|
||||
|
||||
|
||||
BIN
assets/._1.jpg
Executable file
BIN
assets/._1.jpg
Executable file
Binary file not shown.
BIN
assets/._2.jpg
Executable file
BIN
assets/._2.jpg
Executable file
Binary file not shown.
BIN
assets/._3.jpg
Executable file
BIN
assets/._3.jpg
Executable file
Binary file not shown.
0
assets/1.jpg
Normal file → Executable file
0
assets/1.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 774 KiB After Width: | Height: | Size: 774 KiB |
0
assets/2.jpg
Normal file → Executable file
0
assets/2.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 519 KiB After Width: | Height: | Size: 519 KiB |
0
assets/3.jpg
Normal file → Executable file
0
assets/3.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 485 KiB After Width: | Height: | Size: 485 KiB |
2
contact.html
Normal file → Executable file
2
contact.html
Normal file → Executable file
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
<br>
|
||||
<p class="page-paragraph">
|
||||
<a class="page-link" href="/">Glavna stran</a>
|
||||
<a class="page-link" href="index.html">Glavna stran</a>
|
||||
</p>
|
||||
</main>
|
||||
|
||||
|
||||
2
extras.html
Normal file → Executable file
2
extras.html
Normal file → Executable file
@@ -26,7 +26,7 @@
|
||||
<button style="margin-left: 23px; margin-bottom: 20px;" id="toggle-collapse" class="page-btn">Prikaži/Skrij galerijo slik</button>
|
||||
<br>
|
||||
<p class="page-paragraph">
|
||||
<a class="page-link" href="/">Glavna stran</a>
|
||||
<a class="page-link" href="index.html">Glavna stran</a>
|
||||
</p>
|
||||
<div id="page-collapse" class="page-collapse">
|
||||
<p class="page-paragraph">To je skrit del strani. Kliknite gumb zgoraj, da ga prikažete ali skrijete.</p>
|
||||
|
||||
0
index.html
Normal file → Executable file
0
index.html
Normal file → Executable file
4
login.html
Normal file → Executable file
4
login.html
Normal file → Executable file
@@ -30,11 +30,11 @@
|
||||
<button type="submit" class="page-btn">Prijavi se</button>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<p>Še nimate računa? <a href="/register.html" class="page-link">Registrirajte se</a></p>
|
||||
<p>Še nimate računa? <a href="register.html" class="page-link">Registrirajte se</a></p>
|
||||
</div>
|
||||
</form>
|
||||
<p class="page-paragraph">
|
||||
<a class="page-link" href="/">Glavna stran</a>
|
||||
<a class="page-link" href="index.html">Glavna stran</a>
|
||||
</p>
|
||||
</main>
|
||||
|
||||
|
||||
2
new.html
Normal file → Executable file
2
new.html
Normal file → Executable file
@@ -19,7 +19,7 @@
|
||||
<div id="entry-form-container">
|
||||
</div>
|
||||
<p class="page-paragraph">
|
||||
<a class="page-link" href="/">Glavna stran</a>
|
||||
<a class="page-link" href="index.html">Glavna stran</a>
|
||||
</p>
|
||||
<div class="modal" id="new-entry-form-modal">
|
||||
<div class="modal-content">
|
||||
|
||||
4
register.html
Normal file → Executable file
4
register.html
Normal file → Executable file
@@ -38,11 +38,11 @@
|
||||
<button type="submit" class="page-btn">Registriraj se</button>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<p>Že imate račun? <a href="/login.html" class="page-link">Prijavite se</a></p>
|
||||
<p>Že imate račun? <a href="login.html" class="page-link">Prijavite se</a></p>
|
||||
</div>
|
||||
</form>
|
||||
<p class="page-paragraph">
|
||||
<a class="page-link" href="/">Glavna stran</a>
|
||||
<a class="page-link" href="index.html">Glavna stran</a>
|
||||
</p>
|
||||
</main>
|
||||
|
||||
|
||||
BIN
scripts/._contact.js
Executable file
BIN
scripts/._contact.js
Executable file
Binary file not shown.
BIN
scripts/._extras.js
Executable file
BIN
scripts/._extras.js
Executable file
Binary file not shown.
BIN
scripts/._index.js
Executable file
BIN
scripts/._index.js
Executable file
Binary file not shown.
BIN
scripts/._login.js
Executable file
BIN
scripts/._login.js
Executable file
Binary file not shown.
BIN
scripts/._main.js
Executable file
BIN
scripts/._main.js
Executable file
Binary file not shown.
BIN
scripts/._new.js
Executable file
BIN
scripts/._new.js
Executable file
Binary file not shown.
BIN
scripts/._preload.js
Executable file
BIN
scripts/._preload.js
Executable file
Binary file not shown.
BIN
scripts/._register.js
Executable file
BIN
scripts/._register.js
Executable file
Binary file not shown.
BIN
scripts/._vnos.js
Executable file
BIN
scripts/._vnos.js
Executable file
Binary file not shown.
4
scripts/contact.js
Normal file → Executable file
4
scripts/contact.js
Normal file → Executable file
@@ -35,14 +35,14 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
console.log("Success:", data);
|
||||
document.getElementById("contact-form").innerHTML = `<p class="page-paragraph-success">Hvala za vaše sporočilo! Odgovorili vam bomo v najkrajšem možnem času.</p>`;
|
||||
setTimeout(() => {
|
||||
window.location.href = "/";
|
||||
window.location.href = "index.html";
|
||||
}, 3000);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error("Error:", error);
|
||||
document.getElementById("contact-form").innerHTML = `<p class="page-paragraph-error">Prišlo je do napake pri pošiljanju vašega sporočila. Prosimo, poskusite znova pozneje.</p>`;
|
||||
setTimeout(() => {
|
||||
window.location.href = "/";
|
||||
window.location.href = "index.html";
|
||||
}, 3000);
|
||||
});
|
||||
|
||||
|
||||
0
scripts/extras.js
Normal file → Executable file
0
scripts/extras.js
Normal file → Executable file
4
scripts/index.js
Normal file → Executable file
4
scripts/index.js
Normal file → Executable file
@@ -1,5 +1,5 @@
|
||||
function getSpecific(kljuc) {
|
||||
window.location.href = `/vnos.html?kljuc=${kljuc}`;
|
||||
window.location.href = `vnos.html?kljuc=${kljuc}`;
|
||||
}
|
||||
|
||||
function getLast() {
|
||||
@@ -101,7 +101,7 @@ document.getElementById("search-input").addEventListener("keydown", (event) => {
|
||||
});
|
||||
|
||||
function addEntry() {
|
||||
window.location.href = "/new.html";
|
||||
window.location.href = "new.html";
|
||||
}
|
||||
|
||||
// DELAJ DELAJ
|
||||
|
||||
2
scripts/login.js
Normal file → Executable file
2
scripts/login.js
Normal file → Executable file
@@ -31,7 +31,7 @@ document.getElementById("login-form").addEventListener("submit", async function(
|
||||
document.cookie = `token=${data.token}; max-age=${3 * 60 * 60}; path=/; secure; samesite=strict`;
|
||||
document.cookie = `username=${username}; max-age=${3 * 60 * 60}; path=/; secure; samesite=strict`;
|
||||
|
||||
window.location.href = "/";
|
||||
window.location.href = "index.html";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
14
scripts/main.js
Normal file → Executable file
14
scripts/main.js
Normal file → Executable file
@@ -2,12 +2,12 @@ const headerHtml = `
|
||||
<header>
|
||||
<nav>
|
||||
<div class="nav-left">
|
||||
<a class="nav-title" href="/">Slovar Slovenskega Novega Jezika</a>
|
||||
<a class="nav-title" href="index.html">Slovar Slovenskega Novega Jezika</a>
|
||||
</div>
|
||||
<div class="nav-right" aria-label="Primary navigation">
|
||||
<a class="nav-btn" href="/about.html">O projektu</a>
|
||||
<a class="nav-btn" href="/contact.html">Kontakt</a>
|
||||
<a class="nav-btn" href="/extras.html">Dodatki</a>
|
||||
<a class="nav-btn" href="about.html">O projektu</a>
|
||||
<a class="nav-btn" href="contact.html">Kontakt</a>
|
||||
<a class="nav-btn" href="extras.html">Dodatki</a>
|
||||
<div id="nav-login-holder"></div>
|
||||
|
||||
<button id="theme-toggle" class="toggle-btn" onclick="toggleTheme()" aria-label="Toggle colour scheme" aria-pressed="false">
|
||||
@@ -81,7 +81,7 @@ function logout() {
|
||||
// Odstrani cookie tako, da ga nastaviš z max-age=0
|
||||
document.cookie = "token=; max-age=0; path=/; secure; samesite=strict";
|
||||
document.cookie = "username=; max-age=0; path=/; secure; samesite=strict";
|
||||
window.location.href = "/";
|
||||
window.location.href = "index.html";
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
@@ -98,7 +98,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
if (!isLoggedIn) {
|
||||
const navRight = document.querySelector(".nav-right");
|
||||
if (navRight) {
|
||||
const loginBtn = `<a class="nav-btn nav-btn-primary" href="/login.html">Prijava</a>`;
|
||||
const loginBtn = `<a class="nav-btn nav-btn-primary" href="login.html">Prijava</a>`;
|
||||
// Najdi zadnji <a> element in dodaj gumb za njim
|
||||
const lastLink = navRight.querySelector("a:last-child");
|
||||
document.getElementById("nav-login-holder").innerHTML = loginBtn;
|
||||
@@ -106,7 +106,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
} else {
|
||||
const navRight = document.querySelector(".nav-right");
|
||||
if (navRight) {
|
||||
const logoutBtn = `<a class="nav-btn nav-btn-primary" href="/">Odjava</a>`;
|
||||
const logoutBtn = `<a class="nav-btn nav-btn-primary" href="index.html">Odjava</a>`;
|
||||
// Najdi zadnji <a> element in dodaj gumb za njim
|
||||
const lastLink = navRight.querySelector("a:last-child");
|
||||
document.getElementById("nav-login-holder").innerHTML = logoutBtn;
|
||||
|
||||
2
scripts/new.js
Normal file → Executable file
2
scripts/new.js
Normal file → Executable file
@@ -66,7 +66,7 @@ document.getElementById("confirm-add").addEventListener("click", () => {
|
||||
document.getElementById("contact-form").innerHTML = `<p class="page-paragraph-error">Prišlo je do napake pri dodajanju vnosa. Prosimo, poskusite znova pozneje.</p>`;
|
||||
});
|
||||
setTimeout(() => {
|
||||
window.location.href = "/";
|
||||
window.location.href = "index.html";
|
||||
}, 3000);
|
||||
});
|
||||
|
||||
|
||||
0
scripts/preload.js
Normal file → Executable file
0
scripts/preload.js
Normal file → Executable file
2
scripts/register.js
Normal file → Executable file
2
scripts/register.js
Normal file → Executable file
@@ -63,7 +63,7 @@ document.getElementById("login-form").addEventListener("submit", async function(
|
||||
`<div class="form-group"><p class="page-paragraph-success">Uspešna registracija! Preusmerjanje na prijavo...</p></div>`
|
||||
);
|
||||
}, 500);
|
||||
window.location.href = "/login.html";
|
||||
window.location.href = "login.html";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
2
scripts/vnos.js
Normal file → Executable file
2
scripts/vnos.js
Normal file → Executable file
@@ -83,7 +83,7 @@ function getKey() {
|
||||
})
|
||||
.then(data => {
|
||||
console.log("Success:", data);
|
||||
window.location.href = "/";
|
||||
window.location.href = "index.html";
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error("Error:", error);
|
||||
|
||||
BIN
styles/._main.css
Executable file
BIN
styles/._main.css
Executable file
Binary file not shown.
0
styles/main.css
Normal file → Executable file
0
styles/main.css
Normal file → Executable file
2
vnos.html
Normal file → Executable file
2
vnos.html
Normal file → Executable file
@@ -20,7 +20,7 @@
|
||||
<div id="entry-container-single" class="entry-container-single">
|
||||
</div>
|
||||
<p class="page-paragraph">
|
||||
<a class="page-link" href="/">Glavna stran</a>
|
||||
<a class="page-link" href="index.html">Glavna stran</a>
|
||||
</p>
|
||||
|
||||
<div class="modal" id="delete-entry-modal">
|
||||
|
||||
Reference in New Issue
Block a user