{"id":511,"date":"2018-05-09T05:00:55","date_gmt":"2018-05-09T05:00:55","guid":{"rendered":"http:\/\/14.136.43.216\/goldprice\/index.php\/hestia-front\/"},"modified":"2025-10-31T17:09:52","modified_gmt":"2025-10-31T09:09:52","slug":"hestia-front","status":"publish","type":"page","link":"https:\/\/hongkong-gold.com\/goldprice_ch\/","title":{"rendered":"Front Page"},"content":{"rendered":"<div id=\"pl-511\"  class=\"panel-layout\" ><div id=\"pg-511-0\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-511-0-0\"  class=\"panel-grid-cell\" ><div id=\"panel-511-0-0-0\" class=\"so-panel widget widget_themegrill_flash_slider tg-section tg-slider-widget panel-first-child panel-last-child\" data-index=\"0\" ><div class=\"top_slider panel-widget-style panel-widget-style-for-511-0-0-0\" > <div class=\"tg-slider-widget slider-dark slider-content-center slider-control-center full-width\">\n\t<div class=\"swiper-container\">\n\t\t<div class=\"swiper-wrapper\">\n\t\t\t\t\t\t<div class=\"swiper-slide\">\n\t\t\t\t<figure class=\"slider-image\" >\n\t\t\t\t\t<img src=\"http:\/\/hongkong-gold.com\/goldprice\/wp-content\/uploads\/2018\/06\/banner_v1-shoter.jpg\"\/>\n\t\t\t\t<\/figure>\n\t\t\t\t<div class=\"slider-content\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"header_mini_script\">\t\n\t\t\t\t\t<span>\u9999\u6e2f\u6d77\u95dc\u8cb4\u91d1\u5c6c\u53ca\u5bf6\u77f3\u4ea4\u6613\u5546B\u985e\u8a3b\u518a\u4eba<\/span>\n\t\t\t\t\t<br>\n\t\t\t\t\t<span>\u8a3b\u518a\u7de8\u865f B-B-23-06-00606<\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"front_page_header_price_mini\" style=\"display: none\"><span id=\"front_border\"><\/span>\n\t\t\t\t\t\t<select id=\"currency_change_mini\" class=\"currency_change\" onchange=\"frontChanged('mini')\">\n\t\t\t\t\t\t\t<option value=\"USD\">\u7f8e\u91d1<\/option>\n\t\t\t\t\t\t\t<option value=\"HKD\">\u6e2f\u5143<\/option>\n\t\t\t\t\t\t\t<option value=\"CNY\">\u4eba\u6c11\u5e63<\/option>\n\t\t\t\t\t\t<\/select> \n\t\t\t\t\t\t\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"tg-container\" style=\"padding-right:20%\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\tvar globalCurrency = 'USD';\n\t\t\t\t\t\t\t\tjQuery( document ).ready(function() {\n\t\t\t\t\t\t\t\t\tif ( typeof get_usd_gold_price  !== 'undefined' && typeof get_usd_gold_price === 'function') { \n\t\t\t\t\t\t\t\t\t\tvar usd_current_price = get_usd_gold_price();\n\t\t\t\t\t\t\t\t\t\tjQuery('#front_page_header_price').show();\n\t\t\t\t\t\t\t\t\t\tjQuery('#front_page_header_price_mini').show();\n\t\t\t\t\t\t\t\t\t\tjQuery('#front_page_header_price span').append('\u73fe\u8ca8\u91d1\u50f9 : '+Number(usd_current_price).toFixed(2)+' \u7f8e\u91d1\/\u516c\u65a4 ');\n\t\t\t\t\t\t\t\t\t\tjQuery('#front_page_header_price_mini span').append('\u73fe\u8ca8\u91d1\u50f9 : '+Number(usd_current_price).toFixed(2)+' \u7f8e\u91d1\/\u516c\u65a4 ');\n\t\t\t\t\t\t\t\t\t\tsetInterval(resetHeaderPrice, 10000);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tfunction syncfrontChanged(currency){\n\t\t\t\t\t\t\t\t\tif(currency == 'USD'){\n\t\t\t\t\t\t\t      \t\tdocument.getElementById('currency_change').selectedIndex = 0;\n\t\t\t\t\t\t\t      \t\tdocument.getElementById('currency_change_mini').selectedIndex = 0;\n\t\t\t\t\t\t\t      \t}\n\t\t\t\t\t\t\t      \telse if (currency == 'HKD'){\n\t\t\t\t\t\t\t      \t\tdocument.getElementById('currency_change').selectedIndex = 1;\n\t\t\t\t\t\t\t      \t\tdocument.getElementById('currency_change_mini').selectedIndex = 1;\n\t\t\t\t\t\t\t      \t}\n\t\t\t\t\t\t\t      \telse if (currency == 'CNY'){\n\t\t\t\t\t\t\t      \t\tdocument.getElementById('currency_change').selectedIndex = 2;\n\t\t\t\t\t\t\t      \t\tdocument.getElementById('currency_change_mini').selectedIndex = 2;\n\t\t\t\t\t\t\t      \t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfunction frontChanged(from){\n\t\t\t\t\t\t\t\t\tif(from=='normal'){\n\t\t\t\t\t\t\t\t\t\tglobalCurrency = document.getElementById('currency_change').value;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tglobalCurrency = document.getElementById('currency_change_mini').value;\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsyncfrontChanged(globalCurrency);\n\t\t\t\t\t\t\t\t\tresetHeaderPrice();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfunction resetHeaderPrice()\n\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t    jQuery.ajax({\n\t\t\t\t\t\t\t\t\t      type:\"GET\",\n\t\t\t\t\t\t\t\t\t      url:\"https:\/\/hongkong-gold.com\/goldprice_ch\/index.php\/wp-json\/goldprice-api\/v1\/prices\",\n\t\t\t\t\t\t\t\t\t      datatype:\"json\",\n\t\t\t\t\t\t\t\t\t      success:function(data)\n\t\t\t\t\t\t\t\t\t      {\t\t\n\t\t\t\t\t\t\t\t\t      \tif(globalCurrency == 'USD'){\n\t\t\t\t\t\t\t\t\t      \t\tvar current_currency_price = getKgFromOz(data.items[2].xauPrice * 1.028);\n\t\t\t\t\t\t\t\t\t      \t\tvar current_curreny_name = '\u7f8e\u91d1';\n\t\t\t\t\t\t\t\t\t      \t}\n\t\t\t\t\t\t\t\t\t      \telse if (globalCurrency == 'HKD'){\n\t\t\t\t\t\t\t\t\t      \t\tvar current_currency_price = getKgFromOz(data.items[1].xauPrice  * 1.028);\n\t\t\t\t\t\t\t\t\t      \t\tvar current_curreny_name = '\u6e2f\u5143';\n\t\t\t\t\t\t\t\t\t      \t}\n\t\t\t\t\t\t\t\t\t      \telse if (globalCurrency == 'CNY'){\n\t\t\t\t\t\t\t\t\t      \t\tvar current_currency_price = getKgFromOz(data.items[0].xauPrice  * 1.028);\n\t\t\t\t\t\t\t\t\t      \t\tvar current_curreny_name = '\u4eba\u6c11\u5e01';\n\t\t\t\t\t\t\t\t\t      \t}\n\n\t\t\t\t\t\t\t\t\t      \t  \/\/ var usd_current_price = getKgFromOz(data.items[2].xauPrice);\n\t\t\t\t\t\t\t\t\t      \t  jQuery('#front_page_header_price span').empty();\n\t\t\t\t\t\t\t\t\t      \t  jQuery('#front_page_header_price_mini span').empty();\n\t\t\t\t\t\t\t\t\t          jQuery('#front_page_header_price span').append('\u73fe\u8ca8\u91d1\u50f9 : '+Number(current_currency_price).toFixed(2)+' '+current_curreny_name+'\/\u516c\u65a4 ');\n\t\t\t\t\t\t\t\t\t\t\t  jQuery('#front_page_header_price_mini span').append('\u73fe\u8ca8\u91d1\u50f9 : '+Number(current_currency_price).toFixed(2)+' '+current_curreny_name+'\/\u516c\u65a4 ');\n\t\t\t\t\t\t\t\t\t      }\n\t\t\t\t\t\t\t\t\t    });\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t<\/script>\n\n\t\t\t\t\t\t<div id=\"front_page_header_price\" style=\"display: none\"><span id=\"front_border\"><\/span>\n\t\t\t\t\t\t<select id=\"currency_change\" class=\"currency_change\" onchange=\"frontChanged('normal')\">\n\t\t\t\t\t\t\t<option value=\"USD\">\u7f8e\u91d1<\/option>\n\t\t\t\t\t\t\t<option value=\"HKD\">\u6e2f\u5143<\/option>\n\t\t\t\t\t\t\t<option value=\"CNY\">\u4eba\u6c11\u5e63<\/option>\n\t\t\t\t\t\t<\/select> \n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"caption-title\">\u9ec3\u91d1\u6295\u8cc7<\/div>\n\t\t\t\t\t\t<div class=\"caption-desc\">\u4fdd\u969c\u53ca\u589e\u9577\u4f60\u7684\u8ca1\u5bcc\n<p>\u9999\u6e2f\u6d77\u95dcB\u985e\u8a3b\u518a\u4eba\u8a3b\u518a\u865f\u78bc: B-B-23-06-00606<\/p><\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"btn-wrapper\">\n\t\t\t\t\t\t\t<a href=\"\/goldprice_ch\/index.php\/why-buy-gold\">\u4e86\u89e3\u66f4\u591a<\/a>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<div class=\"swiper-pagination\"><\/div>\n\t\t<div class=\"slider-arrow\">\n\t\t\t<div class=\"swiper-button-next\"><\/div>\n\t\t\t<div class=\"swiper-button-prev\"><\/div>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n<\/div><\/div><\/div><\/div><div id=\"pg-511-1\"  class=\"panel-grid panel-has-style\" ><div class=\"panel-row-style panel-row-style-for-511-1\" ><div id=\"pgc-511-1-0\"  class=\"panel-grid-cell\" ><div id=\"panel-511-1-0-0\" class=\"so-panel widget widget_themegrill_flash_service tg-widget tg-single-service panel-first-child panel-last-child\" data-index=\"1\" >\n<div class=\"tg-service-widget tg-service-layout-2\">\n\t<div class=\"service-wrapper\">\n\t\t<a href=\"\/goldprice_ch\/index.php\/news\/\">\n\t\t<div class=\"service-icon-title-wrapper clearfix\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<figure class=\"service-image-wrap\"><img src=\"\/goldprice\/wp-content\/uploads\/2018\/06\/goldtrading_v1-e1529376258556.jpg\" \/><\/figure>\n\t\t\t\t\t<\/div>\n\t\t<\/a>\n\t\t\t\t\t\t\t\t<a class=\"service-more\" style=\"width:100%;padding-left:5%;padding-top:2%;padding-bottom:2%; top:-2px\" href=\"\/goldprice_ch\/index.php\/news\/\">\u5be6\u91d1\u8cb7\u8ce3<\/a>\n\t\t\t<\/div>\n<\/div>\n<\/div><\/div><div id=\"pgc-511-1-1\"  class=\"panel-grid-cell\" ><div id=\"panel-511-1-1-0\" class=\"so-panel widget widget_themegrill_flash_service tg-widget tg-single-service panel-first-child panel-last-child\" data-index=\"2\" >\n<div class=\"tg-service-widget tg-service-layout-2\">\n\t<div class=\"service-wrapper\">\n\t\t<a href=\"\/goldprice_ch\/index.php\/ornaments-rebuy\/\">\n\t\t<div class=\"service-icon-title-wrapper clearfix\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<figure class=\"service-image-wrap\"><img src=\"http:\/\/hongkong-gold.com\/goldprice_ch\/wp-content\/uploads\/2020\/09\/5H66IKOWW4MLXMVTBZ3UK7VU4Y.jpg\" \/><\/figure>\n\t\t\t\t\t<\/div>\n\t\t<\/a>\n\t\t\t\t\t\t\t\t<a class=\"service-more\" style=\"width:100%;padding-left:5%;padding-top:2%;padding-bottom:2%; top:-2px\" href=\"\/goldprice_ch\/index.php\/ornaments-rebuy\/\">\u98fe\u91d1\u56de\u6536<\/a>\n\t\t\t<\/div>\n<\/div>\n<\/div><\/div><div id=\"pgc-511-1-2\"  class=\"panel-grid-cell\" ><div id=\"panel-511-1-2-0\" class=\"so-panel widget widget_themegrill_flash_service tg-widget tg-single-service panel-first-child panel-last-child\" data-index=\"3\" >\n<div class=\"tg-service-widget tg-service-layout-2\">\n\t<div class=\"service-wrapper\">\n\t\t<a href=\"\/goldprice_ch\/index.php\/about-us#malca\">\n\t\t<div class=\"service-icon-title-wrapper clearfix\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<figure class=\"service-image-wrap\"><img src=\"\/goldprice\/wp-content\/uploads\/2018\/06\/shutterstock_51832540.png\" \/><\/figure>\n\t\t\t\t\t<\/div>\n\t\t<\/a>\n\t\t\t\t\t\t\t\t<a class=\"service-more\" style=\"width:100%;padding-left:5%;padding-top:2%;padding-bottom:2%; top:-2px\" href=\"\/goldprice_ch\/index.php\/about-us#malca\">\u4fdd\u96aa\u5009\u5eab<\/a>\n\t\t\t<\/div>\n<\/div>\n<\/div><\/div><\/div><\/div><div id=\"pg-511-2\"  class=\"panel-grid panel-has-style\" ><div class=\"panel-row-style panel-row-style-for-511-2\" ><div id=\"pgc-511-2-0\"  class=\"panel-grid-cell\" >    \n       <style>\n       .selected_tag{\n       \tfloat:left;\n       \twidth:400px;\n       }\n       .select_box{\n       \t\twidth:360px;\n       \t\theight:50px;\n       \t\tmargin: 40px 20px;\n       \t\tbackground-color:#252525;\n       \t\tcolor:#FFF;\n       \t\tborder: 1px solid #765912;\n\t\t\tdisplay:none;\n       }\n       \t.chart_size{\n       \t\twidth:800px;\n       \t\theight:400px;\n       \t\tfloat:left;\n       \t}\n       \t.current_price{\n       \t\tborder: 1px solid #765912;\n       \t\tmargin: 30px 20px;\n       \t\twidth:360px;\n       \t\theight:50px;\n\n       \t}\n       \t.minus_color{\n       \t\tcolor:red;\n       \t}\n       \t.plus_color{\n       \t\tcolor:green;\n       \t}\n       \t.big_cost{\n       \t\tcolor:#FFF;\n       \t\tfont-size:20px;\n       \t\ttext-align: center;\n       \t\tfont-weight: bold;\n       \t}\n       \t.big_cost_after{\n       \t\t\/*content: \"  \\f0dd\";*\/\n       \t\tfont-family: FontAwesome;\n       \t\tfont-style: normal;\n       \t}\n       \t#up_down{\n       \t\tfont-size:12px;\n       \t\ttext-align: center;\n       \t}\n       <\/style>\n       <h3 class=\"widget-title\">\u5be6\u6642\u502b\u6566\u91d1\u50f9<\/h3>\n       <div class=\"tg-column-wrapper selected_tag\">\n\t\t\t<div id=\"current_price\" class=\"current_price\">\n\t\t\t\t<div class=\"big_cost\"><\/div>\n\t\t\t\t<div id=\"up_down\"><\/div>\n\t\t\t<\/div>\n\t\t\t<select id=\"chart_currency\" class=\"select_box\" onchange=\"selectChanged()\">\n\t\t\t\t<option value=\"USD\">USD<\/option>\n\t\t\t\t<option value=\"HKD\">HKD<\/option>\n\t\t\t\t<option value=\"CNY\">CNY<\/option>\n\t\t\t\t\n\t\t\t<\/select>   \n\t\t\t<select id=\"chart_bullion\" class=\"select_box\" onchange=\"selectChanged()\">\n\t\t\t\t<option value=\"oz\">oz<\/option>\n\t\t\t\t<option value=\"kg\">kg<\/option>\n\t\t\t\t\n\t\t\t<\/select> \n\t\t\n       <\/div>\n\n       <div class=\"tg-column-2 chart_size\">\n\t       <canvas id=\"myChart\" style=\"background-color:#363636\"><\/canvas>\n\t   <\/div>\n       <script>\n       \tvar globalPrice = '';\n       \tvar goldpriceRestPricesUrl = 'https:\/\/hongkong-gold.com\/goldprice_ch\/index.php\/wp-json\/goldprice-api\/v1\/prices';\n       \tsetInterval(function()\n\t\t{ \n\t\t    jQuery.ajax({\n\t\t      type:\"GET\",\n\t\t      url: goldpriceRestPricesUrl,\n\t\t      datatype:\"json\",\n\t\t      success:function(data)\n\t\t      {\t\t\n\t\t      \t  globalPrice = data;\n\t\t      \t  selectChanged();\n\t\t      }\n\t\t    });\n\t\t}, 10000);\n       \tfunction getKgFromOz(value) {\n            return value \/ 0.0311034768;\n        }\n        function getTimestamp(){\n        \tvar realTime = moment().valueOf();\n            return realTime;\n        }\n        function calSpring(prices){\n        \tvar inputData = [];\n        \tvar currency = prices[0];\n        \tvar totalPoints = prices.length - 1;\n        \tvar intervalMs = 300000;\n                  timeStamp = getTimestamp();\n                  timeStamp = timeStamp - (intervalMs * (totalPoints));\n                  for (var x = 1; x < prices.length; x++) {\n                      var price = parseFloat(prices[x]);\n                      if (price <= 0) {\n                        return null;\n                      }\n                      inputData.push([timeStamp, getKgFromOz(parseFloat(prices[x])  ),parseFloat(prices[x])  ]);\n                      timeStamp += intervalMs;\n                  }\n                  \/\/ cachePrices.push({ dataType: currencyInstrument, dataPoints: inputData });\n                  \/\/ LastTimestampPlotted = inputData[inputData.length - 1][0];\n            return inputData;\n        }\n       \tfunction getDataForTimeframe(data){\n\t       \tvar timeframeData = [];\n\t       \tvar startTimeStamp = 0;\n\t        var lastTimestamp = data[data.length - 1][0];\n\t        var lastDate = new Date(lastTimestamp);\n\t        var days = 1;\n\t        startTimeStamp = lastDate.setDate(lastDate.getDate() - days);\n\t        \/\/ Kitco \u50c5 48 \u7b46\u5373\u6642\u50f9\uff0c\u9700\u5168\u90e8\u7528\u65bc\u5716\u8868\uff1b\u820a API \u8cc7\u6599\u591a\u6642\u624d\u7528 480 \u53d6\u6a23\n\t        var skipNumber = data.length > 500 ? 480 : 1;\n\t        for (var i = data.length - 1; i >= 0; i -= skipNumber) {\n\t            if (data[i][0] >= startTimeStamp) {\n\t                timeframeData.push([data[i][0], data[i][1], data[i][2]]);\n\t            }\n\t        }\n\t\t\ttimeframeData.reverse();\n            return timeframeData;\n       \t}\n       \tfunction getMaxMin(data,bullion){\n       \t\tvar seriesDataExtremes = {\n\t            min: 0,\n\t            max: 0\n        \t};\n       \t\t\/\/ 48 \u7b46\u6642\u9700\u6383\u5168\u90e8\u53d6 min\/max\uff1b\u8cc7\u6599\u591a\u6642\u624d\u7528 48 \u53d6\u6a23\n       \t\tvar skipNumber = data.length > 100 ? 48 : 1;\n       \t\tvar bullionNum = 1;\n       \t\tif(bullion == 'kg'){\n       \t\t\tbullionNum = 1;\n       \t\t}\n       \t\telse{\n       \t\t\tbullionNum = 2;\n       \t\t}\n\t        for (var i = data.length - 1; i >= 0; i -= skipNumber) {\n\t        \tif (data[i][bullionNum] < 1){\n                \tcontinue;\t\n                }\n\t        \tif (data[i][bullionNum] > seriesDataExtremes.max) {\n                    seriesDataExtremes.max = data[i][bullionNum];\n                }\n                if (data[i][bullionNum] < seriesDataExtremes.min) {\n                    seriesDataExtremes.min = data[i][bullionNum];\n                } else if (seriesDataExtremes.min <= 0) {\n                    seriesDataExtremes.min = data[i][bullionNum];\n                }\n\t        }\n\t        return seriesDataExtremes;\n       \t}\n       \t\/\/day setting\n\n\t\tfunction processChart(values,currency,bullion,isUpdate=false){\n\t\t\tvar ctx = document.getElementById(\"myChart\").getContext('2d');\n\t\t\tvar part1  = calSpring(values);\n\t       \tvar result = getDataForTimeframe(part1);\n\t       \tvar seriesDataExtremes = getMaxMin(part1,bullion);\n\t       \tvar times = [];\n\t       \tvar output  = [];\n\t       \tfor ( var i = 0; i<= result.length - 1; i++){\n\t       \t\tdataString = moment(result[i][0]).format(\"HH:mm\");\n\t       \t\ttimes.push(dataString);\n\t       \t\tif(bullion =='kg'){\n\t       \t\t\toutput.push(result[i][1]);\t\n\t       \t\t}\n\t       \t\telse{\n\t       \t\t\toutput.push(result[i][2]);\n\t       \t\t}\n\t       \t\t\n\t       \t}\n\t       \tvar option = {\n\t\t\t    type: 'line',\n\t\t\t    data: {\n\t\t\t        labels: times,\n\t\t\t        datasets: [{\n\t\t\t            label: currency+'\/'+bullion,\n\t\t\t            data: output,\n\t\t\t            \n\t\t\t            borderColor: [\n\t\t\t            \t'rgba(118, 89, 18,1)',\n\t\t\t            ],\n\t\t\t            pointBackgroundColor: 'rgba(118, 89, 18,1)',\n\t\t\t            pointBorderWidth: 0,\n\t\t\t            tension: 0,\n\t\t\t            borderWidth: 2\n\t\t\t        }]\n\t\t\t    },\n\t\t\t    options: {\n\t\t\t    \tresponsive: true,\n\t                legend: {\n\t                    position: 'top',\n\t\t\t    labels:{\n\t\t\t\tfontColor:\"#FFF\"\n\t\t\t    }\n\t                },\n\t\t\t    \tmaintainAspectRatio: false,\n\t\t\t        scales: {\n\t\t\t            yAxes: [{\n\t\t\t                ticks: {\n\t\t\t                \tmin: seriesDataExtremes.min,\n\t                \t\t\tmax: seriesDataExtremes.max,\n\t\t\t                    beginAtZero:false,\n\t\t\t\t\t\tfontColor:'#FFF'\n\t\t\t                }\n\t\t\t            }],\n\t\t\t\t    xAxes: [{ \n                \t\t\tticks: {\n                  \t\t\t\tfontColor: \"#CCC\", \/\/ this here\n                \t\t\t},\n            \t\t\t    }]\n\t\t\t        }\n\t\t\t    },\n\t\t\t    elements: { \n\t\t\t      point: { \n\t\t\t        radius: 0,\n\t\t\t        hitRadius: 10, \n\t\t\t        hoverRadius: 5,\n\t\t\t      } \n\t\t\t    }\n\t\t\t}\n\t       \tif(!isUpdate){\n\t\t       \twindow.myChart = new Chart(ctx, option);\n\t       \t}\n\t       \telse{\n\t       \t\t\/\/ window.myChart = new Chart(ctx, option);\n\t       \t\twindow.myChart.data.datasets = option.data.datasets;\n\t       \t\twindow.myChart.options = option.options;\n\t       \t\twindow.myChart.update();\n\t       \t}\n\t\t\t\n\t\t}\n       \tfunction createChart(currency,bullion,isUpdate=false){\n       \t\tif(globalPrice == ''){\n       \t\t\tvar current_prices = [{\"xauPrice\":29328.26,\"chgXau\":-981.35,\"pcXau\":-3.24},{\"xauPrice\":34010.72,\"chgXau\":-1155.8,\"pcXau\":-3.29},{\"xauPrice\":4328,\"chgXau\":-146.4,\"pcXau\":-3.27}];\t\n       \t\t}\n       \t\telse{\n       \t\t\tvar current_prices = globalPrice.items;\n       \t\t}\n\t       \tvar HKD = [\"HKD\",34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72,34010.72];\n\t       \tvar USD = [\"USD\",4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328,4328];\n\t       \tvar CNY = [\"CNY\",29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26,29328.26];\n\t       \t\/\/console.log(current_prices[0]); == HKD\n\t       \t\/\/console.log(current_prices[1]); == USD\n\t       \tif(currency == 'USD'){\n\t       \t\tvar calData = USD;\n\t       \t}\n\t       \telse if ( currency == 'HKD'){\n\t       \t\tvar calData = HKD;\n\t       \t}\n\t       \telse{\n\t       \t\tvar calData = CNY;\n\t       \t}\n\t       \t\/\/var calData = currency == 'USD' ? USD : HKD;\n\t       \tprocessChart(calData,currency,bullion,isUpdate);\n\t       \tupdateCurrentPrice(current_prices,calData,currency,bullion);\n\t       \t\/\/ if(currency =='USD'){\n\t       \t\/\/ \tprocessChart(USD,currency,bullion);\t\n\t       \t\/\/ }\n\t       \t\/\/ else{\n\t       \t\/\/ \tprocessChart(HKD,currency,bullion);\n\t       \t\/\/ }\n\t       \t\n\t       \t\n\t       \t\n\t\t}\n\t\tfunction get_usd_gold_price(){\n\t\t\tvar current_prices = [{\"xauPrice\":29328.26,\"chgXau\":-981.35,\"pcXau\":-3.24},{\"xauPrice\":34010.72,\"chgXau\":-1155.8,\"pcXau\":-3.29},{\"xauPrice\":4328,\"chgXau\":-146.4,\"pcXau\":-3.27}];\n\t\t\tvar USD = current_prices[2];\n\t\t\treturn getKgFromOz(USD.xauPrice * 1.028 );\n\t\t}\n\n\t\tfunction selectChanged(){\n\t\t\t\/\/ var myChart = document.getElementById('myChart');\n\t\t\t\/\/ myChart.innerHTML = '&nbsp;';\n\t\t\t\/\/ $('#myChart').append('<canvas id=\"myChart\" width=\"300\" height=\"300\"><canvas>');\n\t\t\tvar currency = document.getElementById('chart_currency').value;\n\t\t\tvar bullion = document.getElementById('chart_bullion').value;\n\t\t\tcreateChart(currency,bullion,true);\n\t\t\t\/\/ alert(currency);\n\t\t}\n\t\tfunction updateCurrentPrice(current_prices,calData,currency,bullion){\n\t\t\tif(currency == 'USD'){\n\t       \t\tvar show_data = current_prices[2];\n\t       \t}\n\t       \telse if ( currency == 'HKD'){\n\t       \t\tvar show_data = current_prices[1];\n\t       \t}\n\t       \telse{\n\t       \t\tvar show_data = current_prices[0];\n\t       \t}\n\t\t\t\/\/var show_data = currency == 'USD' ? current_prices[1] : current_prices[0];\n\t\t\tjQuery('#current_price .big_cost').empty();\n\t\t\tjQuery('#current_price #up_down').empty();\n\t\t\t\n\n\t\t\tvar price = changeOzOrNot(show_data, bullion);\n\t\t\tjQuery('#current_price #up_down').append(price.up_down.toFixed(2)+'  '+price.up_down_percent.toFixed(2)+'%');\n\t\t\tif(price.up_down < 0){\n\t\t\t\tjQuery('#current_price .big_cost').append(price.price.toFixed(2)+'   <i class=\"minus_color big_cost_after fas fa-caret-down\"><\/i>');\n\t\t\t\tjQuery('#up_down').removeClass();\n\t\t\t\tjQuery('#up_down').addClass('minus_color');\n\t\t\t}\n\t\t\telse{\n\t\t\t\tjQuery('#current_price .big_cost').append(price.price.toFixed(2)+'   <i class=\"plus_color big_cost_after fas fa-caret-up\"><\/i>');\n\t\t\t\tjQuery('#up_down').removeClass();\n\t\t\t\tjQuery('#up_down').addClass('plus_color');\t\n\t\t\t}\n\t\t}\n\t\tfunction changeOzOrNot(show_data, bullion){\n\n\t\t\tif(bullion == 'oz'){\n\t\t\t\tvar price = {\n\t\t\t\t\t'price': show_data.xauPrice ,\n\t\t\t\t\t'up_down':show_data.chgXau  ,\n\t\t\t\t\t'up_down_percent':show_data.pcXau\n\t\t\t\t};\n\t\t\t}\n\t\t\telse{\n\t\t\t\tvar price = {\n\t\t\t\t\t'price': getKgFromOz(show_data.xauPrice ),\n\t\t\t\t\t'up_down':getKgFromOz(show_data.chgXau ),\n\t\t\t\t\t'up_down_percent':show_data.pcXau\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn price;\n\t\t}\n\t\tcreateChart('USD','oz');\n       <\/script>\n       \n\t\t<\/div><\/div><\/div><div id=\"pg-511-3\"  class=\"panel-grid panel-has-style\" ><div class=\"contact_us_row panel-row-style panel-row-style-for-511-3\" ><div id=\"pgc-511-3-0\"  class=\"panel-grid-cell\" ><div id=\"panel-511-3-0-0\" class=\"widget_text so-panel widget widget_custom_html panel-first-child panel-last-child\" data-index=\"5\" ><div id=\"contact_us\" class=\"widget_text panel-widget-style panel-widget-style-for-511-3-0-0\" ><h3 class=\"widget-title\">\u806f\u7d61\u6211\u5011<\/h3><div class=\"textwidget custom-html-widget\"><div class=\"contact_us_address\">\nmarvinchiu@hongkong-gold.com<br>\n(+852) 2687-1387<br>\n<br>\n\u9999\u6e2f\u4e5d\u9f8d\u5c16\u6c99\u5480\u6f22\u53e3\u9053\u6f22\u53e3\u4e2d\u5fc3<br>\nG3 \u92ea<br>\n<br>\u9999\u6e2f\u6d77\u95dc\u8cb4\u91d1\u5c6c\u53ca\u5bf6\u77f3\u4ea4\u6613\u5546B\u985e\u8a3b\u518a\u4eba\uff0c\u8a3b\u518a\u7de8\u865f\nB-B-23-06-00606<br>\n<\/div>\n<div class=\"everest-forms\"><div class=\"evf-container  default\" id=\"evf-627\"><form method=\"post\" id=\"evf-form-627\" class=\"everest-form\" action=\"\/goldprice_ch\/index.php\/wp-json\/wp\/v2\/pages\/511\" enctype=\"multipart\/form-data\" evf-formid=\"627\"><div class=\"evf-field-container\"><input type=\"hidden\" id=\"_wpnonce\" name=\"_wpnonce\" value=\"b6e3d0ff66\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/goldprice_ch\/index.php\/wp-json\/wp\/v2\/pages\/511\" \/><div class=\"evf-frontend-row\" data-row=\"row_1\"><div class=\"evf-frontend-grid evf-grid-1\" data-grid=\"grid_1\"><div id=\"evf-627-field_name-container\" class=\"evf-field evf-field-text form-row validate-required\" data-field-id=\"0\"><label class=\"evf-field-label evf-label-hide\" for=\"evf-627-field_name\">Name <abbr class=\"required\" title=\"Required\">*<\/abbr><\/label><input type=\"text\" id=\"evf-627-field_name\" class=\"input-text\" name=\"everest_forms[form_fields][name]\" placeholder=\"\u540d\u7a31\" required><div class=\"evf-field-description\">marvinchiu@hongkong-gold.com<br>\r\n(+852) 2687-1387<br>\r\n<br>\r\n\r\n\u9999\u6e2f\u4e5d\u9f8d\u5c16\u6c99\u5480\u6f22\u53e3\u9053\u6f22\u53e3\u4e2d\u5fc3<br>\r\nG3 \u92ea<br>\r\n\r\n\r\n<\/div><\/div><div id=\"evf-627-field_email-container\" class=\"evf-field evf-field-email form-row validate-required validate-email\" data-field-id=\"0\"><label class=\"evf-field-label evf-label-hide\" for=\"evf-627-field_email\">Email <abbr class=\"required\" title=\"Required\">*<\/abbr><\/label><input type=\"email\" id=\"evf-627-field_email\" class=\"input-text\" name=\"everest_forms[form_fields][email]\" placeholder=\"\u96fb\u90f5\u5730\u5740\" required><\/div><div id=\"evf-627-field_subject-container\" class=\"evf-field evf-field-text form-row validate-required\" data-field-id=\"0\"><label class=\"evf-field-label evf-label-hide\" for=\"evf-627-field_subject\">Subject <abbr class=\"required\" title=\"Required\">*<\/abbr><\/label><input type=\"text\" id=\"evf-627-field_subject\" class=\"input-text\" name=\"everest_forms[form_fields][subject]\" placeholder=\"\u4e3b\u65e8\" required><\/div><div id=\"evf-627-field_message-container\" class=\"evf-field evf-field-textarea form-row\" data-field-id=\"0\"><label class=\"evf-field-label evf-label-hide\" for=\"evf-627-field_message\">Message<\/label><textarea id=\"evf-627-field_message\" class=\"input-text\" name=\"everest_forms[form_fields][message]\" placeholder=\"\u8a0a\u606f\" ><\/textarea><\/div><\/div><\/div><\/div><div class=\"evf-submit-container\" ><input type=\"hidden\" name=\"everest_forms[id]\" value=\"627\"><input type=\"hidden\" name=\"everest_forms[author]\" value=\"1\"><button type=\"submit\" name=\"everest_forms[submit]\" class=\"evf-submit \" id=\"evf-submit-627\" value=\"evf-submit\" >\u767c\u9001<\/button><\/div><\/form><\/div><\/div>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u9999\u6e2f\u6d77\u95dc\u8cb4\u91d1\u5c6c\u53ca\u5bf6\u77f3\u4ea4\u6613\u5546B\u985e\u8a3b\u518a\u4eba \u8a3b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/hongkong-gold.com\/goldprice_ch\/index.php\/wp-json\/wp\/v2\/pages\/511"}],"collection":[{"href":"https:\/\/hongkong-gold.com\/goldprice_ch\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hongkong-gold.com\/goldprice_ch\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hongkong-gold.com\/goldprice_ch\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hongkong-gold.com\/goldprice_ch\/index.php\/wp-json\/wp\/v2\/comments?post=511"}],"version-history":[{"count":299,"href":"https:\/\/hongkong-gold.com\/goldprice_ch\/index.php\/wp-json\/wp\/v2\/pages\/511\/revisions"}],"predecessor-version":[{"id":2528,"href":"https:\/\/hongkong-gold.com\/goldprice_ch\/index.php\/wp-json\/wp\/v2\/pages\/511\/revisions\/2528"}],"wp:attachment":[{"href":"https:\/\/hongkong-gold.com\/goldprice_ch\/index.php\/wp-json\/wp\/v2\/media?parent=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}