{"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":"2024-02-24T15:42:18","modified_gmt":"2024-02-24T07:42:18","slug":"hestia-front","status":"publish","type":"page","link":"https:\/\/hongkong-gold.com\/goldprice_cn\/","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 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\u5e01<\/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<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('\u73b0\u8d27\u91d1\u4ef7 : '+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('\u73b0\u8d27\u91d1\u4ef7 : '+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:\/\/data-asg.goldprice.org\/dbXRates\/USD,HKD,CNY,USD,USD,USD\",\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('\u73b0\u8d27\u91d1\u4ef7 : '+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('\u73b0\u8d27\u91d1\u4ef7 : '+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\u5e01<\/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\">\u9ec4\u91d1\u6295\u8d44<\/div>\n\t\t\t\t\t\t<div class=\"caption-desc\">\u4fdd\u969c\u53ca\u589e\u957f\u4f60\u7684\u8d22\u5bcc<\/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=\"\">\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<\/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\/about-us\/\">\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_cn\/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\/about-us\/\">\u9970\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\u9669\u4ed3\u5e93<\/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\">\u5b9e\u65f6\u9ec4\u91d1\u4ef7\u683c<\/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       \tsetInterval(function()\n\t\t{ \n\t\t    jQuery.ajax({\n\t\t      type:\"GET\",\n\t\t      url:\"https:\/\/data-asg.goldprice.org\/dbXRates\/USD,HKD,CNY,USD,USD,USD\",\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                  timeStamp = getTimestamp();\n\n                  timeStamp = timeStamp - (10000 * (totalPoints));\n\n\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 += 10000;\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       \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        var skipNumber = 480;\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\tvar skipNumber = 48;\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 = null;\t\n       \t\t}\n       \t\telse{\n       \t\t\tvar current_prices = globalPrice.items;\n       \t\t}\n\t       \tvar HKD = [];\n\t       \tvar USD = [];\n\t       \tvar CNY = [];\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 = null;\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\">\u8054\u7edc\u6211\u4eec<\/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\u9f99\u5c16\u6c99\u5480\u6c49\u53e3\u9053\u6c49\u53e3\u4e2d\u5fc3<br>\nG10A \u94fa<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_cn\/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=\"3458b63331\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/goldprice_cn\/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\u79f0\" 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\u9f99\u5c16\u6c99\u5480\u6c49\u53e3\u9053\u6c49\u53e3\u4e2d\u5fc3<br>\r\nG10A \u94fa<br>\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=\"\u7535\u90ae\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=\"\u8baf\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\" >\u5b9e\u65f6\u53d1\u9001<\/button><\/div><\/form><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u7f8e\u91d1 \u6e2f\u5143 \u4eba\u6c11\u5e01 \u7f8e\u91d1 \u6e2f\u5143 \u4eba\u6c11\u5e01  [&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_cn\/index.php\/wp-json\/wp\/v2\/pages\/511"}],"collection":[{"href":"https:\/\/hongkong-gold.com\/goldprice_cn\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hongkong-gold.com\/goldprice_cn\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hongkong-gold.com\/goldprice_cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hongkong-gold.com\/goldprice_cn\/index.php\/wp-json\/wp\/v2\/comments?post=511"}],"version-history":[{"count":286,"href":"https:\/\/hongkong-gold.com\/goldprice_cn\/index.php\/wp-json\/wp\/v2\/pages\/511\/revisions"}],"predecessor-version":[{"id":2006,"href":"https:\/\/hongkong-gold.com\/goldprice_cn\/index.php\/wp-json\/wp\/v2\/pages\/511\/revisions\/2006"}],"wp:attachment":[{"href":"https:\/\/hongkong-gold.com\/goldprice_cn\/index.php\/wp-json\/wp\/v2\/media?parent=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}