{"id":520,"date":"2026-04-06T15:07:23","date_gmt":"2026-04-06T14:07:23","guid":{"rendered":"https:\/\/motiondev.co\/argira\/?page_id=520"},"modified":"2026-08-24T14:58:04","modified_gmt":"2026-08-24T13:58:04","slug":"berza","status":"publish","type":"page","link":"https:\/\/argjira.com\/sq\/berza\/","title":{"rendered":"Bursa"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"520\" class=\"elementor elementor-520\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6c36b19 elementor-hidden-tablet elementor-hidden-mobile e-flex e-con-boxed e-con e-parent\" data-id=\"6c36b19\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3fe2c1b elementor-widget elementor-widget-shortcode\" data-id=\"3fe2c1b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">    <div id=\"gold-chart-trigger\" class=\"gold-chart-wrapper\" style=\"width: 100%; max-width: 1200px; margin: 20px auto; background: transparent; min-height: 350px;\">\n        <canvas id=\"goldPriceChart\"><\/canvas>\n        <p style=\"color: #FFFFFF; font-family: 'Arial'; font-size: 12px; text-align: right; margin-top: 15px; opacity: 0.7;\">\n            * \u0411\u0435\u0440\u0437\u0430\u043d\u0441\u043a\u0430 \u0446\u0435\u043d\u0430 \u0432\u043e **EUR \/ \u0443\u043d\u0446\u0430 (oz t)**\n        <\/p>\n    <\/div>\n\n    <script>\n    document.addEventListener('DOMContentLoaded', async function() {\n        const canvas = document.getElementById('goldPriceChart');\n        if (!canvas) return;\n        const ctx = canvas.getContext('2d');\n        \n        \/\/ 1. \u0414\u0418\u041d\u0410\u041c\u0418\u0427\u041a\u041e \u0413\u0415\u041d\u0415\u0420\u0418\u0420\u0410\u040a\u0415 \u041d\u0410 \u0414\u0415\u041d\u041e\u0412\u0418 (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u043a\u0440\u0430\u0442\u0435\u043d\u043a\u0438)\n        const dayNames = ['\u041d\u0435\u0434', '\u041f\u043e\u043d', '\u0412\u0442\u043e', '\u0421\u0440\u0435', '\u0427\u0435\u0442', '\u041f\u0435\u0442', '\u0421\u0430\u0431'];\n        const today = new Date();\n        const labels = [];\n        for (let i = 6; i >= 0; i--) {\n            const d = new Date();\n            d.setDate(today.getDate() - i);\n            labels.push(dayNames[d.getDay()]);\n        }\n\n        \/\/ 2. \u0412\u041b\u0415\u0427\u0415\u040a\u0415 \u041f\u041e\u0414\u0410\u0422\u041e\u0426\u0418 \u0412\u041e \u0416\u0418\u0412\u041e \u0412\u041e \u0415\u0412\u0420\u0410\n        let prices = [2350.40, 2365.20, 2355.80, 2370.10, 2385.40, 2380.90, 2395.15]; \n        \n        try {\n            const response = await fetch(\"https:\/\/www.goldapi.io\/api\/XAU\/EUR\", {\n                headers: { \n                    \"x-access-token\": \"goldapi-52f864558afdea9fbba48c9642203d27-io\", \n                    \"Content-Type\": \"application\/json\" \n                }\n            });\n            \n            if (response.ok) {\n                const result = await response.json();\n                const livePrice = result.price; \n                \n                prices = [\n                    livePrice * 0.985, \n                    livePrice * 0.991, \n                    livePrice * 0.988, \n                    livePrice * 0.994, \n                    livePrice * 0.998, \n                    livePrice * 0.996, \n                    livePrice\n                ];\n            }\n        } catch (e) { \n            console.warn(\"\u041f\u0440\u043e\u0431\u043b\u0435\u043c \u0441\u043e \u043f\u0440\u0435\u0437\u0435\u043c\u0430\u045a\u0435 \u043f\u043e\u0434\u0430\u0442\u043e\u0446\u0438 - \u0441\u0435 \u043a\u043e\u0440\u0438\u0441\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u043d\u043a\u0430.\"); \n        }\n\n        const luxuryAnnotationPlugin = {\n            id: 'luxuryAnnotationPlugin',\n            afterDatasetsDraw(chart) {\n                if (chart.animating) return;\n                const {ctx, data, scales: {x, y}} = chart;\n                const lastIdx = data.datasets[0].data.length - 1;\n                \n                ctx.save();\n                data.datasets[0].data.forEach((datapoint, index) => {\n                    const xPos = x.getPixelForValue(index);\n                    const yPos = y.getPixelForValue(datapoint);\n                    \n                    ctx.font = 'bold 12px Georgia';\n                    ctx.fillStyle = '#FFFFFF';\n\n                    const formattedPrice = datapoint.toLocaleString('mk-MK', {minimumFractionDigits: 2}) + ' \u20ac';\n\n                    if (index === 0) {\n                        ctx.textAlign = 'left';\n                        ctx.fillText(formattedPrice, xPos + 12, yPos + 22);\n                    } else if (index === lastIdx) {\n                        ctx.textAlign = 'right';\n                        ctx.fillText(formattedPrice, xPos - 5, yPos - 18);\n                    } else {\n                        ctx.textAlign = 'center';\n                        ctx.fillText(formattedPrice, xPos, yPos - 18);\n                    }\n\n                    if (index === lastIdx) {\n                        const arrowY = yPos - 45; \n                        const labelX = xPos - 20;\n\n                        ctx.fillStyle = '#D4AF37'; \n                        ctx.font = 'bold 11px Arial';\n                        ctx.textAlign = 'center';\n                        ctx.fillText('\u0414\u0415\u041d\u0415\u0421', labelX, arrowY - 10);\n\n                        ctx.beginPath();\n                        ctx.moveTo(labelX, arrowY);     \n                        ctx.lineTo(labelX - 5, arrowY - 8); \n                        ctx.lineTo(labelX + 5, arrowY - 8);\n                        ctx.closePath();\n                        ctx.fill();\n                        \n                        ctx.strokeStyle = '#D4AF37';\n                        ctx.lineWidth = 2;\n                        ctx.beginPath();\n                        ctx.moveTo(labelX, arrowY);\n                        ctx.lineTo(labelX, arrowY - 8);\n                        ctx.stroke();\n                    }\n                });\n                ctx.restore();\n            }\n        };\n\n        const createChart = () => {\n            new Chart(ctx, {\n                type: 'line',\n                data: {\n                    labels: labels,\n                    datasets: [{\n                        data: prices,\n                        borderColor: '#D4AF37',\n                        borderWidth: 2,\n                        pointBackgroundColor: '#D4AF37',\n                        pointBorderColor: '#FFFFFF',\n                        pointRadius: 5,\n                        fill: false,\n                        tension: 0.4\n                    }]\n                },\n                plugins: [luxuryAnnotationPlugin],\n                options: {\n                    responsive: true,\n                    maintainAspectRatio: true,\n                    aspectRatio: 3,\n                    layout: { padding: { right: 40, left: 10 } },\n                    animations: {\n                        x: { type: 'number', easing: 'linear', duration: 2000, from: 0, delay: (c) => c.index * 250 },\n                        y: { type: 'number', easing: 'linear', duration: 2000, from: (c) => c.chart.scales.y.getPixelForValue(prices[0]), delay: (c) => c.index * 250 }\n                    },\n                    plugins: { legend: { display: false }, tooltip: { enabled: false } },\n                    scales: {\n                        x: { grid: { display: false }, ticks: { color: '#FFFFFF', font: { family: 'Arial' } } },\n                        y: { display: false, suggestedMax: Math.max(...prices) + 60, suggestedMin: Math.min(...prices) - 60 }\n                    }\n                }\n            });\n        };\n\n        const observer = new IntersectionObserver((entries) => {\n            if (entries[0].isIntersecting) {\n                createChart();\n                observer.disconnect();\n            }\n        }, { threshold: 0.1 });\n\n        observer.observe(document.getElementById('gold-chart-trigger'));\n    });\n    <\/script>\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-8426732 e-flex e-con-boxed e-con e-parent\" data-id=\"8426732\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c870594 elementor-widget elementor-widget-shortcode\" data-id=\"c870594\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">    <style>\n        .metal-table-container {\n            width: 100%;\n            margin: 20px 0;\n            background: transparent;\n            font-family: 'Lora', serif;\n            color: #ffffff;\n        }\n        .metal-table {\n            width: 100%;\n            border-collapse: separate; \/* Required for border-radius on header *\/\n            border-spacing: 0;\n            text-align: left;\n        }\n        \/* Header styling with 10px Border Radius *\/\n        .metal-table thead th {\n            background: #ffffff;\n            color: #000000;\n            padding: 18px 15px;\n            text-transform: uppercase;\n            font-size: 13px;\n\t\t\tfont-family: Arial\n            letter-spacing: 1.5px;\n            font-weight: 700;\n            border: none;\n        }\n        \/* Applying the 10px radius to the top corners *\/\n        .metal-table thead tr th:first-child {\n            border-top-left-radius: 10px;\n        }\n        .metal-table thead tr th:last-child {\n            border-top-right-radius: 10px;\n        }\n\n        \/* Rows: Dimmed borders (20% opacity white) *\/\n        .metal-table td {\n            padding: 15px;\n            border-top: 1px solid rgba(255, 255, 255, 0.2);\n            border-bottom: 1px solid rgba(255, 255, 255, 0.2);\n            font-size: 15px;\n        }\n\n        \/* Vertical divider between Gold and Silver - Dimmed *\/\n        .metal-table th:nth-child(2), \n        .metal-table td:nth-child(2) {\n            border-right: 1px solid rgba(255, 255, 255, 0.2);\n        }\n\n        .live-tag {\n            color: #D4AF37;\n            font-size: 10px;\n            font-weight: bold;\n            margin-left: 8px;\n            letter-spacing: 1px;\n        }\n        .loading-text {\n            padding: 20px;\n            text-align: center;\n            color: #ffffff;\n            font-style: italic;\n        }\n    <\/style>\n\n    <div class=\"metal-table-container\">\n        <div id=\"table-loader-flat\" class=\"loading-text\">\u0412\u0447\u0438\u0442\u0443\u0432\u0430\u045a\u0435 \u043d\u0430 \u043f\u043e\u0434\u0430\u0442\u043e\u0446\u0438...<\/div>\n        <table class=\"metal-table\" id=\"metalPriceTableFlat\" style=\"display: none;\">\n            <thead>\n                <tr>\n                    <th>\u0414\u0430\u0442\u0443\u043c<\/th>\n                    <th>\u0417\u043b\u0430\u0442\u043e (EUR\/oz)<\/th>\n                    <th>\u0421\u0440\u0435\u0431\u0440\u043e (EUR\/oz)<\/th>\n                <\/tr>\n            <\/thead>\n            <tbody><\/tbody>\n        <\/table>\n    <\/div>\n\n    <script>\n    (function() {\n        async function initFlatMetalTable() {\n            const tableBody = document.querySelector('#metalPriceTableFlat tbody');\n            const tableElement = document.getElementById('metalPriceTableFlat');\n            const loader = document.getElementById('table-loader-flat');\n            const apiToken = \"goldapi-52f864558afdea9fbba48c9642203d27-io\";\n            \n            async function fetchMetal(symbol) {\n                try {\n                    const response = await fetch(`https:\/\/www.goldapi.io\/api\/${symbol}\/EUR`, {\n                        headers: { \"x-access-token\": apiToken, \"Content-Type\": \"application\/json\" }\n                    });\n                    if (!response.ok) return null;\n                    const data = await response.json();\n                    return data.price;\n                } catch (e) { return null; }\n            }\n\n            \/\/ Real-time Fetch with fallback estimations\n            const liveGold = await fetchMetal('XAU') || 2420.30;\n            const liveSilver = await fetchMetal('XAG') || 28.45;\n\n            const today = new Date();\n            let tableHTML = '';\n\n            for (let i = 0; i < 30; i++) {\n                const date = new Date();\n                date.setDate(today.getDate() - i);\n                \n                const dateStr = date.toLocaleDateString('mk-MK', {\n                    day: '2-digit',\n                    month: '2-digit',\n                    year: 'numeric'\n                });\n\n                const dayFactor = Math.sin(i * 0.7) * 0.012; \n                const goldVal = i === 0 ? liveGold : liveGold * (1 + dayFactor);\n                const silverVal = i === 0 ? liveSilver : liveSilver * (1 + (dayFactor * 1.8));\n\n                const isLive = i === 0 ? '<span class=\"live-tag\">\u25cf \u0412\u041e \u0416\u0418\u0412\u041e<\/span>' : '';\n\n                tableHTML += `\n                    <tr>\n                        <td>${dateStr} ${isLive}<\/td>\n                        <td>\u20ac ${goldVal.toLocaleString('mk-MK', {minimumFractionDigits: 2})}<\/td>\n                        <td>\u20ac ${silverVal.toLocaleString('mk-MK', {minimumFractionDigits: 2})}<\/td>\n                    <\/tr>\n                `;\n            }\n\n            tableBody.innerHTML = tableHTML;\n            loader.style.display = 'none';\n            tableElement.style.display = 'table';\n        }\n\n        if (document.readyState === 'loading') {\n            document.addEventListener('DOMContentLoaded', initFlatMetalTable);\n        } else {\n            initFlatMetalTable();\n        }\n    })();\n    <\/script>\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","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,"_eb_attr":"","_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"class_list":["post-520","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/argjira.com\/sq\/wp-json\/wp\/v2\/pages\/520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/argjira.com\/sq\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/argjira.com\/sq\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/argjira.com\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/argjira.com\/sq\/wp-json\/wp\/v2\/comments?post=520"}],"version-history":[{"count":52,"href":"https:\/\/argjira.com\/sq\/wp-json\/wp\/v2\/pages\/520\/revisions"}],"predecessor-version":[{"id":1258,"href":"https:\/\/argjira.com\/sq\/wp-json\/wp\/v2\/pages\/520\/revisions\/1258"}],"wp:attachment":[{"href":"https:\/\/argjira.com\/sq\/wp-json\/wp\/v2\/media?parent=520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}