{"id":185,"date":"2024-06-10T16:08:35","date_gmt":"2024-06-10T14:08:35","guid":{"rendered":"https:\/\/serelys.hr\/%d0%ba%d0%be%d1%80%d0%bf%d0%b0\/"},"modified":"2024-09-12T17:37:48","modified_gmt":"2024-09-12T15:37:48","slug":"korpa","status":"publish","type":"page","link":"https:\/\/serelys.hr\/sr\/korpa\/","title":{"rendered":"Korpa"},"content":{"rendered":"<script>\r\nfunction applyCouponStyle() {\r\n    const macka= document.getElementById('ast-coupon-trigger');\r\n    const couponDiv = document.querySelector('.coupon');\r\n    let element = document.querySelector('.cart-discount.coupon-meno15');\r\n    const cartTable = document.querySelector('.woocommerce-cart-form__contents');\r\n    if (couponDiv && cartTable) {\r\n        cartTable.parentNode.insertBefore(couponDiv, cartTable.nextSibling);\r\n    }\r\n    if (couponDiv && !element) {\r\n            couponDiv.style.setProperty('display', 'flex', 'important');\r\n        }\r\n   if(couponDiv && element){\r\ncouponDiv.style.setProperty('display', 'none', 'important');\r\n}\r\n\r\n    const couponDivs = document.querySelectorAll('.coupon');\r\n\r\n    if (couponDivs.length > 1) {\r\n        \/\/ Remove the last coupon div from the DOM\r\n        couponDivs[couponDivs.length - 1].remove();\r\n    }\r\n    macka.style.display=\"none\";\r\n        const infoDiv = document.querySelector('.woocommerce-info');\r\n\r\n    if (infoDiv) {\r\n            \/\/ Check if the screen width is less than or equal to 767px (mobile)\r\n            if (window.innerWidth <= 767) {\r\n               infoDiv.style.fontSize = '19px'; \/\/ Make font size bigger\r\n                infoDiv.style.fontWeight = 'bold'; \/\/ Make text bold\r\n                \/\/ On mobile, add a line break before \"MENO15\"\r\n                const updatedText = infoDiv.innerHTML.replace('MENO15', '<span style=\"color: #f0849b;margin-left:1px;\">MENO15<\/span>');\r\n                infoDiv.innerHTML = updatedText;\r\n            } else {\r\n                infoDiv.style.fontSize = '20px'; \/\/ Make font size bigger\r\n                infoDiv.style.fontWeight = 'bold'; \/\/ Make text bold\r\n                \/\/ For larger screens, just color the \"MENO15\" without adding a line break\r\n                const updatedText = infoDiv.innerHTML.replace('MENO15', '<span style=\"color: #f0849b;\">MENO15<\/span>');\r\n                infoDiv.innerHTML = updatedText;\r\n            }\r\n        }\r\n\r\n    \/\/ Get the tr element with class 'cart-discount coupon-meno15'\r\n    const couponRow = document.querySelector('.cart-discount.coupon-meno15');\r\n    \r\n    if (couponRow) {\r\n        \/\/ Modify the background color for the 'coupon-meno15' row\r\n        couponRow.style.backgroundColor = '#F0F5FA'; \/\/ Change background color\r\n    }\r\n    \r\n}\r\n\r\ndocument.addEventListener('DOMContentLoaded', function() {\r\n    \/\/ Apply on DOM load\r\n    applyCouponStyle();\r\n\r\n    \/\/ Reapply the style after every AJAX request\r\n    jQuery(document).ajaxComplete(function() {\r\n        applyCouponStyle();\r\n    });\r\n\r\n});\r\n\r\n\r\n<\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-185","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Korpa - Serelys<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/serelys.hr\/korpa\/\" \/>\n<meta property=\"og:locale\" content=\"sr_RS\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Korpa - Serelys\" \/>\n<meta property=\"og:url\" content=\"https:\/\/serelys.hr\/korpa\/\" \/>\n<meta property=\"og:site_name\" content=\"Serelys\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/serelys.rs\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-12T15:37:48+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Procenjeno vreme \u010ditanja\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/serelys.hr\/korpa\/\",\"url\":\"https:\/\/serelys.hr\/korpa\/\",\"name\":\"Korpa - Serelys\",\"isPartOf\":{\"@id\":\"https:\/\/serelys.hr\/#website\"},\"datePublished\":\"2024-06-10T14:08:35+00:00\",\"dateModified\":\"2024-09-12T15:37:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/serelys.hr\/korpa\/#breadcrumb\"},\"inLanguage\":\"sr-RS\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/serelys.hr\/korpa\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/serelys.hr\/korpa\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/serelys.hr\/naslovna\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Korpa\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/serelys.hr\/#website\",\"url\":\"https:\/\/serelys.hr\/\",\"name\":\"Serelys\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/serelys.hr\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/serelys.hr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"sr-RS\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/serelys.hr\/#organization\",\"name\":\"Serelys\",\"url\":\"https:\/\/serelys.hr\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"sr-RS\",\"@id\":\"https:\/\/serelys.hr\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/serelys.hr\/wp-content\/uploads\/2024\/05\/serelys.png\",\"contentUrl\":\"https:\/\/serelys.hr\/wp-content\/uploads\/2024\/05\/serelys.png\",\"width\":217,\"height\":62,\"caption\":\"Serelys\"},\"image\":{\"@id\":\"https:\/\/serelys.hr\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/serelys.rs\",\"https:\/\/www.instagram.com\/serelys_Rs\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Korpa - Serelys","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/serelys.hr\/korpa\/","og_locale":"sr_RS","og_type":"article","og_title":"Korpa - Serelys","og_url":"https:\/\/serelys.hr\/korpa\/","og_site_name":"Serelys","article_publisher":"https:\/\/www.facebook.com\/serelys.rs","article_modified_time":"2024-09-12T15:37:48+00:00","twitter_card":"summary_large_image","twitter_misc":{"Procenjeno vreme \u010ditanja":"1 minut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/serelys.hr\/korpa\/","url":"https:\/\/serelys.hr\/korpa\/","name":"Korpa - Serelys","isPartOf":{"@id":"https:\/\/serelys.hr\/#website"},"datePublished":"2024-06-10T14:08:35+00:00","dateModified":"2024-09-12T15:37:48+00:00","breadcrumb":{"@id":"https:\/\/serelys.hr\/korpa\/#breadcrumb"},"inLanguage":"sr-RS","potentialAction":[{"@type":"ReadAction","target":["https:\/\/serelys.hr\/korpa\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/serelys.hr\/korpa\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/serelys.hr\/naslovna\/"},{"@type":"ListItem","position":2,"name":"Korpa"}]},{"@type":"WebSite","@id":"https:\/\/serelys.hr\/#website","url":"https:\/\/serelys.hr\/","name":"Serelys","description":"","publisher":{"@id":"https:\/\/serelys.hr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/serelys.hr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"sr-RS"},{"@type":"Organization","@id":"https:\/\/serelys.hr\/#organization","name":"Serelys","url":"https:\/\/serelys.hr\/","logo":{"@type":"ImageObject","inLanguage":"sr-RS","@id":"https:\/\/serelys.hr\/#\/schema\/logo\/image\/","url":"https:\/\/serelys.hr\/wp-content\/uploads\/2024\/05\/serelys.png","contentUrl":"https:\/\/serelys.hr\/wp-content\/uploads\/2024\/05\/serelys.png","width":217,"height":62,"caption":"Serelys"},"image":{"@id":"https:\/\/serelys.hr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/serelys.rs","https:\/\/www.instagram.com\/serelys_Rs\/"]}]}},"_links":{"self":[{"href":"https:\/\/serelys.hr\/sr\/wp-json\/wp\/v2\/pages\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serelys.hr\/sr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/serelys.hr\/sr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/serelys.hr\/sr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serelys.hr\/sr\/wp-json\/wp\/v2\/comments?post=185"}],"version-history":[{"count":61,"href":"https:\/\/serelys.hr\/sr\/wp-json\/wp\/v2\/pages\/185\/revisions"}],"predecessor-version":[{"id":1513,"href":"https:\/\/serelys.hr\/sr\/wp-json\/wp\/v2\/pages\/185\/revisions\/1513"}],"wp:attachment":[{"href":"https:\/\/serelys.hr\/sr\/wp-json\/wp\/v2\/media?parent=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}