DEKLARACIJA
Naziv proizvoda: Brinox crevo 1/2 – 1/2 60cm HN
Opis proizvoda: Element namenjen za povezivanje bojler, vodokotlica, baterije …
Zemlja porekla: Kina
Uvoznik: VG Impotr
/* Add your CSS code here. For example: .example { color: red; } For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp End of comment */ .wishlist-title-container, .post-13 .woocommerce h2{ display:none !important; } .woocommerce table.wishlist_table thead th, .woocommerce table.shop_table.wishlist_table tr td{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important; font-size: 14px !important; } @media (max-width: 782px) { body.admin-bar .shoptimizer-mini-cart-wrap { z-index: 100000011 !important; } } @media (max-width: 782px) { #masthead { z-index: 9999 !important; } } #dgwt-wcas-search-input-1::placeholder, #dgwt-wcas-search-input-2::placeholder{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important; font-style: normal !important; } @media (min-width: 991px) { #menu-item-1950957{ display:none; } } @media (max-width: 700px) { .header-widget-region .widget { width: 150{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020} !important; } } @media (max-width: 782px) { body.admin-bar .shoptimizer-mini-cart-wrap { z-index: 1000000 !important; } } h1{ font-size: 26px !important; } .mobile-extra{ display: none !important; } @media (max-width: 992px) { .site ul.products li.product { margin-bottom: 0 !important; } } .is-large.wc-block-cart .wc-block-cart-items th{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important; font-size: 14px !important; font-weight: 600 !important; } .product-label.type-bubble, li.product .onsale { width: 30{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020}; } .is-large.wc-block-cart { margin-top: 5em; } .woocommerce-checkout.min-ck header .main-header h1, .product_meta, .pwb-single-product-brands { display: none; } .woocommerce-product-attributes.shop_attributes { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important; } .woocommerce-tabs table.woocommerce-product-attributes th { padding-left: 10px !important; } .woocommerce-tabs table.woocommerce-product-attributes td{ padding-right: 10px !important; } .woocommerce-product-attributes.shop_attributes tr:nth-child(even) { background-color: #f2f2f2; } body .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-apply-button, body .wpc-filters-main-wrap a.wpc-filters-submit-button { background-color: #fff !important; border-color: #d8d8d8 !important; } .wpfFilterButton.wpfButton, .wpfClearButton.wpfButton, option{ font-weight: 400!important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important; } #wpcf7-f1951721-p1132-o1 form p:nth-of-type(-n+2) { width: 48{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020} !important; } #wpcf7-f1951721-p1132-o1 form p { width: 100{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020}; } @media (max-width: 782px) { #wpcf7-f1951721-p1132-o1 form p:nth-of-type(-n+2) { width: 100{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020} !important; } } #wpcf7-f1951721-p1132-o1 form { display: flex; flex-wrap: wrap; justify-content: space-between; } #wpcf7-f1951721-p1132-o1 form p:last-of-type input{ width: 100{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020} !important; } #wpcf7-f1951721-p1132-o1 form p:last-of-type{ margin-bottom:0 !important; } .call-back-feature{ right: 0 !important; width: 100{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020} !important; display:flex; justify-content:center; } @media (max-width: 782px) { .call-back-feature{ position: relative; justify-content: flex-start; margin-top: 25px; } .product-label.type-bubble, li.product .onsale { width: 100{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020} !important; } } #wpfront-scroll-top-container{ max-width: 300px; } .wpcf7 form .wpcf7-response-output { margin: 0 !important; width: 100{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020}; text-align: center; } .item-tex{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important; } footer.copyright .col-full { align-items: flex-start; flex-wrap: wrap !important; } footer.copyright .col-full #custom_html-26{ width: 100{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020} !important; } @media (max-width: 992px) { .main-navigation { padding-top: 45px !important; } } .summary.entry-summary .sale-item.product-label.type-bubble { width: 100{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020} !important; max-width: 100px; } body .shoptimizer-mini-cart-wrap { z-index: 100000 !important;} .woocommerce-loop-product__title { white-space: normal !important; overflow: visible !important;} .woocommerce-loop-product__title { display: block !important;} .single_add_to_cart_button::before { content: ""; display: inline-block; width: 20px; height: 22px; background-image: url("data:image/svg+xml,{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020}3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020}3E{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020}3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z'/{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020}3E{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020}3C/svg{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020}3E"); background-repeat: no-repeat; background-size: contain; margin-right: 5px; vertical-align: middle; margin-top: 5px; } body .woocommerce #respond input#submit.alt, body .woocommerce a.button.alt, body .woocommerce button.button.alt, body .woocommerce input.button.alt, .product .cart .single_add_to_cart_button, .shoptimizer-sticky-add-to-cart__content-button a.button, .widget_shopping_cart a.button.Poručivanje, #cgkit-tab-commercekit-sticky-atc-title button, #cgkit-mobile-commercekit-sticky-atc button { text-transform: none !important; } input::placeholder, textarea::placeholder { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important; } body *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(i) { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important; } @media screen and (min-width: 450px) and (max-width: 992px) { .header-widget-region .widget { width: 100{fe30161b4df57d05ebe2aecdc9268e36534def8475777d772ec8218519b5c020} !important; } } #wpfront-scroll-top-container { justify-content: flex-start !important; } footer.site-footer{ padding-bottom: 2rem !important; } #napomenaFuter { padding: 0px 2.61792em 2rem; background-color: rgb(236, 236, 236); font-size: 15px; color: rgb(76, 76, 76); } @media (max-width: 768px) { #napomenaFuter { padding-left: 1rem !important; padding-right: 1rem !important; } .single_add_to_cart_button.button.alt { width: 165px !important; } /* .yith-add-to-wishlist-button-block { margin-top: 0 !important; margin-bottom: 30px !important; } */ .button, input[type=submit], ul.products li.product .button, .commercekit-wishlist-table button, .woocommerce #respond input#submit.alt, .product .cart .single_add_to_cart_button, .widget_shopping_cart a.button.Poručivanje, .main-navigation ul.menu li.menu-item-has-children.full-width > .sub-menu-wrapper li a.added_to_cart, .site div.wpforms-container-full .wpforms-form button[type=submit], ul.products li.product .added_to_cart, ul.wc-block-grid__products .wp-block-button__link, .woocommerce-cart p.return-to-shop a, .elementor-row .feature a, .image-feature figcaption span, body .main-navigation ul.menu li.menu-item-has-children.full-width > .sub-menu-wrapper li a.button, body ul.products li.product .added_to_cart, body ul.products li.product .button { /* width: auto !important; */ font-size: 14px !important; color: #111 !important; border: none !important; } .woocommerce-Price-amount bdi, .woocommerce-Price-amount span{ font-size: 20px !important; font-weight: bold !important; color: #43454b !important; } } .product_title{ font-size: 26px !important; } .call-back-feature a{ font-weight: 400 !important; color: #111 !important; font-size: 14px !important; } @media (max-width: 992px) { .shoptimizer-cart-icon svg { stroke: #000 !important; } } .site-header-cart a.cart-contents .shoptimizer-cart-icon .mini-count { border-color: #fed700; } .woocommerce-product-gallery{ display: flex; flex-wrap: wrap; }
Šifra proizvoda: 15494
307RSD
U cenu je uračunat PDV. Cene možemo menjati bez prethodne najave. Svi artikli koji su prikazani na sajtu su informativnog karaktera. Za više informacija o artiklu, molimo da nas kontaktirate.
DEKLARACIJA
Naziv proizvoda: Brinox crevo 1/2 – 1/2 60cm HN
Opis proizvoda: Element namenjen za povezivanje bojler, vodokotlica, baterije …
Zemlja porekla: Kina
Uvoznik: VG Impotr
| Brend | Capo Casa |
|---|---|
| Dimenzije | 1/2 |
| Materijal | Inox |
| Vrsta | Brinox |
element
const noviP = document.createElement('p');
noviP.id = 'napomenaFuter';
noviP.innerHTML = '
Napomena: Zbog velikog broja proizvoda na sajtu, mogući su povremeni propusti u prikazu cena, opisa, slika i šifri artikala. Prikazane fotografije i grafike služe isključivo kao ilustracija i ne garantuju potpunu tačnost. Takođe, u retkim slučajevima može se desiti da neki proizvodi trenutno nisu dostupni. Cene su izražene u dinarima i mogu se razlikovati od maloprodajnih. Sve informacije vezane za proizvode možete dobiti na broj telefona 062 80 70 600. Hvala na razumevanju.';
// 2. Napravi wrapper
u taj
unutra) pre .copyright
roditelj.insertBefore(napomenaWrapper, copyrightEl);
}
// 8. Login forma: ćirilica → latinica
const loginForm = document.querySelector('.woocommerce-form.woocommerce-form-login');
if (loginForm) {
const usernameLabel = loginForm.querySelector('label[for="username"]');
const passwordLabel = loginForm.querySelector('label[for="password"]');
const rememberMe = loginForm.querySelector('.woocommerce-form-login__rememberme span');
const submitButton = loginForm.querySelector('button[name="login"]');
const lostPassword = loginForm.querySelector('.woocommerce-LostPassword a');
const screenReaderTexts = loginForm.querySelectorAll('.screen-reader-text');
if (usernameLabel && usernameLabel.textContent.includes("Корисничко име")) {
usernameLabel.childNodes[0].textContent = "Korisničko ime ili adresa e-pošte ";
}
if (passwordLabel && passwordLabel.textContent.includes("Лозинка")) {
passwordLabel.childNodes[0].textContent = "Lozinka ";
}
screenReaderTexts.forEach(function (el) {
if (el.textContent.trim() === "Обавезно") {
el.textContent = "Obavezno";
}
});
if (rememberMe && rememberMe.textContent.trim() === "Запамти ме") {
rememberMe.textContent = "Zapamti me";
}
if (submitButton && submitButton.textContent.trim() === "Улогујте се") {
submitButton.textContent = "Prijavi se";
}
if (lostPassword && lostPassword.textContent.trim() === "Заборавили сте лозинку?") {
lostPassword.textContent = "Zaboravili ste lozinku?";
}
if (
usernameLabel && usernameLabel.textContent.includes("Korisničko ime") &&
passwordLabel && passwordLabel.textContent.includes("Lozinka") &&
rememberMe && rememberMe.textContent.includes("Zapamti me") &&
submitButton && submitButton.textContent.includes("Prijavi se") &&
lostPassword && lostPassword.textContent.includes("Zaboravili ste lozinku?")
) {
translated8 = true;
}
}
document.addEventListener("DOMContentLoaded", function () {
const buttons = document.querySelectorAll('.button.product_type_simple');
if (buttons.length > 0) {
buttons.forEach(function(button) {
if (button.textContent.trim() === 'Pročitajte još') {
button.textContent = 'Detaljnije';
}
});
}
});
document.addEventListener('DOMContentLoaded', function() {
const rows = document.querySelectorAll(".woocommerce-product-attributes.shop_attributes tr");
rows.forEach((row) => {
const labelCell = row.querySelector("th");
if (labelCell && labelCell.textContent.trim().toLowerCase().includes("brend")) {
row.style.display = "none";
}
});
let rsd = document.getElementsByClassName('woocommerce-Price-currencySymbol')
if(rsd){
for(let i = 0; i < rsd.length; i++){
rsd[i].textContent = 'RSD'
}}
let rsd2 = document.getElementsByClassName('woocommerce-Price-currencySymbol');
if (rsd2.length > 0) {
for (let i = 0; i < rsd2.length; i++) {
rsd2[i].textContent = 'RSD';
}
}
let woocommerceInfo = document.getElementsByClassName('woocommerce-info')[0]
if(woocommerceInfo){
woocommerceInfo.style.backgroundColor = 'rgba(167, 167, 167, 0.2)'
woocommerceInfo.style.color = '#999'
}
let cartDrawerHeading = document.getElementsByClassName('cart-drawer-heading')[0]
if(cartDrawerHeading){
cartDrawerHeading.textContent = 'Vaša korpa'
}
let cartClick = document.getElementsByClassName('site-header-cart')[1]
if(cartClick){
const socialIconsDiv = document.createElement('div');
socialIconsDiv.style.display = 'flex';
socialIconsDiv.style.gap = '16px';
const icons = [
{
href: 'https://www.instagram.com/dimtrade/',
imgSrc: 'https://dimtrade.rs/wp-content/uploads/2024/10/5296765-camera-instagram-instagram-logo-icon-2.png',
alt: 'Instagram'
},
{
href: 'https://www.facebook.com/dimtrade94/',
imgSrc: 'https://dimtrade.rs/wp-content/uploads/2024/10/5365678-fb-facebook-facebook-logo-icon-1.png',
alt: 'Facebook'
}
];
const ikoniceNalov = document.createElement('p')
ikoniceNalov.textContent = 'PRATITE NAS'
ikoniceNalov.style.color = '#777'
ikoniceNalov.style.fontWeight = 'bold'
ikoniceNalov.style.marginBottom = '0.7em'
ikoniceNalov.style.marginTop = '1em'
icons.forEach(icon => {
const link = document.createElement('a');
link.href = icon.href;
link.target = '_blank';
link.rel = 'noopener';
const image = document.createElement('img');
image.src = icon.imgSrc;
image.alt = icon.alt;
image.width = 25;
image.height = 25;
link.appendChild(image);
socialIconsDiv.appendChild(link);
});
let noviDivNav = document.createElement('div');
let noviDivNav2 = document.createElement('div');
const li = document.createElement('li')
const li2 = document.createElement('li')
const li3 = document.createElement('li')
// Napravimo "moj nalog" link
const mojNalog = document.createElement('a');
mojNalog.href = 'https://dimtrade.rs/moj-nalog/';
const mojNalogImage = document.createElement('img');
mojNalogImage.decoding = 'async';
mojNalogImage.className = 'alignnone size-full wp-image-15224';
mojNalogImage.style.marginBottom = '-4px';
mojNalogImage.style.marginRight = '10px';
mojNalogImage.src = 'https://dimtrade.rs/wp-content/uploads/2024/10/profil.png';
mojNalogImage.alt = '';
mojNalogImage.width = 22;
mojNalogImage.height = 22;
// Napravimo "wishlist" link
const wishlistLink = document.createElement('a');
wishlistLink.href = 'https://dimtrade.rs/lista-zelja/';
const wishlistImage = document.createElement('img');
wishlistImage.decoding = 'async';
wishlistImage.style.marginRight = '3px';
wishlistImage.style.maxWidth = '20px';
wishlistImage.style.maxHeight = '20px';
wishlistImage.style.marginBottom = '-4px';
wishlistImage.src = 'https://dimtrade.rs/wp-content/uploads/2024/12/heart-2.png';
const callLink = document.createElement('a');
callLink.style.color = 'black';
callLink.style.fontSize = '15px';
callLink.href = 'tel:062 80 70 600';
callLink.textContent = '062 80 70 600';
const naslovLink = document.createElement('p')
naslovLink.textContent = 'KONTAKT'
naslovLink.style.color = '#777'
naslovLink.style.fontWeight = 'bold'
naslovLink.style.marginBottom = '0.7em'
const emailParagraph = document.createElement('p');
emailParagraph.style.setProperty('margin-bottom', '0', 'important');
const emailLink = document.createElement('a');
emailLink.style.color = 'black';
emailLink.href = 'mailto:shop@dimtrade.rs';
const emailImage = document.createElement('img');
emailImage.src = 'https://dimtrade.rs/wp-content/uploads/2024/11/email.png';
emailImage.style.maxWidth = '15px';
emailImage.style.marginRight = '5px';
// Dodajemo sliku i tekst u email link
emailLink.appendChild(document.createTextNode(' shop@dimtrade.rs'));
// Dodajemo link u paragraf
emailParagraph.appendChild(emailLink);
// Složimo sve
wishlistLink.appendChild(wishlistImage);
mojNalog.appendChild(mojNalogImage);
noviDivNav.appendChild(mojNalog);
noviDivNav.appendChild(wishlistLink);
noviDivNav.style.lineHeight = '55px'
noviDivNav2.appendChild(naslovLink);
noviDivNav2.appendChild(emailParagraph);
noviDivNav2.appendChild(callLink);
li2.appendChild(noviDivNav2)
li.appendChild(noviDivNav)
li3.appendChild(ikoniceNalov);
li3.appendChild(socialIconsDiv)
cartClick.appendChild(li)
cartClick.appendChild(li2)
cartClick.appendChild(li3)
}
});
let shoptimizerMobileToggle = document.getElementsByClassName('shoptimizer-mobile-toggle')[0]
if(shoptimizerMobileToggle){
shoptimizerMobileToggle.innerHTML = ` Prikaži Filtere`
}
let currentIndex = 0;
const imagesContainer = document.querySelector('.carousel-images');
const totalImages = document.querySelectorAll('.carousel-images img').length;
let visibleImages = 6; // Početna vrednost za desktop
let imageWidthFix = document.querySelector('.carousel img')
if(imageWidthFix){
let imageWidth = imageWidthFix.clientWidth;
// Funkcija za podešavanje broja vidljivih slika
function updateVisibleImages() {
if (window.innerWidth <= 768) {
visibleImages = 2; // Za telefone
} else {
visibleImages = 6; // Za desktop
}
imageWidth = document.querySelector('.carousel img').clientWidth; // Ažuriranje širine slike
updateCarousel(); // Ažuriranje prikaza
updateArrows(); // Ažuriranje strelica
}
// Funkcija za pomeranje slika
function updateCarousel() {
imagesContainer.style.transform = `translateX(-${currentIndex * imageWidth}px)`;
}
// Funkcija koja ažurira stanje strelica
function updateArrows() {
// Ako je na početku, onemogućiti strelicu levo
if (currentIndex === 0) {
document.querySelector('.carousel-prev').style.display = 'none';
} else {
document.querySelector('.carousel-prev').style.display = 'block';
}
// Ako je na poslednjem, onemogućiti strelicu desno
if (currentIndex >= totalImages - visibleImages) {
document.querySelector('.carousel-next').style.display = 'none';
} else {
document.querySelector('.carousel-next').style.display = 'block';
}
}
// Dugme za pomeranje levo
document.querySelector('.carousel-prev').addEventListener('click', () => {
if (currentIndex > 0) {
currentIndex--;
} else {
currentIndex = totalImages - visibleImages; // Ako je trenutna pozicija 0, vrati na poslednje slike
}
updateCarousel();
updateArrows();
});
// Dugme za pomeranje desno
document.querySelector('.carousel-next').addEventListener('click', () => {
if (currentIndex < totalImages - visibleImages) {
currentIndex++;
} else {
currentIndex = 0; // Ako je trenutna pozicija poslednja, vrati na početak
}
updateCarousel();
updateArrows();
});
// Automatski pomeranje
setInterval(() => {
if (currentIndex < totalImages - visibleImages) {
currentIndex++;
} else {
currentIndex = 0;
}
updateCarousel();
updateArrows();
}, 3000); // Pomeranje svakih 3 sekunde
// Dodavanje osluškivača za promenu veličine ekrana
window.addEventListener('resize', updateVisibleImages);
// Inicijalizacija
updateVisibleImages();
updateArrows();
}
let triggerParent = document.getElementsByClassName('call-back-feature')[0];
if(triggerParent) {
let trigger = triggerParent.getElementsByClassName('trigger');
for(let i = 0; i < trigger.length; i++){
trigger[i].textContent = 'Imate pitanje za ovaj proizvod?'
}
}
//lightbox mob start
document.addEventListener('DOMContentLoaded', function () {
if (window.innerWidth <= 768) { // Provera za uređaje sa širinom ekrana manjom od 768px
document.querySelectorAll('.elementor-image-gallery a').forEach(function (link) {
link.removeAttribute('href'); // Uklanja link koji otvara lightbox
link.style.pointerEvents = 'none'; // Onemogućava klik na link
});
}
});
//lightbox mob end
//Sve za vase kupatilo start
document.addEventListener("DOMContentLoaded", function () {
const carousel = document.querySelector(".custom-carousel-inner");
const items = document.querySelectorAll(".custom-carousel-item");
const prevButton = document.querySelector(".custom-carousel-control-prev");
const nextButton = document.querySelector(".custom-carousel-control-next");
let currentIndex = 0;
function updateCarousel() {
if(items){
const width = items[0].clientWidth;
}
const width = items[0].clientWidth;
carousel.style.transform = `translateX(-${currentIndex * width}px)`;
}
if(prevButton){
prevButton.addEventListener("click", function () {
currentIndex = (currentIndex === 0) ? items.length - 1 : currentIndex - 1;
updateCarousel();
});
}
if(nextButton){
nextButton.addEventListener("click", function () {
currentIndex = (currentIndex === items.length - 1) ? 0 : currentIndex + 1;
updateCarousel();
});
}
window.addEventListener("resize", updateCarousel);
});
//Sve za vase kupatilo end
//korpa mobilni start
const mediaQuery = window.matchMedia('(max-width: 768px)');
if (mediaQuery.matches) {
let dugmad = document.getElementsByClassName('add_to_cart_button ');
if(dugmad){
for(let i = 0; i < dugmad.length; i++){
dugmad[i].textContent = 'Korpa'
}
}
} else {
}
//korpa mobilni end
//Padajuci meni footer start
document.querySelectorAll('.section-headerKP').forEach(header => {
header.addEventListener('click', () => {
const content = header.nextElementSibling;
const isActive = header.classList.contains('active');
// Zatvori sve ostale sekcije (opciono)
document.querySelectorAll('.section-headerKP').forEach(otherHeader => {
if (otherHeader !== header) {
otherHeader.classList.remove('active');
otherHeader.nextElementSibling.style.display = 'none';
}
});
if (isActive) {
header.classList.remove('active');
content.style.display = 'none';
document.getElementById('arrowKP').textContent = '▼'
} else {
header.classList.add('active');
content.style.display = 'block';
document.getElementById('arrowKP').textContent = '▲'
}
});
});
//Padajuci meni footer end
//Padajuci meni footer mobilni start
const sirina = window.matchMedia('(max-width: 993px)');
if (sirina.matches) {
let sectionHeaderLokacije = document.getElementsByClassName('section-header-lokacije');
for (let i = 0; i < sectionHeaderLokacije.length; i++) {
sectionHeaderLokacije[i].addEventListener('click', function() {
let menu = document.getElementsByClassName('section-content-short');
let strelica = sectionHeaderLokacije[i].getElementsByClassName('strelica')[0]; // Selektovanje strelice za trenutnu sekciju
if (menu[i].style.display === 'block') {
menu[i].style.display = 'none';
strelica.textContent = '▼';
} else {
menu[i].style.display = 'block';
strelica.textContent = '▲';
}
});
}
let sediste = document.querySelector('#text-23 span')
sediste.addEventListener('click', function(){
const menuSedista = document.getElementById('sedisteId');
if (menuSedista.style.display === 'block') {
menuSedista.style.display = 'none';
sediste.innerHTML = sediste.innerHTML.replace(/▲/g, `▼`);
} else {
menuSedista.style.display = 'block';
sediste.innerHTML = sediste.innerHTML.replace(/▼/g, `▲`);
}
})
sediste.innerHTML = sediste.innerHTML.replace(/▼/g, `▼`);
} else {
let sediste = document.querySelector('#text-23 span')
sediste.textContent = sediste.textContent.replace('▼', "");
}
let kontaktWiget = document.querySelector('#custom_html-18 span');
kontaktWiget.innerHTML = `
KONTAKT`
//Padajuci meni footer mobilni end
document.addEventListener("DOMContentLoaded", function () {
const outOfStockElements = document.querySelectorAll(".product-out-of-stock em");
outOfStockElements.forEach(function (element) {
if (element.textContent.trim() === "Out of stock") {
element.textContent = "Nema na stanju";
}
});
});
document.addEventListener("DOMContentLoaded", function () {
const textTranslations = {
"Product name": "Naziv proizvoda",
"Unit price": "Cena",
"Stock status": "Zalihe",
"Out of stock": "Nema na stanju",
"In stock": "Dostupno",
"No products added to the Lista želja": "Ni jedan proizvod nije dodat u Listu želja.",
"Share on": "Podeli",
"Checkout": "Poručivanje",
"View cart": "Pogledaj korpu",
"has been added to your": "je dodat u Vašu",
"list": "listu",
};
const elements = document.querySelectorAll("*");
elements.forEach(function (element) {
if (element.childNodes.length > 0) {
element.childNodes.forEach(function (node) {
if (node.nodeType === Node.TEXT_NODE) {
Object.keys(textTranslations).forEach(function (key) {
const regex = new RegExp(`\\b${key}\\b`, "gi");
if (node.textContent.match(regex)) {
node.textContent = node.textContent.replace(regex, textTranslations[key]);
}
});
}
});
}
});
});
document.addEventListener("DOMContentLoaded", function () {
const elements = document.querySelectorAll("*:not(script):not(style)");
elements.forEach(function (element) {
element.childNodes.forEach(function (node) {
if (node.nodeType === Node.TEXT_NODE && node.textContent.match(/wishlist/i)) {
node.textContent = node.textContent.replace(/wishlist/gi, "Lista želja");
}
});
});
});